Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
Original file line number Diff line number Diff line change
Expand Up @@ -14208,7 +14208,9 @@
}
},
"message" : {
{% if index_mode != "logsdb" %}
"copy_to" : "message",
{% endif %}
"norms" : false,
"type" : "text"
},
Expand Down
4 changes: 4 additions & 0 deletions elastic/security/workflows/hosts/10.json
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,11 @@
"include_unmapped": true
},
{
{% if index_mode != "logsdb" %}
"field": "message",
{% else %}
"field": "kubernetes.event.message",
{% endif %}
"include_unmapped": true
},
{
Expand Down
4 changes: 4 additions & 0 deletions elastic/security/workflows/hosts/8.json
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,11 @@
"include_unmapped": true
},
{
{% if index_mode != "logsdb" %}
"field": "message",
{% else %}
"field": "kubernetes.event.message",
Comment thread
gareth-ellis marked this conversation as resolved.
Outdated
{% endif %}
"include_unmapped": true
},
{
Expand Down
4 changes: 4 additions & 0 deletions elastic/security/workflows/hosts/9.json
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,11 @@
"include_unmapped": true
},
{
{% if index_mode != "logsdb" %}
"field": "message",
{% else %}
"field": "kubernetes.event.message",
{% endif %}
"include_unmapped": true
},
{
Expand Down
4 changes: 4 additions & 0 deletions elastic/security/workflows/network/11.json
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,11 @@
"include_unmapped": true
},
{
{% if index_mode != "logsdb" %}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It looks like our template engine does not process files in the workflows directory. As a result we are not able to conditionally execute the query on message or kubernetes.even.message. I will just unconditionally execute it using kubernetes.even.message that is the original field name. After we introduce support for copy_to we can restore the original behaviour.

"field": "message",
{% else %}
"field": "kubernetes.event.message",
{% endif %}
"include_unmapped": true
},
{
Expand Down