Commit graph

22603 commits

Author SHA1 Message Date
Sonja Krause-Harder 4a4ed6bb55
Honor maxConcurrentShardRequests setting. (#30049) 2019-02-05 15:12:26 +01:00
James Gowdy 2850fd6735
[ML] Job deleting optimisations (#29848)
* [ML] Job deleting optimisations

* fixing force=true

* updating deleting jobs check
2019-02-05 12:29:01 +00:00
James Gowdy fda6efed1a
[ML] Adding index migration warnings (#28938)
* [ML] Adding index migration warnings

* small refactor

* correctlng comment

* adding upgrade service to manage upgradeInProgress state

* removing missing function
2019-02-05 12:27:32 +00:00
Felix Stürmer 07add3b9b6
[Infra UI] Remove infrastructure breadcrumb from logs page (#29954)
This removes the Infrastructure breadcrumb prefix from the Logs page.

fixes #29472
2019-02-05 12:03:24 +01:00
Daniil Suleiman 403348b388
Fix TSVB flot chart render after index pattern change (#29949) 2019-02-05 13:47:25 +03:00
Casper Hübertz 2e37de7bc0
[APM] Fixes EUI font update typography issues (#29831)
* Decreasing headings size for charts
* Updated Watcher flyout
2019-02-05 11:01:06 +01:00
Mario Castro 915d3ad467
Microsoft SQL Server Kibana Tutorial (#29987) 2019-02-05 10:40:39 +01:00
Dmitry Lemeshko 3a260b02cd
[visualize/_point_series_options] update test with proper wait: fixes 29502 (#29950) 2019-02-05 10:31:26 +01:00
Walter Rafelsberger f2e3aff333
[ML] Adds an integrity check to creating, updating and deleting annotations. (#29969)
Adds an integrity check to make sure the required index and aliases are present before creating, updating or deleting annotations.
2019-02-05 10:14:45 +01:00
Sonja Krause-Harder 70d9f45757
[Infra UI] Let drag-selecting a timerange disable autorefresh (#29947)
* Let drag-selecting a timerange disable autorefresh

* Send action to stop livestreaming at better time.
2019-02-05 08:03:50 +01:00
Josh Dover d166001a88
[upgrade] Add cancel button to reindexing (#29913) 2019-02-05 00:19:13 -06:00
Josh Dover 20ffce229b
Filter out security realm deprecations on Cloud (#30018) 2019-02-05 00:17:47 -06:00
Spencer b4725b7d34
Remove dependency on doc versions (#29906)
See https://github.com/elastic/elasticsearch/pull/38254

Using the `version` parameter to implement optimistic concurrency is not going to be supported in 7.0, so we need to replace our usage of document version with the new `_seq_no` and `_primary_term` parameters. These fields are returned in the same way that `_version` was returned on all read/write requests except for search, where it needs to be requested by sending `seq_no_primary_term: true` in the body of the search request. These parameters are sent back to Elasticsearch on write requests with the `if_seq_no` and `if_primary_term` parameters, and are functionally equivalent to sending a `version` in a write request before elastic/elasticsearch#38254.

To make these updates I searched the code base for uses of a `version` and `_version`, then triaged each usage, so I'm fairly confident that I got everything but it's possible something slipped through the cracks, so if you know of any usage of the document version field please help me out by double checking that I converted it.

- [x] **Saved Objects**:  @elastic/kibana-platform, @elastic/es-security - for BWC and ergonomics the `version` provided by the Saved Objects client/API was not removed, it was converted from a number to a string whose value is `base64(json([_seq_no, _primary_term]))`. This allows the Saved Objects API and its consumers to remain mostly unmodified, as long as the underlying value in the version field is irrelevant. This was the case for all usages in Kibana, only thing that needed updating was tests and TS types.

- [x] **Reporting/esqueue**: @joelgriffith, @tsullivan - the version parameter was used here specifically for implementing optimistic concurrency, and since its usage was contained within the esqueue module I just updated it to use the new `_seq_no` and `_primary_term` fields.

- [x] **Task Manager**: @tsullivan @njd5475 - Like esqueue this module uses version for optimistic concurrency but the usage is contained with the module so I just updated it to use, store, and request the `_seq_no` and `_primary_term` fields.

- [ ] **ML**: @elastic/ml-ui - Best I could tell the only "version" in the ML code refers to the stack version, 077245fed8

- [ ] **Beats CM**: @elastic/beats - Looks like the references to `_version` in the code is only in the types but not in the code itself. I updated the types to use `_seq_no` and `_primary_term`, and their camelCase equivalents where appropriate. I did find a method that used one of the types referencing version but when investigating its usage it seemed the only consumer of that method was itself so i removed it. 52d890fed7

- [x] **Spaces (tests)**: @elastic/kibana-security - The spaces test helpers use saved objects with versions in a number of places, so I updated them to use the new string versions where the version was predictable, and removed the assertion on version where it wasn't. We test the version in the saved objects code so this should be fine.
2019-02-04 21:13:34 -08:00
Nathan Reese de2d0b647c
[Maps] ensure resiveChecker exists before calling destroy (#30032) 2019-02-04 22:02:53 -07:00
Nathan Reese 9b1e2d454f
remove deprecated "regionmap" and "tilemap" kibana.yml settings (#28609)
* remove deprecated kibana.yml settings

* move tilemap and regionmap schema definitions inline since they are only used in a single location
2019-02-04 22:02:38 -07:00
Shaunak Kashyap 7b68b89ef1
Removing deprecated xpack.monitoring.report_stats setting (#30017)
* Removing deprecated xpack.monitoring.report_stats setting

* Remove from docs

* Update check in xpack_main plugin to not look at monitoring settings any more
2019-02-04 19:37:32 -08:00
Nathan Reese 908b387236
[Maps] add saved objects for all sample data sets (#28797)
* [Maps] add saved objects for all sample data sets

* add functional tests that compare sample data maps to baseline images

* add check for layer loading in functional tests

* try something out in CI

* try map without EMS regions

* add weblogs test but hide region layer

* skip tests with EMS vector layers

* gis-map to map and ES_GEOHASH_GRID to ES_GEO_GRID

* add resolution property to ES_GEO_GRID source descriptor

* move alphaValue from style descriptor to layer descriptor and rename to alpha

* terms join label change 'group by' to 'of'

* ensure sample data sets work with no internet access

* get functional tests working with updated full screen snapshots

* delete gis folder left overs

* give time for visibility to toggle to fire

* make web logs screen comparision more forgiving

* wait for layers to load on full screen
2019-02-04 20:18:11 -07:00
Matt Apperson 53a60b9f0f
[BeatsCM] Fix licence error (#29610)
Fixes #28417
2019-02-04 17:34:34 -05:00
Justin Kambic e9d0f1b58d
[Uptime] Port unit tests to master (#29876)
* Uptime unit tests6.x (#29280)

* Add API functional tests for uptime graphQL.

* Remove obsolete code.

* Add CI group for UI functional tests.

* Delete obsolete code, rename heartbeat es archive.

* Refactor adapter methods.

* Refactor adapter methods.

* Attempt to fix ci-group tag error.

* Skip functional app tests until later PR.

* Remove unused code.

* Add unit tests for ping list and snapshot components.

* Add additional unit tests.

* Remove unused variable.

* Update tests for EmptyState component.

* Update ErrorList component tests.

* Update monitor list unit test.

* Add tests for EmptyStatusBar component.

* Write test for FilterBar component.

* Update PingList test to work with 7.x data.

* Delete obsolete snapshot.

* Add test for Snapshot component.

* Update types.

* Add snapshot histogram test.

* Write tests and improve histogram data formatting function.

* Fix bug and add test to data format function.

* Remove unused localization value.

* Resolve localization conflict.

* Clean up guaranteed truthy property reference.

* Remove expression from localization default message.
2019-02-04 17:05:04 -05:00
Jason Rhodes 674a6aa2ef
Fix branch frozen indices (#29970)
* Adds frozen index param to ES queries

* Added include frozen setting to debug output

* Updates tests with new request method
2019-02-04 17:02:13 -05:00
Matthew Kime beee5f8a0e
grep and replace kibana/indices (#29571) 2019-02-04 16:02:07 -06:00
Tiago Costa 64334ca26e
Upgrade assistant telemetry (#28878)
* feat(NA): very first version with telemetry working for the upgrade assistant.

* refact(NA): import all types from a file and rewrite first version code.

* chore(NA): missing types for register and makeCollector functions.

* test(NA): tests for upgrade assistant telemetry routes.

* refact(NA): extra spaces on imports and imports order.

* test(NA): for ui_open saved objects on upgrade assistant telemetry.

* test(NA): for usage_collector functions.

* chore(NA): change the return object into the upgrade assistant telemetry.

* chore(NA): fix type imports.

* fix(NA): importing saved objects client types.

* refact(NA): simplify saved objects schema for upgrade assistant telemetry.

* feat(NA): only send upgrade assistant metrics after we have data. Never send telemetry info about a clicked tab if it is the current selected one.

* fix(NA): typo on word

* feat(NA): add telemetry schema support for for ui_reindex.

* test(NA): update integration test fixture to include new telemetry stats.

* chore(NA): fix mappings for ui_reindex.

* refact(NA): invest telemetry local expect data order.

* chore(NA): includeDefaults for callCluster.

* chore(NA): remove ignore 404 from callCluster.

* refact(NA): wrap get logging status from cluster settings into a function.

* feat(NA): add reindex ui telemetry.

* fix(NA): typo on mappings. fix(NA): non wait for send telemetry to complete will cause es doc errors when increment counters

* test(NA): wait for telemetry requests to end before esArchiver.unload on functional tests.

* refact(NA): remove bad added async to tabs onclick function.
2019-02-04 21:24:31 +00:00
Chris Roberson 4dab26ab58
[Monitoring] Add flag to enable/disable CCR monitoring UI (#28840)
* Add flag to enable/disable CCR monitoring UI

* Use the cluster setting instead of a new config

* Remove debug

* Update based on PR feedback

* Ensure the CCR tab shows up on the CCR page

* Rework this so we remove the janky UX

* Update tests

* Handle both string and boolean

* Remove debug

* Fix tests

* Refactor this to use the stack_stats part of the cluster_stats document

* Update the api integration tests

* Fix this test

* Remove debug
2019-02-04 16:15:14 -05:00
Chris Roberson fba727b2c0
[Monitoring] Address some UI regressions with shard allocation (#29757)
* Address some UI regressions with shard allocation

* Renable the shard tests, and a couple others that are disabled

* PR feedback
2019-02-04 15:15:09 -05:00
Josh Dover 888217dc0f
Upgrade Assistant Follow-ups (#29663)
* Check security privileges before allowing reindexing

* Add global readyForUpgrade flag for Cloud

* Add ml_settings to cluster_settings

* Generalize locking mechanism for stop/starting watcher

* Display ML/Watcher stopping/resuming steps in UI

* Fix type issues

* Handle security being disabled for privilege check

* Use xpack_main.info + add types

* Fix x-pack builds
2019-02-04 13:36:42 -06:00
Matt Apperson 564cb528c2
[BeatsCM] Add logging endpoint to get errors and status info back from beats - WIP (#29289)
* Types, and index pattern moved to new format

* fix imports

* API now doing full validation on config blocks

* progress pre-move-blocks to their own api

* Config is now stored as a JSON string keyword to prevent conflict

* New API server is working

* fixing types — progress

* “fixed” all types

* add lib and most adapter methods needed

* wired up more plumbing

* added REST adapter to client for config blocks

* fix some tests

* connect new APIs to beat details page

* fix typo causing several failing tests.

* update test data

* API bug fixes

* fix remaining testing

* revert index name change

* add new routes

* remove whitespace

* fix spelling

* wiring things up and adapting to the new UI

* config block creation works in UI

* config blocks now show up once added

* adding paging to tables

* config list paging works

* version check for UI changes

* fix types

* Update the rest of config UI, still needs create API connection

* create now mass creates tags after tag is created, edit creates and deletes configs in real time

* create config blocks when creating tags

* propperly load tags on their own for beats

* load inital config blocks on edit page

* wired up initial pass at assignable tags

* assignments now work.

* squash many bugs with tag creation, editing, as well as k7 breadcrumbs

* fix label id

* Fix the displaying of module types

* bug fixes for deleting config blocks during initial tag creation

* make name really required on initial walkthrough tag creation

* Fix and enhance deleting a config block from existing tag

* Initial non-working endpoint that validates API and response

* init new endpoint

* beat ID is required

* returns 400 if beat not found

* fix memory adapter for configs

* add new libs to compose

* add index template

* tweak types

* move index template logic to ES event hook

* propperly wait for ES

* add lifecycle names

* fix translations, remove old config update from API

* insert status into ES

* remove old tests

* added RUNNING status

* expand types

* Re-init route

* dont map litterals

* convert timestamp
2019-02-04 14:18:29 -05:00
Chris Roberson b10540f06f
[Monitoring] Add default search fields for each table (#29748)
* Add default search fields for each table

* Remove custom schema

* We don't need it here

* Add ccr tables

* Fix tests
2019-02-04 14:11:46 -05:00
Justin Kambic 2320f15b9b
Allow greater than default size for snapshot count. (#29681) 2019-02-04 13:16:42 -05:00
Luke Elmers 22933775ac
Prepare for cutover to vis data loader (#29873) 2019-02-04 11:03:13 -07:00
Pete Harverson 6afcc28c3b
[ML] Edits to labels in the Apache and Nginx ECS data recognizer modules (#29935) 2019-02-04 17:19:25 +00:00
Søren Louv-Jansen f782b9fe35
[APM] Add support for chained exceptions (#29345)
* [APM] Add support for chained exceptions

* Rename constants to elasticsearch_fieldnames
2019-02-04 18:08:23 +01:00
Søren Louv-Jansen a5724bda68
[APM] Flip transaction.name to keyword by default (#29718) 2019-02-04 18:08:02 +01:00
Chris Cowan a5aa0dc3e9
[Infra UI] ECS Migration (#28205)
* updating fields

* Migrate to ESC event.dataset

* Migragte fields to ECS fields

* renaming variable

* Reverting back to host.name

* Changing from Top Hits to Terms Agg for getting node name; change host.name back to host.hostname for name.

* Changing back to host.name

* Moving from using the document source to an aggregation for node name

* Updating tests with new data format and data.

* removing unused fields

* adding test data for docker 6.6.0

* Adding docker tests for 6.6.0

* Fixing jest tests

* Fixing tests

* Adding the most critical line of code in the entire project

* Fix ECS-compatible apache rules and restore old ones

* Fix ECS-compatible nginx rules and restore old ones

* Add tests for apache2 in ECS and pre-ECS format

* Add tests for nginx in ECS and pre-ECS format

* removing console.log

* Fixing tests
2019-02-04 09:47:03 -07:00
Nathan Reese 4f42dde279
[Maps] fix full screen (#29958) 2019-02-04 09:22:07 -07:00
Justin Kambic 1925ee9566
Add loading states for Snapshot and Filter Bar. (#29858) 2019-02-04 11:18:45 -05:00
Sarah Hersh bf866030c7
fix broken image link of time filter page (#29961) 2019-02-04 11:14:40 -05:00
Aaron Caldwell f8a5e99396
[Maps] Add zoom in/out map controls (#29862)
* Add zoom in/out map controls

* Line up parens
2019-02-04 08:39:41 -07:00
Sarah Hersh 3cd087663b
[Docs]Updates to Discover docs (#29868) 2019-02-04 10:20:24 -05:00
Thomas Neirynck bfbce22165
Use Kibana locale when loading content from the Elastic Maps Service (#29671) 2019-02-04 09:55:55 -05:00
Casper Hübertz 8604e8f3f4
[APM] Replace colour vars with EUI (#29822)
Refactored all use of custom APM UI colour variables and replaced with EUI theme
2019-02-04 15:42:38 +01:00
Sonja Krause-Harder d42a3f484e
[Infra UI] Always pass index patterns as strings. (#29927)
* Always pass index patterns as strings.

* Abide by prettier rules.
2019-02-04 15:17:29 +01:00
Court Ewing 475dd5651b
Content security policy strict mode (#29856)
A content security policy is a great addition to the protections built
into Kibana, but it's not effective in older browsers (like IE11) that
do not enforce the policy.

When CSP strict mode is enabled, right before the Kibana app is
bootstrapped, a basic safety check is performed to see if "naked" inline
scripts are rejected. If inline scripting is allowed by the browser,
then an error message is presented to the user and Kibana never attempts
to bootstrap.
2019-02-04 09:09:40 -05:00
Aleh Zasypkin d05437703d
Introduce I18nService core service and I18nContext. (#29379) 2019-02-04 13:38:00 +01:00
Walter Rafelsberger 7966b2ff78
[ML] adds telemetry to ML (#29121)
Adds telemetry to collect the amount of indices created using File Data Visualizer.
2019-02-04 13:14:25 +01:00
Sébastien Loix 2c257df717
[Watcher] Add missing Action types on client (#29818)
* Add missing Webhook action on client
2019-02-04 13:11:16 +01:00
Felix Stürmer cc13b77a02
[Infra UI] Add a source settings ui (#26786)
This adds a configuration UI to change various properties of an infrastructure data source. The properties that can be currently changed are:

* name
* index pattern for metrics
* index pattern for logs
* fields like the timestamp, container/host/pod identification

It is meant as a basis for providing configurability for other source properties like outgoing links and formatting rules in the future.
2019-02-04 12:56:02 +01:00
Kerry Gallagher 732915ee2a
[Infra UI] Handle no metrics data gracefully (#29424)
* Use metric_time prefix for metric_time actions

* Add refetch capabilities to with_metrics

* Pass through refetch to index

* Add no data message and refetch button to metrics/index

Next stage: Extract into shared component between metrics and waffle map

* Remove "refetching" and just use "loading"

No need for the explictness, just reuse the loading state, as there's no value to differentiating refetching vs loading here

* Add no_data component

* Amend for Prettier

* Use no_data component

* Change naming to better reflect current components

* Introduce notion of two empty states: no indices and no data

Also changes nodes_overview and logs to use moved component

* Add no_data functionality

* Remove metrics specific no data component, use the new shared component

* Change import order

* Use no_data component in nodes_overview

* Refactor logs to use shared no data component

* Import intl

* Revert testing value

* Pass handler correctly to avoid circular references

* Satisfy type check

* Remove one last unused component
2019-02-04 10:27:26 +00:00
Joe Reuter 93fef68647
Fix fieldformatter calls in pipeline helper and add functional test for range aggs (#29842) 2019-02-04 11:25:06 +01:00
Spencer daf19f8a5a
[sass/mixins] move kibanaFullScreenGraphics keyframes to mixin (#29897) 2019-02-03 23:07:00 -08:00
Nathan Reese 1c09fe70fd
[Maps] provide better error message when vector shapes can not be fetched (#29888) 2019-02-03 21:21:50 -07:00