Commit graph

18698 commits

Author SHA1 Message Date
Tudor Golubenco
450ae8e54a
Add tutorial for the Suricata module (#24373) (#24448)
Related to elastic/beats#8153.
2018-10-24 14:49:05 +02:00
Bill McConaghy
12a1aefe2c
console: ingest node - add tag and update pipeline processor parameter (#24400) (#24445)
* console: ingest node - add tag and update pipeline processor parameter
2018-10-24 07:32:44 -04:00
Felix Stürmer
e43b2bc5c4
[Infra UI] Add tests for the log entries and summary api (#24354) (#24477) 2018-10-24 13:22:38 +02:00
Matt Apperson
40dcf12c37 [BeatsCM]This PR adds a role checks (#24405)
* add permissions check to API

* Add UI check to display error when user lacess access privlages

* prettier fix
2018-10-24 05:36:15 -04:00
Matt Apperson
ceb3ffc7b6 [BeatsCM] fix keyed config saving rendering (#24379)
* Fix config issues, move all config formatting to lib, add tests

* remove config transform from config

* add comments
2018-10-24 05:36:09 -04:00
markharwood
2fb6638484
Graph: remove “step” property which makes values other than 1, 1001, 2001 etc illegal (#23610) (#24479)
Closes #22054
2018-10-24 10:20:31 +01:00
Nicolas Ruflin
bdae66b223
Add Heartbeat as Uptime Monitors to Add Data UI (#23995) (#24472)
This adds a box "Uptime Monitors" to the Metrics tab. This box guides through installing and configuring Heartbeat with 1 monitor and loading the dashboards.

If the setup is local Heartbeat by default will ping `http://localhost:9200`. The setup recommended for the Cloud setup is to ping `http://elastic.co`. It requires an additional step as it's a non default monitor but will allow to directly have data in the dashboards.
2018-10-24 10:05:42 +02:00
Pete Harverson
f2c37d7f46
[ML] Fixes font size of headings in anomalies table expanded row (#24390) (#24410) 2018-10-24 08:53:35 +01:00
Tim Roes
f953c42621
Make sure Vega tooltip isn't cut off (#24409) (#24430)
Make sure the vega options dropdown menu is visible
2018-10-24 09:32:56 +02:00
James Gowdy
0b142b3f37
[ML] Improving file data visualizer navigation (#24438) (#24458) 2018-10-24 06:35:31 +01:00
Matt Apperson
3cb7c63132 [BeatsCM] Re-add tag removal, tags default color is now a random EUI vis color (#24443)
* random default tag color

* re-add delete controls to tags table
2018-10-23 21:31:49 -04:00
James Gowdy
ab53a3267e
[ML] Adds File Data Visualizer feature (#24423) (#24436)
* [ML] File datavisualizer initial commit (#22828)

* [ML] File datavisualizer initial commit

* removing mocked data and adding initial stats

* adding card styling to fields

* Revert "". accidentally added with no commit message

This reverts commit d762d20b706e6a770e631f863b9e7d8879bb7ee6.

* adding date type to timestamp field

* renaming FileStats to FieldsStats

* code clean up

* changes based on review

* changes to error handling

* [ML] Adding file datavisualizer overrides (#23194)

* [ML] Adding file datavisualizer overrides

* improvements to overrides

* removing comment

* small refactor

* removing accidentally added file

* updates based on review

* fixing broken test

* adding missing grok pattern override

* fixing test

* [ML] Refactoring override option lists (#23424)

* [ML] Refactoring override option lists

* moving lists out of class

* updating test snapshot

* [ML] Fixing field editing (#23500)

* [ML] Changes to timestamp formats (#23498)

* [ML] Changes to timestamp formats

* updating test snapshot

* [ML] Allow Datavisualizer use on basic license (#23748)

* [ML] Allow ML use on basic license

* removing timeout change

* adding permission checks

* updating tests

* removing unnecessary checks

* [ML] Adds new page for choosing file or index based data visualizer (#23763)

* [ML] Adding license check to datavisualizer landing page (#23809)

* [ML] Adding license check to datavisualizer landing page

* removing comments

* updating redirect to landing page

* [ML] Adding ability to upload data to elasticsearch from datavisualizer  (#24042)

* [ML] Initial work for delimited file upload

* adding results links cards

* adding nav menu

* removing accidental debugger

* initial work for importing semi structured text

* using ingest pipeline for import

* adding json importer and better error reporting

* better progress steps

* time range added to results links

* first import only creates index and pipeline

* adding status constants

* using status constants

* adding explanation comment

* updating yarn.lock

* changes based on review

* fixing space

* fixing space again, stort it out git

* removing oversized background container causing constant scrollbar

* [ML] Adding basic license check when loading privileges (#24173)

* [ML] Adding basic license check

* missing import

* [ML] Adds an About panel to the file data visualizer landing page (#24260)

* [ML] Adds an About panel to the file data visualizer landing page

* [ML] Remove unnecessary style from file data visualizer scss

* [ML] Adding better error reporting for reading and importing data (#24269)

* [ML] Adding better error reporting for reading and importing data

* changes to endpoint errors

* displaying errors

* step logic refactor

* removing log statements

* [ML] Switch file data visualizer to use Papa Parse for CSV parsing (#24329)

* [ML] Fixes layout of Data Visualizer selector page for IE (#24387)

* [ML] Adding ability to override various settings when importing data (#24346)

* [ML] Adding ability to override various settings when importing data

* second commit with most of the outstanding code

* improving index pattern name validation

* better index pattern matching

* adding comments

* adding empty index pattern check

* changes based on review

* fixing test
2018-10-24 02:23:16 +01:00
Joe Fleming
b783163fb9 Fix: Plugin loading in the build (#24426)
* fix: correctly wait on server plugins

* fix: correctly resolve canvas plugins in build
2018-10-23 17:26:23 -07:00
Joe Fleming
fe7c9ec9e7 Fix: Canvas socket auth (#24094)
## Summary

Closes https://github.com/elastic/kibana/issues/23303 ~(@cqliu1 can you confirm this too?)~ confirmed

Fixes the way we capture the request info when configuring the socket and providing it to plugins via `callWithRequest`. Instead of exposing a route that returns the info, simply use the request object that comes back from `server.inject`.

Also adds a check in the `elasticsearchClient` handler exposed to plugins to ensure the session is still valid because using `callWithRequest`.

![screenshot 2018-10-16 10 37 56](https://user-images.githubusercontent.com/404731/47036828-32768c00-d132-11e8-81a0-122b5e83c7ef.png)
*Note:* the actual error message is a bit different, but this is how the failure is exposed to the user
2018-10-23 17:20:11 -07:00
Nathan Reese
0522fc7188
Canvas saved objects for sample data (#24347) (#24449)
* Canvas saved objects for sample data

* fix line break in MACHINE element

* store canvas saved objects in json files instead of js files to avoid build problems

* remove logging statement

* set canvas-workpad timestamps to current time so they are displayed at top of list when sorted by date
2018-10-23 20:15:21 -04:00
Brandon Kobel
ca8788fef8
Upgrading mocha to 5.2.0 and gulp-mocha to 6.0.0 (#22816) (#24335)
* Upgrading mocha to 5.2.0 and gulp-mocha to 6.0.0

* Fixing x-pack yarn.lock

* Switching x-pack to ^5.2.0

* Fixing yarn.lock
2018-10-23 17:11:46 -07:00
Chris Cowan
04e7a60635
[Infra UI] Adding time ranges to detail links (#24237) (#24427)
* [Infra UI] Adding time ranges to detail links

- Adds timeranges to hosts, containers, and pods links
- Fixes #24228 - Typos and what not prevented urls from working

* remove argument hard coded formatting

* Cleaning up query arg generation

* Adding missing file

* removing rison hard coded string
2018-10-23 17:10:56 -07:00
Justin Kambic
02f26c18af Update tag creation page to disallow the creation of tags with multiple uniqueness-enforced configuration blocks. (#24224) 2018-10-23 19:27:56 -04:00
Larry Gregory
d6fb0fcf0d
Always enable the login button (#24407) (#24435)
The login button should always be enabled, to account for password managers that will auto-fill the form fields.
2018-10-23 18:33:13 -04:00
Matt Bargar
2d076c72fa
remove var 2018-10-23 18:04:43 -04:00
Matt Apperson
7bd81b8515 Merge branch '6.x' of github.com:elastic/kibana into 6.x 2018-10-23 17:31:28 -04:00
Matt Apperson
8c377208c4 Add dynamic breadcrumbs components (also fix outputs data, dont remove stuff) (#24364) 2018-10-23 17:27:02 -04:00
Matt Bargar
ccfb4482f6
[6.x] Euify and Reactify Query Bar Component (#23704) (#24420)
Implements query bar portion of https://elastic.github.io/eui/#/layout/header. Filter bar will come in another PR.

Fixes #14086

Re-implements our query bar component in React using some EUI components. Existing typeahead and suggestion styles were copied over 1:1 for now after talking with Dave about it. In this PR I focused on reaching feature parity with the existing query bar. Some additional work would be needed before we could move this into EUI as a generic component that could be consumed by other plugins.

Still needs some new tests and I suspect some old tests will need to be updated, but other than that this PR is functionally complete and ready for reviews.
2018-10-23 17:26:34 -04:00
Tiago Costa
3d1e00a27c
Remove red color from the kbn-pm logs (#24362) (#24441)
* feat(NA): remove red color from the kbn-pm logs.

* refact(NA): removed gray color from the generateColors function.

* chore(NA): update missing km pm dist file.
2018-10-23 21:53:34 +01:00
Tim Roes
2488277279
fixing other bucket filters (#24217) (#24403)
* fixing other bucket filters

* adding selenium tests

* using lodash flatten

* using lodash flatten

* fixing based on tims review

* Fix functional tests
2018-10-23 22:37:57 +02:00
Matt Bargar
260cf636f9
Fix broken doc links 2018-10-23 16:25:55 -04:00
Walter Rafelsberger
17141fe2ff
[ML] Fixes check for lower memory limit. (#24323) (#24419)
- Fixes the job validation for the lower bound of the model memory limit. Previously the check was against zero, now it's again less than 1MB, which is the same as the backend expects.
- If the user entered model memory limit is less than half the value of the estimated model memory limit, a warning type message gets triggered. If the user entered model memory limit is more than half the value but less then the actual value of the estimated model memory limit, then the already existing info type message is shown. The unit tests have been updated to reflect that behavior.
2018-10-23 22:00:20 +02:00
Nicolas Ruflin
9978cb9e7b
Add latency to index and node Elasticsearch stats (#22625) (#24422)
Closes https://github.com/elastic/kibana/issues/22503
2018-10-23 21:58:45 +02:00
Chris Cowan
b32f85fccc
Add drilldown to waffle map groupings (#24301) (#24415) 2018-10-23 12:43:23 -07:00
Catherine Liu
1a987e6545
Adds sanity check for uploaded workpad JSON (#24297) (#24418)
* Extracted upload handler. Added sanity check for uploaded JSON

* Changed file name and error verbiage

* Fixed import

* Added early return for null file

* Cleaned up update_workpad
2018-10-23 12:26:20 -07:00
Larry Gregory
0fc7394683
[6.x] Resolve known APIs (#24398) (#24416)
Backports the following commits to 6.x:
 - Resolve known APIs  (#24398)
2018-10-23 15:14:13 -04:00
Chris Cowan
4c374f7bd3
Use metric indices when displaying metrics in the waffle map (#24251) (#24414) 2018-10-23 12:08:39 -07:00
Brandon Kobel
ec26adf621
Adding option to always present the certificate when connecting to ES (#24304) (#24401)
* Adding option to always present the certificate when connecting to ES

* Updating docs

* Adding some more tests

* Adding alwaysPresentCertificate option to monitoring
2018-10-23 11:12:24 -07:00
Andrew Wilkins
d837b95aec [APM] Update Go agent instructions (#24111) (#24380)
- Update the Go agent instructions to refer to the new import path.
- Change some of the wording to align with other agents.
- Drop "beta" warning.
2018-10-23 19:39:51 +02:00
Joe Fleming
2875b3372f Fix: Use basepath from state for socket path (#24369)
Closes https://github.com/elastic/kibana/issues/23168

This PR uses the `basePath` constant from Angular to mount the client socket instance, allowing it to connect correctly even in when using a Space.

### Workpad correctly loading in a Space
![screenshot 2018-10-22 15 57 00](https://user-images.githubusercontent.com/404731/47324055-251a3f80-d613-11e8-9fb0-0b0eaa3b974d.png)

### List of workpads restricted to a space
![screenshot 2018-10-22 13 49 54](https://user-images.githubusercontent.com/404731/47319741-50496280-d604-11e8-8966-83ef3a9fb320.png)

### List of workpads restricted to default space
![screenshot 2018-10-22 13 50 37](https://user-images.githubusercontent.com/404731/47319747-593a3400-d604-11e8-960d-385c80c7638a.png)
2018-10-23 09:57:15 -07:00
Catherine Liu
795c2a6a17
Read Only Mode in Canvas (#23304) (#24367)
* Added readOnly to transient state

* Added check that user has permission to edit when loading workpads

* Shows toolbar in readOnly mode

* Disables page controls in read only mode

* Disables add page button when editing disabled

* Added comment to workpad routes

* Cleaned up page manager styles

* Added a comment to es_persist

* Renamed transient.readOnly to transient.readOnlyUser

* Replaced isEditing in transient state with readOnly in workpad state

* Cleaned up workpad_header

* Fixed logic in workpad_header

* Disables workpad controls instead of hiding them and adds tooltips

* Switched eye icon to lock icon in workpad header

* Renamed readOnly and readOnlyUser variables and functions

* Added dispatch to update canUserWrite in create/clone/delete workpads

* Fixed typo

* Removed unnecessary prop from workpad

* Refactored tooltips in workpad_loader

* Added workpad selector tests
2018-10-23 09:46:49 -07:00
Catherine Liu
77b205497a
Clickable refresh button when loading (#24312) (#24383)
* clickable refresh button when loading

* Disables manual refresh button in refresh popover when workpad is loading
2018-10-23 09:42:45 -07:00
Matt Bargar
d10f21ddea
Add telemetry for KQL (#23547) (#24340)
This PR adds two usage stats to our telemetry for KQL:

* How many times people click the opt in/out toggle in the query bar UI
* Which language Kibana admins have set as the global default in advanced settings
2018-10-23 12:31:26 -04:00
Felix Stürmer
71e4600973
[6.x] [Infra UI] functional browser test for infraops page (#24248) (#24388)
Backports the following commits to 6.x:
 - [Infra UI] functional browser test for infraops page  (#24248)
2018-10-23 18:30:15 +02:00
Melissa Alvarez
f686fa699a
[ML] Replace EuiComboBox with EuiSuperSelect in Anomalies Table severity control (#24272) (#24391)
* EuiSuperSelect replaces EuiComboBox in severity control

* Add tests for selectSeverity component
2018-10-23 16:34:04 +01:00
Melissa Alvarez
e009fc087f
[ML] Ensure Job list search bar is aligned + prevent job actions from wrapping (#24334) (#24395)
* display:none when no jobs selected

* Prevent job actions from wrapping

* wrap condition in paren
2018-10-23 16:33:02 +01:00
liza-mae
1e8ed18065
Handle exit code of 1 when terminating Kibana process on windows (#24151) (#24357)
* Handle exit code of 1 on windows

* Remove space to fix intake failure

* Update using solution from Spencer

* Update debug log message

Co-Authored-By: liza-mae <ldayoub@gmail.com>
2018-10-23 09:24:05 -06:00
liza-mae
79032f2deb
[6.x] Initial handling of windows process termination (#23441) (#24359)
* Initial handling of windows process termination (#23441)

* Initial handling of windows process termination

* Update exiting ES cluster process on windows

* Use tree-kill

* Add dependency

* Update with solution from Spencer

* Remove catch statement

* [kbn-es] remove class property from untranspiled js
2018-10-23 09:23:40 -06:00
Chris Roberson
e2a379cbe8
[Monitoring] Preserve ccs state (#24331) (#24370)
* Ensure we do not lose the ccr state in this marshalling method

* Update snapshots to capture ccs
2018-10-23 09:11:35 -04:00
Chris Roberson
7514e8698f
[Monitoring] Fix broken api integration test (#24076) (#24378)
* Fix broken api integration test

* Fix other test as well
2018-10-23 09:11:03 -04:00
Sonja Krause-Harder
349cd0f070
[Infra UI] Test sources and capabilities endpoints (#24216) (#24386)
* Test for capabilities GraphQL endpoint.

* Test for sources GraphQL endpoint.

* Move tests to typescript.

* Renaming infraops to infra.
2018-10-23 13:58:53 +02:00
Stacey Gammon
64f11992a6
EAH - Typescript state_monitor_factory (#23945) (#24273)
* Typescript state_monitor_factory

* Fix linter error with possibly undefined

* Expand typings to include hash stuff and expand the State type definition more.

* Mark readonly
2018-10-23 07:38:51 -04:00
Larry Gregory
c4b0de7bff
K7 Login screen (#23512) (#24349)
This PR implements the K7 Login screen, as described in #20015

@ryankeairns @snide @kobelb 

## Login form
<img width="1310" alt="login" src="https://user-images.githubusercontent.com/3493255/46048123-d9e53d80-c0f5-11e8-9e56-acbe3a8f2b5a.png">

## Invalid credentials
![image](https://user-images.githubusercontent.com/3493255/46147388-621d2d00-c233-11e8-8a75-beba7bb5a2b2.png)


## Session expired
![image](https://user-images.githubusercontent.com/3493255/46147408-6fd2b280-c233-11e8-97c1-8acb7b2e0c06.png)


## No connection to Elasticsearch
![image](https://user-images.githubusercontent.com/3493255/46147515-adcfd680-c233-11e8-8ad4-3a21d2c06b2c.png)


## Insecure connection
![image](https://user-images.githubusercontent.com/3493255/46147433-8416af80-c233-11e8-82dc-6f32a5ec1bd0.png)



Closes #20015
2018-10-23 05:53:11 -04:00
Chris Cowan
6521387e27
[Infra UI] Test for waffle map GraphQL endpoint (#24184) (#24376)
* [Infra UI] Test for metrics GraphQL endpoint

* Moving apollo-boost to devDeps

* Converting tests to typescript

* Renaming infraops to infra

* Converting to typescript

* renaming from infraops to infra

* Adding waffle tests back in
2018-10-23 01:57:39 -07:00
Chris Cowan
f685fabf11
Fixes #24261 - Add unable to render message for data less then 2 points (#24291) (#24344) 2018-10-23 01:57:23 -07:00