Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Unable to regex search syslog messages in elasticsearch #706

Open
morrone opened this issue May 30, 2019 · 0 comments
Open

Unable to regex search syslog messages in elasticsearch #706

morrone opened this issue May 30, 2019 · 0 comments

Comments

@morrone
Copy link
Contributor

morrone commented May 30, 2019

We cannot currently perform regex searches on the message field in the cast-log-syslog* indices.

I believe that the reason for this is that the CAST-provided cast-log-syslog.json template has this:

                "message"      : { "type" : "text" }

By making the message type explicitly "text", we are eliminating the "keyword" version of message. "text" type strings are tokenized, and then searches can only be performed on the individual tokens, it is not possible to perform a regex search on the whole string. (It also apperently limits aggregations, not that I currently have a use for that.)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants