-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Osquery] Fix infinite loop (#124332)
Co-authored-by: Patryk Kopycinski <[email protected]>
- Loading branch information
1 parent
b4855ba
commit 1f4a7d4
Showing
15 changed files
with
252 additions
and
122 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
x-pack/plugins/osquery/cypress/fixtures/saved_objects/ecs_mapping_1.ndjson
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"attributes": { | ||
"created_at": "2022-02-03T07:43:10.311Z", | ||
"created_by": "elastic", | ||
"description": "fdsfsd", | ||
"ecs_mapping": [], | ||
"id": "NOMAPPING", | ||
"interval": 3600, | ||
"query": "select * from uptime;", | ||
"updated_at": "2022-02-03T08:22:01.662Z", | ||
"updated_by": "elastic" | ||
}, | ||
"coreMigrationVersion": "8.1.0", | ||
"id": "ef31d680-84c4-11ec-991b-07bb2d53cda5", | ||
"references": [], | ||
"type": "osquery-saved-query", | ||
"updated_at": "2022-02-03T08:22:01.668Z", | ||
"version": "WzE3ODk5LDFd" | ||
} |
26 changes: 26 additions & 0 deletions
26
x-pack/plugins/osquery/cypress/fixtures/saved_objects/ecs_mapping_2.ndjson
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"attributes": { | ||
"created_at": "2022-02-03T08:22:26.355Z", | ||
"created_by": "elastic", | ||
"description": "", | ||
"ecs_mapping": [ | ||
{ | ||
"key": "client.geo.continent_name", | ||
"value": { | ||
"field": "seconds" | ||
} | ||
} | ||
], | ||
"id": "ONE_MAPPING_CHANGED", | ||
"interval": 3600, | ||
"query": "select * from uptime;", | ||
"updated_at": "2022-02-03T08:24:52.429Z", | ||
"updated_by": "elastic" | ||
}, | ||
"coreMigrationVersion": "8.1.0", | ||
"id": "6b819f40-84ca-11ec-991b-07bb2d53cda5", | ||
"references": [], | ||
"type": "osquery-saved-query", | ||
"updated_at": "2022-02-03T08:24:52.436Z", | ||
"version": "WzE3OTAwLDFd" | ||
} |
37 changes: 37 additions & 0 deletions
37
x-pack/plugins/osquery/cypress/fixtures/saved_objects/ecs_mapping_3.ndjson
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"attributes": { | ||
"created_at": "2022-02-03T08:22:54.372Z", | ||
"created_by": "elastic", | ||
"ecs_mapping": [ | ||
{ | ||
"key": "labels", | ||
"value": { | ||
"field": "days" | ||
} | ||
}, | ||
{ | ||
"key": "tags", | ||
"value": { | ||
"field": "seconds" | ||
} | ||
}, | ||
{ | ||
"key": "client.address", | ||
"value": { | ||
"field": "total_seconds" | ||
} | ||
} | ||
], | ||
"id": "MULTIPLE_MAPPINGS", | ||
"interval": "3600", | ||
"query": "select * from uptime; ", | ||
"updated_at": "2022-02-03T08:22:54.372Z", | ||
"updated_by": "elastic" | ||
}, | ||
"coreMigrationVersion": "8.1.0", | ||
"id": "7c348640-84ca-11ec-991b-07bb2d53cda5", | ||
"references": [], | ||
"type": "osquery-saved-query", | ||
"updated_at": "2022-02-03T08:22:54.375Z", | ||
"version": "WzE3OTAxLDFd" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.