Add parameter to use patterned_text for message field#802
Add parameter to use patterned_text for message field#802parkertimmins merged 5 commits intomasterfrom
Conversation
|
There are no queries which explicitly search for |
I thought the queries always relied on the default query fields and iirc message if part of that list. If that isn't the case then queries directly on message field makes sense. |
|
Ahh, you're correct. Every index does define a list of default fields and the message fields are in those lists. |
| "type": "wildcard" | ||
| }, | ||
| "message": { | ||
| {% if p_patterned_text_message_field %} |
There was a problem hiding this comment.
p_patterned_text_message_field is undefined in template context, because templates are not rendered under track.json tree.
The fix options are:
- repeat
p_patterned_text_message_fielddefinition at the top of each template file:
{% set p_patterned_text_message_field = (patterned_text_message_field | default(false)) %}
- use
patterned_text_message_fielddirectly with relevantdefault(false)filter expression.
There was a problem hiding this comment.
Perhaps default(false) is not even needed, worth a check.
Add parameter
patterned_text_message_fieldto logs track. If set to true, allmessageanderror.messagefields in the elastic logs track will be of typepatterned_text. If set to false, type will bematch_only_text. Defaults to false.