Commit graph

24576 commits

Author SHA1 Message Date
Camilla
3c533515f9
Minor modifications to the Web Logs and Flights Sample Dataset to enable ML Data Recogniser jobs (#36714) (#36791) 2019-05-21 19:59:27 +02:00
spalger
4b5f0d6627 Revert "Merge branch 'backport/7.x/pr-36322' of https://github.com/LeeDr/kibana into 7.x"
This reverts commit 215bc28186, reversing
changes made to 9aa5242607.
2019-05-21 10:58:41 -07:00
LeeDr
215bc28186 Merge branch 'backport/7.x/pr-36322' of https://github.com/LeeDr/kibana into 7.x 2019-05-21 12:45:06 -05:00
Camilla
9aa5242607
[ML] Kibana Sample Dataset data recognizer modules (#35138) (#36780)
* Initial job configuration files for Kibana Sample Ecommerce data recognizer

* Initial configuration files for Kibana Sample Data for web logs

* Initial configuration for Kibana Sample Data recognizer for Flights data

* Correcting ID, title and description of Flights sample data recognizer

* Adding Custom URLs to link to Discover from Kibana Sample Dataset ML jobs

* Adding custom URLs to Ecommerce Data Recognizer results

* Adding new custom URL to Kibana Sample Ecommerce data recognizer

* Adding custom URL for Sample Flights dataset dashboard

* Adding custom URLs to sample Web Logs data recogniser config

* Fixing single quotes and url names in custom URLs for flights and ecommerce datasets

* Adding Kibana Sample Data modules to list of modules that need testing

* Renaming Kibana Sample Data recognizer modules, fixing IDs and adding modules to test framework

* Fixing data recognizer titles to sentence case

* Fixing sentence case issues in Kibana eCommerce sample data

* Fixing sentence case in Kibana sample flights data

* Fixing sentence case in Kibana sample weblogs data

* Changing job configuration for Kibana sample flights data

* Making changes to job descriptions

* Changing job configurations and renaming files for Kibana eCommerce sample data recognizer

* Removing mean bytes by file extension from Web Logs sample jobs and adding three new configurations

* Fixing minor issues with Kibana Sample Data recognizer configurations

* Adding jobs to job groups

* Changing job group names to use underscores instead of hyphens

* Adding filtering to Kibana Sample Data dashboards

* Fixing linting issues in JSON configs

* Finetuning data recognizer module descriptions

* Renaming Kibana Sample Data flights jobs

* Removing plural from Kibana Sample Flights dataset description

* Modifying custom URLs for Kibana Flights jobs

* Fixing custom URLs for Kibana Sample eCommerce dataset jobs

* Adding new influencers and fixing Discover custom URLs for Kibana Weblogs sample dataset job

* Fixing space before colon issue in job configurations

* Converting tabs to spaces

* Fixing description of detector in sample dataset eCommerce job
2019-05-21 19:38:18 +02:00
Nathan Reese
228410f566
[Maps] lazy load tooltip properties for Elasticsearch documents (#36059) (#36786)
* lazy load tooltip properties for Elasticsearch documents

* return with loadProps exception

* fix errors

* fix feature_tooltip tests

* return empty array instead of throw when target layer or feature can not be found
2019-05-21 11:05:52 -06:00
Walter Rafelsberger
8de558ef3a [ML] Updates CN translation test file. (#36783) 2019-05-21 08:16:20 -07:00
Spencer
1f83652ccf
[7.x] [kbn/es] await native realm setup, error if there are failures (#36475) (#36722)
* Revert "Revert "[kbn-es] await native realm setup, error if there are failures (#36290)""

This reverts commit a102ca1f97.

* [kbn/es] retry setPassword call if it fails
2019-05-21 08:13:57 -07:00
Spencer
40f94f6070
[7.x] [dev/precommitHook] add support for --fix flag (#36717) (#36724)
* [dev/precommitHook] add support for --fix flag

* describe new --fix flag in precommit error text
2019-05-21 08:13:21 -07:00
Tim Roes
120cc65863
Improve links (#36639) (#36687) 2019-05-21 10:52:00 -04:00
Sarah Hersh
0df7db3a5e update screenshots and edit docs for search profiler (#36589) 2019-05-21 09:56:35 -04:00
Sarah Hersh
fb1a4ab792 update screenshots and light copy edits (#36649) 2019-05-21 09:51:20 -04:00
Tudor Golubenco
e7ec433db3
Track user actions in the SIEM app (#36675) (#36760)
* Track user actions in the SIEM app

For now, we're tracking:

* Top navigation changes (`tab_X`)
* Opening a timeline (`open_timeline`)

* added type

* This seems to solve the 'yarn run build' issue

* Addressed comments

* Use the APP_ID from the top level
2019-05-21 15:19:43 +02:00
Ahmad Bamieh
3bc571e22a
[i18n] chinese translations 7.x (#36694)
* chinese translations

* run i18n_check

* run i18n_check
2019-05-21 14:54:22 +03:00
Mikhail Shustov
9ac9b25d08
Remove required ConfigClass (#36609) (#36751)
* remove LoggingConfig class

* get rid of ElasticsearchConfig class

* get rid of PluginsConfig class

* get rid of HttpConfig Class

* update ConfigService

* update LegacyService

* update testbed plugin

* update docs
2019-05-21 13:51:50 +02:00
Gergely Kalapos
4db21b752e
Add APM .NET instructions (#35752) (#36756)
* Add APM .NET instructions #34054

* Update src/legacy/core_plugins/kibana/server/tutorials/apm/instructions/apm_agent_instructions.js
2019-05-21 13:35:28 +02:00
Liza Katz
8d70458185
Query filter: replace EventEmitter with Observables (#36087) (#36750)
* Changed query filter to use observables instead of event emitter
* Updated tests accordingly
2019-05-21 06:36:01 -04:00
Walter Rafelsberger
fa257f4593
[ML] Changes group-by and agg names. (#36686) (#36752)
So far the groupby/agg name shown in the dropdowns and the name used for the ES config agg name has been the same.

This PR changes the behaviour to the following:

- group_by aggregation names will be left as original e.g. clientip, timestamp
- agg functions will be added to the end as a nested object e.g. doc.bytes.sent.sum and doc.bytes.sent.avg and duration.max
- the drop down display labels in the pickers in the wizard will continue to use the sql-like notation e.g. date_histogram(timestamp), terms(clientip), sum(doc.bytes.sent), max(duration)
- when auto-generating aggregation names, unsupported characters ([]>) will be removed.
2019-05-21 12:31:11 +02:00
Walter Rafelsberger
7a86487339
[ML] Fixes display of nested fields in pivot preview table. (#36700) (#36749) 2019-05-21 11:46:27 +02:00
Felix Stürmer
1bfda63afb
[7.x] [Logs UI] Add column headers (#36467) (#36731)
Backports the following commits to 7.x:
 - [Logs UI] Add column headers  (#36467)
2019-05-21 05:43:20 -04:00
Vitali Haradkou
656e704d3e
FTR tsfy combobox service (#35493) (#36747)
* migrate combobox to typescript
2019-05-21 12:28:36 +03:00
Yulong
47c8d4f0e9
[Code] use ReactMarkdown to render markdown for hover widget (#36668) (#36745) 2019-05-21 03:20:53 -04:00
Yulong
40101dac39
[Code] increase the limit for file tree api (#36667) (#36739) 2019-05-21 01:52:22 -04:00
Ahmad Bamieh
a26219f37e
Encrypt telemetry (#33121) (#36742)
* draft code

* finalize solution

* encrypted telemetry

* update jwks

* code review follow up

* finalize PR

* @elastic/node-crytpo typings

* node-crypto typings in x-pack

* yarn.lock

* add tests

* useInternalUser

* more tests

* unify variable name

* update typings

* remove root level node-crypto typings

* array of encrypted clusters, update endpoint
2019-05-21 00:17:18 -05:00
Andrew Cholakian
a8f75c1588
[Uptime] Uptime to Logging integration (#36741)
Add links to logs UI from Uptime
2019-05-21 00:14:35 -05:00
Andrew Cholakian
09102cd17e
[7.x] [Uptime] Support location name in UI (#36317) (#36730)
Adds support for a user-configured location name, so users can more easily differentiate their monitors if they're watching hosts across multiple locations.
2019-05-20 21:01:37 -05:00
dave.snider@gmail.com
680f52af83
EUI@10.4.1 (#36711) (#36728)
* update eui to 10.4.1

* revert lock
2019-05-20 20:10:15 -04:00
Chris Cowan
405c914c7c
[7.x] [Infra UI] Link-to page for resolving IP to Host Details (#36149) (#36716)
* [Infra UI] Link-to page for resolving IP to Host Details (#36149)

* Adding link-to page for resolving IP to Host Details

* Adding intl support

* Adding source provider for link to via IP

* removing Source.Provider in favor of useSource hook

* rollback yarn.lock changes

* rollback package.json changes

* hits.total is a number in 7.x

* Fixing typing error and code for response.hits.total

* removing rest_total_hits_as_int flag
2019-05-20 16:42:20 -07:00
Brandon Kobel
6092760ba8
Fixing the Kibana Role Management API note syntax (#36314) (#36464) 2019-05-20 19:21:24 -04:00
Tyler Smalley
6c8292b735 Disable yarn.lock check after build
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
(cherry picked from commit ed7c2dcdca)
2019-05-20 15:08:36 -07:00
Andrew Cholakian
b43386173c
[Uptime] Uptime to Infra integration (#35847) (#36720)
Adds integration links for Infrastructure UI.
2019-05-20 17:27:42 -04:00
Garrett Spong
adb433530e
Update Events Table Columns (#36392) (#36473)
## Summary

This PR updates the Events Table with the following columns:
* Module/Dataset
* Event Category
* User
* Message

And removes the Location column.

Each column has also been updated to use the `getRowItemDraggables()` helper, so they're now draggable to the timeline as well. The Host column now also links out to HostDetails.

Reference PR: https://github.com/elastic/kibana/pull/33952
Issue:  https://github.com/elastic/ingest-dev/issues/426

![image](https://user-images.githubusercontent.com/2946766/57474942-91c3f700-7250-11e9-9029-e977b40aebd1.png)


### Checklist

Use ~~strikethroughs~~ to remove checklist items you don't feel are applicable to this PR.

- [ ] ~This was checked for cross-browser compatibility, [including a check against IE11](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility)~
- [x] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/master/packages/kbn-i18n/README.md)
- [ ] ~[Documentation](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#writing-documentation) was added for features that require explanation or tutorials~
- [x] [Unit or functional tests](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility) were updated or added to match the most common scenarios
- [ ] ~This was checked for [keyboard-only and screenreader accessibility](https://developer.mozilla.org/en-US/docs/Learn/Tools_and_testing/Cross_browser_testing/Accessibility#Accessibility_testing_checklist)~

### For maintainers

- [ ] ~This was checked for breaking API changes and was [labeled appropriately](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#release-notes-process)~
- [ ] ~This includes a feature addition or change that requires a release note and was [labeled appropriately](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#release-notes-process)~
2019-05-20 15:19:19 -06:00
spalger
e142ecd6c1 bump core-js and disable yarn.lock check for now 2019-05-20 14:15:53 -07:00
Garrett Spong
807bce8c80
[SIEM] Updating copy to clipboard toast to not contain content copied (#36492) (#36719)
## Summary

Updated `Copy to Clipboard` action to no longer show the text being copied within the toast to prevent giant toasts and overflow issues.

Issue details: https://github.com/elastic/ingest-dev/issues/416

New Toast:
<img src="https://user-images.githubusercontent.com/2946766/57556935-9ca48780-7335-11e9-9fbe-1476cf7e9b6d.png" width=200>
Old Toast: 
<img src="https://user-images.githubusercontent.com/2946766/57556947-a4642c00-7335-11e9-9202-b9d358f8a5f5.png" width=200>




### Checklist

Use ~~strikethroughs~~ to remove checklist items you don't feel are applicable to this PR.

- [ ] ~This was checked for cross-browser compatibility, [including a check against IE11](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility)~
- [x] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/master/packages/kbn-i18n/README.md)
- [ ] ~[Documentation](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#writing-documentation) was added for features that require explanation or tutorials~
- [ ] ~[Unit or functional tests](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility) were updated or added to match the most common scenarios~
- [ ] ~This was checked for [keyboard-only and screenreader accessibility](https://developer.mozilla.org/en-US/docs/Learn/Tools_and_testing/Cross_browser_testing/Accessibility#Accessibility_testing_checklist)~

### For maintainers

- [ ] ~This was checked for breaking API changes and was [labeled appropriately](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#release-notes-process)~
- [ ] ~This includes a feature addition or change that requires a release note and was [labeled appropriately](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#release-notes-process)~
2019-05-20 14:55:51 -06:00
Chris Roberson
2ac88caf21
[Monitoring/Telemetry] Force collectors to indicate when they are ready (#36153) (#36706)
* Initial code to force collectors to indicate when they are ready

* Add and fix tests

* Remove debug

* Add ready check in api call

* Fix prettier complaints

* Return 503 if not all collectors are ready

* PR feedback

* Add retry logic for  usage collection in the reporting tests

* Fix incorrect boomify usage

* Fix more issues with the tests

* Just add debug I guess

* More debug

* Try and handle this exception

* Try and make the tests more defensive and remove console logs

* Retry logic here too

* Debug for the reporting tests failure

* I don't like this, but lets see if it works

* Move the retry logic into the collector set directly

* Add support for this new collector

* Localize this

* This shouldn't be static on the class, but rather static for the entire runtime
2019-05-20 16:39:46 -04:00
CJ Cenizal
1bdb1b97c4
Reenable Rollup Jobs API test that was failing due to interval change in ES. (#36310) (#36387) 2019-05-20 16:17:13 -04:00
Spencer
3bb33c0cb0
[7.x] [cli/dev] allow running --dev without kibana.dev.yml (#36400) (#36707)
* [cli/dev] allow running --dev without kibana.dev.yml

* disable kibana.dev.yml for functional test servers

* [cli/dev] automatically strip xpack config when running --oss

* revert bad merge artifact
2019-05-20 12:08:36 -07:00
Walter Rafelsberger
1924ae616c
[ML] Data Frame: Wizard Create Step Improvements (#36483) (#36696)
Revamps the job creation step of the data frame wizard.

- Create & start buttons now have additional descriptions
- Adds a "copy to clipboard" button to copy a Kibana Dev Console statement of the job creation command to the clipboard
- Adds a progress bar once the job is started
- Adds a card which links to Kibana Discover if an index pattern was created for the job
- Hides the wizard's Previous button once the job is successfully created.
2019-05-20 20:21:59 +02:00
Tyler Smalley
f24301fb57
Use mapbox-gl-draw/dist for IE11 support (#36505) (#36703)
This package publishes it's transpiled code in a dist directory without updating
the package.json's main to point to this file. Since we do not transpile node
modules we are updating the require statement to explicitly point to this
file.

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2019-05-20 10:47:37 -07:00
Chris Cowan
1a8463ca28
[Infra UI] Fixes #36618 - Append filterQuery to TSVB filter (#36644) (#36699)
* Fixes #36618 - Append filterQuery to TSVB filter

* changing and to AND for lucene

* removing export
2019-05-20 13:22:21 -04:00
CJ Cenizal
6dd4d08feb
disable failing test: #36269 (#36701) 2019-05-20 12:17:58 -04:00
Chris Cowan
1bfd0d43df
[Infra UI] Remove Joi validation from Metrics Explorer url validation (#36493) (#36695) 2019-05-20 11:56:59 -04:00
Matthias Wilhelm
f11d7f7cf8
Restore line rendering in point series vis using percentile agg (#35649) (#36684)
Restores the visualization's  line rendering when using a multi metric aggregation like percentile. Before this fix only dots were rendered
fixes #34858
2019-05-20 11:53:05 -04:00
Liza Katz
2ae818a4d3
deleted unused query manager (#36683) (#36691) 2019-05-20 11:46:48 -04:00
Walter Rafelsberger
86f41276de
[ML] Extended group-by/aggs support. (#36421) (#36678)
- Adds pivotAggsFieldSupport and pivotGroupByFieldSupport. These objects have a mapping of field_type -> array of supported_aggs and allow a better organization of available options in the dropdowns for group-by and aggs.
- The support for certain field_type/aggs combinations has been extended:
  - value_count is available for every field
  - IP fields are now available for group by and cardinality
  - number and date support all aggregations
  - _id, _type, _index fields are no longer available
- Removes unnecessary union type PivotAggSupportedAggs.
- Moves x-pack/plugins/ml/common/constants/field_types.js to field_types.ts. GitHub doesn't recognize it as a rename though because of TypeScript changes.
2019-05-20 14:59:44 +02:00
Tudor Golubenco
5e1b4c4e40
Add Kibana Home tutorial for Auditbeat (#36078) (#36389)
* Standard Auditbeat installation assuming default config
* Uses the security analytics icon for now
* Uses a screenshot of the SIEM app
2019-05-20 13:10:46 +02:00
Tudor Golubenco
cc5101dd75
Add data winlogbeat (#36014) (#36359)
* Add data tutorial for Windows Event Log
2019-05-20 10:43:19 +02:00
Chris Cowan
eb975ab557
[Infra UI] Brushing for Metrics Explorer Charts (#36235) (#36648)
* Returning live data

* Adding TSVB data population

* adding tests

* Adding UI

* Adding rough draft of metrics control

* Breaking out metric component; adding useCallback to callbacks; adding intl strings

* seperating out form

* Break metrics form out; change to custom color picker; create custom color palette;

* fixing bug with color picker

* changes to color palette; fix callback issue

* Fixing count label

* Fix chart label to truncate

* Changing by to graph per

* Making the metric popover wider to ease field name truncation

* critical changes to the import order

* Changing metrics behavior

* Hide metrics when choosing document count

* Updating chart tooltip; fixing types;

* Setting intial state to open metrics; Tweaking toolbar sizes

* fixing linting issues

* Allow users to filter by a grouping by clicking on the title

* Change rate to rateMax; add rateMin and rateAvg; fix title text-align

* Use relative paths to fix base path bug

* fixing typescript errors; removing rateAvg and rateMin; removing extranious files;

* Fixing formatting issues

* Fixing i18n linting errors

* Changing to elastic-charts

* fixing typing errors with charts

* Moving afterKey out of URL to fix bug with pagination

* Adding support for multiple axises

* Adding tests for useMetricsExplorerData hook

* breaking up the charting code; removing multi-axis support; changing color palette to use blue and red for first two color

* Adding drop down menu to charts for filtering and linking to TSVB

* Adding more tests for useMetricsExplorerData hook; adding error message; adding chart options to non-groupby charts

* only display groupings that have the metric fields

* Refactor page level state into custom hook; add test for options handlers;

* Fixing linting

* removing color picker

* removing useInterval

* Changing group by to use the pills; Changing context menu button; adding icons to context menu.

* Adding test for color palette

* Adding test for createFormatterForMetric()

* removing tsx extension; adding tests for createMetricLabel()

* removing tsx extension; adding tests for createMetricLabel()

* re-organizing helpers

* Moving helpers from libs to helpers; adding test for metricToFormat

* Fixing bug in tsvb link fn; adding timeRange props; adding createTSVBLink() test

* fixing timeRange fixture import; fixing aria label for action button

* removing some unecessary useCallbacks

* Adding test for MetricsExplorerChartContextMenu component

* Fixing linting issues

* Optimizing test

* Adding empty prompts for no metrics and no data

* Removing duplicate sereis def

* tcs has lost it's mind so I had to copy enzyme_helpers.tsx into our plugin

* Appeasing prettier

* Update x-pack/plugins/infra/public/components/metrics_exploerer/metrics.tsx

Co-Authored-By: simianhacker <chris@chriscowan.us>

* fixing path typo

* Adding supportFiltering to dependicy; change options to be more specific

* remove typo

* Fixing typo

* Adding logColumns to source fixture; fixing typo

* Fixing path to be more sane

* Adding brushing to Metrics Explorer Charts
2019-05-19 15:53:43 -04:00
Nathan Reese
d5464c7d58
[Maps] Only show vector style properties used by source in editor and show line icon in legend (#36280) (#36657)
* supported features POC

* render point, line and polygon properties

* cleanup from merge with master

* line icon

* display button group for feature type styling

* fix vector_style tests

* remove unused function

* rename getSupportedFeatures to getSupportedShapeTypes and VECTOR_FEATURE_TYPE to VECTOR_SHAPE_TYPES

* review feedback

* display feature styles when user selects feature type

* create constants for geo_json types

* change line icon to line instead of rect

* add help function to avoid duplicate logic for isPointsOnly, isLineOnly, and isPolygonOnly

* add unit tests for _checkIfOnlyFeatureType
2019-05-18 18:18:33 -06:00
Mikhail Shustov
8e82d58b0b
expose LoggingService to legacy platform (#36376) (#36650) 2019-05-18 15:14:12 -04:00
Chris Cowan
c1d86327d0
[Infra UI] Adding links from Infra UI to Uptime (#35993) (#36447)
* [Infra UI] Adding from Infra UI to Uptime

* Removed unused variable

* Adding tests for link generation

* Sometimes the IP address will be an array with [IPv4, IPv6]

* Ensuring only IPv4 addresses are returned; adding tests;

* only showing uptime link for host's with ip addresses
2019-05-17 14:56:20 -04:00