Skip to content

Commit

Permalink
add kafka.id to common ingest pipeline
Browse files Browse the repository at this point in the history
Signed-off-by: reyesj2 <94730068+reyesj2@users.noreply.github.com>
  • Loading branch information
reyesj2 committed Aug 23, 2024
1 parent cfd6676 commit 1ec5e3b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions salt/elasticsearch/files/ingest-dynamic/common
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
{ "split": { "if": "ctx.event?.dataset != null && ctx.event.dataset.contains('.')", "field": "event.dataset", "separator": "\\.", "target_field": "dataset_tag_temp" } },
{ "append": { "if": "ctx.dataset_tag_temp != null", "field": "tags", "value": "{{dataset_tag_temp.1}}" } },
{ "grok": { "if": "ctx.http?.response?.status_code != null", "field": "http.response.status_code", "patterns": ["%{NUMBER:http.response.status_code:long} %{GREEDYDATA}"]} },
{ "set": { "if": "ctx?.metadata?.kafka != null" , "field": "kafka.id", "value": "{{metadata.kafka.partition}}{{metadata.kafka.offset}}{{metadata.kafka.timestamp}}", "ignore_failure": true } },
{ "remove": { "field": [ "message2", "type", "fields", "category", "module", "dataset", "dataset_tag_temp", "event.dataset_temp" ], "ignore_missing": true, "ignore_failure": true } }
{%- endraw %}
{%- if HIGHLANDER %}
Expand Down

0 comments on commit 1ec5e3b

Please sign in to comment.