Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions packages/osquery_manager/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
# newer versions go on top
- version: "1.30.1"
changes:
- description: Add `pack_name` and `query_name` fields to the result and action_responses data streams for scheduled pack queries.
type: bugfix
link: https://github.com/elastic/integrations/pull/20017
- description: Update legacy pack dashboards and saved searches to also match scheduled queries by `pack_name` and `query_name` instead of `action_id` only.
type: bugfix
link: https://github.com/elastic/integrations/pull/20017
- version: "1.30.0"
changes:
- description: Add Process_open_handles query and pack
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,14 @@
type: keyword
ignore_above: 1024
description: Pack identifier for scheduled queries that belong to a pack.
- name: pack_name
type: keyword
ignore_above: 1024
description: Human-readable pack name for scheduled queries that belong to a pack.
- name: query_name
type: keyword
ignore_above: 1024
description: Query name (the pack's queries config map key) for scheduled queries that belong to a pack.
- name: response_id
type: keyword
ignore_above: 1024
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@
- name: pack_id
type: keyword
description: Pack identifier for scheduled queries that belong to a pack.
- name: pack_name

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small consistency check: here in the result data stream the new fields are keyword without ignore_above, while the same two fields in data_stream/action_responses/fields/action-responses.yml set ignore_above: 1024. Is that difference intentional, or would it be worth aligning the two definitions?

type: keyword
description: Human-readable pack name for scheduled queries that belong to a pack.
- name: query_name
type: keyword
description: Query name (the pack's queries config map key) for scheduled queries that belong to a pack.
- name: response_id
type: keyword
description: Query response id. Present only for scheduled queries.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -428,20 +428,40 @@
},
{
"meta": {
"alias": null,
"alias": "it-compliance / mounts",
"disabled": false,
"field": "action_id",
"index": "logs-*",
"key": "action_id",
"key": "query",
"negate": false,
"params": {
"query": "pack_it-compliance_mounts"
},
"type": "phrase"
"type": "custom",
"value": "{\"bool\":{\"minimum_should_match\":1,\"should\":[{\"match_phrase\":{\"action_id\":\"pack_it-compliance_mounts\"}},{\"bool\":{\"filter\":[{\"match_phrase\":{\"pack_name\":\"it-compliance\"}},{\"match_phrase\":{\"query_name\":\"mounts\"}}]}}]}}"
},
"query": {
"match_phrase": {
"action_id": "pack_it-compliance_mounts"
"bool": {
"minimum_should_match": 1,
"should": [
{
"match_phrase": {
"action_id": "pack_it-compliance_mounts"
}
},
{
"bool": {
"filter": [
{
"match_phrase": {
"pack_name": "it-compliance"
}
},
{
"match_phrase": {
"query_name": "mounts"
}
}
]
}
}
]
}
}
}
Expand Down Expand Up @@ -656,20 +676,40 @@
},
{
"meta": {
"alias": null,
"alias": "it-compliance / kernel_integrations",
"disabled": false,
"field": "action_id",
"index": "logs-*",
"key": "action_id",
"key": "query",
"negate": false,
"params": {
"query": "pack_it-compliance_kernel_integrations"
},
"type": "phrase"
"type": "custom",
"value": "{\"bool\":{\"minimum_should_match\":1,\"should\":[{\"match_phrase\":{\"action_id\":\"pack_it-compliance_kernel_integrations\"}},{\"bool\":{\"filter\":[{\"match_phrase\":{\"pack_name\":\"it-compliance\"}},{\"match_phrase\":{\"query_name\":\"kernel_integrations\"}}]}}]}}"
},
"query": {
"match_phrase": {
"action_id": "pack_it-compliance_kernel_integrations"
"bool": {
"minimum_should_match": 1,
"should": [
{
"match_phrase": {
"action_id": "pack_it-compliance_kernel_integrations"
}
},
{
"bool": {
"filter": [
{
"match_phrase": {
"pack_name": "it-compliance"
}
},
{
"match_phrase": {
"query_name": "kernel_integrations"
}
}
]
}
}
]
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,20 +229,29 @@
},
{
"meta": {
"alias": null,
"alias": "ossec-rootkit",
"disabled": false,
"field": "action_id",
"index": "logs-*",
"key": "action_id",
"key": "query",
"negate": false,
"params": {
"query": "pack_ossec-rootkit"
},
"type": "phrase"
"type": "custom",
"value": "{\"bool\":{\"minimum_should_match\":1,\"should\":[{\"match_phrase\":{\"action_id\":\"pack_ossec-rootkit\"}},{\"match_phrase\":{\"pack_name\":\"ossec-rootkit\"}}]}}"
},
"query": {
"match_phrase": {
"action_id": "pack_ossec-rootkit"
"bool": {
"minimum_should_match": 1,
"should": [
{
"match_phrase": {
"action_id": "pack_ossec-rootkit"
}
},
{
"match_phrase": {
"pack_name": "ossec-rootkit"
}
}
]
}
}
}
Expand Down Expand Up @@ -405,20 +414,29 @@
},
{
"meta": {
"alias": null,
"alias": "ossec-rootkit",
"disabled": false,
"field": "action_id",
"index": "logs-*",
"key": "action_id",
"key": "query",
"negate": false,
"params": {
"query": "pack_ossec-rootkit"
},
"type": "phrase"
"type": "custom",
"value": "{\"bool\":{\"minimum_should_match\":1,\"should\":[{\"match_phrase\":{\"action_id\":\"pack_ossec-rootkit\"}},{\"match_phrase\":{\"pack_name\":\"ossec-rootkit\"}}]}}"
},
"query": {
"match_phrase": {
"action_id": "pack_ossec-rootkit"
"bool": {
"minimum_should_match": 1,
"should": [
{
"match_phrase": {
"action_id": "pack_ossec-rootkit"
}
},
{
"match_phrase": {
"pack_name": "ossec-rootkit"
}
}
]
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,20 +44,29 @@
},
{
"meta": {
"alias": null,
"alias": "ossec-rootkit",
"disabled": false,
"field": "action_id",
"index": "logs-*",
"key": "action_id",
"key": "query",
"negate": false,
"params": {
"query": "pack_ossec-rootkit"
},
"type": "phrase"
"type": "custom",
"value": "{\"bool\":{\"minimum_should_match\":1,\"should\":[{\"match_phrase\":{\"action_id\":\"pack_ossec-rootkit\"}},{\"match_phrase\":{\"pack_name\":\"ossec-rootkit\"}}]}}"
},
"query": {
"match_phrase": {
"action_id": "pack_ossec-rootkit"
"bool": {
"minimum_should_match": 1,
"should": [
{
"match_phrase": {
"action_id": "pack_ossec-rootkit"
}
},
{
"match_phrase": {
"pack_name": "ossec-rootkit"
}
}
]
}
}
}
Expand Down
Loading
Loading