I have a EFK setup to centrally store and query logs of all the application services. There are some services that process events from messages.
I want to query how many unique events (transaction-number: UUID) has failed per service, considering there will be duplicate error message as the message-broker is configured to redeliver messages 5 times upon any runtime exceptions. I filtered the services with its name, but with Painless
script I couldn't substring the transaction-number from the message because of this error, Fielddata is disabled on text fields
...Alternatively use a keyword field
. Is it advisable to set keyword for a log-message field? How to query such things in Kibana?