Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Build Grok Search Response Processor #14933

Closed
dbwiddis opened this issue Jul 23, 2024 · 2 comments
Closed

[Feature Request] Build Grok Search Response Processor #14933

dbwiddis opened this issue Jul 23, 2024 · 2 comments
Labels
enhancement Enhancement or improvement to existing feature or request Search:Query Capabilities Search Search query, autocomplete ...etc

Comments

@dbwiddis
Copy link
Member

Is your feature request related to a problem? Please describe

Many search users want to manipulate field data which is not stored in the index. For example, an index may contain a log message "127.0.0.1 198.126.12 10/Oct/2000:13:55:36 -0700 200".

The Grok Ingest Processor does this parsing to create new fields, e.g.,

        "_source": {
          "message": "127.0.0.1 198.126.12 10/Oct/2000:13:55:36 -0700 200",
          "response_status": 200,
          "clientip": "198.126.12",
          "timestamp": "10/Oct/2000:13:55:36 -0700"
        },

However, if these fields are not populated on ingesting (for example, to save storage space) they are not available on search.

While search functionality does allow matching via regex, one still needs to manually post-parse the response to get useful data. This post-parsing should be automated.

Describe the solution you'd like

Replicate the functionality of the Grok ingest processor in a Search Response Processor

Related component

Search

Describe alternatives you've considered

More general regex parsing, but Grok is regex-based and well known/documented.

Additional context

@dbwiddis dbwiddis added enhancement Enhancement or improvement to existing feature or request untriaged labels Jul 23, 2024
@github-actions github-actions bot added the Search Search query, autocomplete ...etc label Jul 23, 2024
@dbwiddis
Copy link
Member Author

dbwiddis commented Dec 2, 2024

Closing this request in favor of #16627 and its related implementations

@dbwiddis dbwiddis closed this as completed Dec 2, 2024
@github-project-automation github-project-automation bot moved this from 🆕 New to ✅ Done in Search Project Board Dec 2, 2024
@songkant-aws
Copy link

Dan, thanks for mentioning the log pattern support RFC! The goal of log pattern is to recover log statement's constant and variable words from log message.

I think the example you mentioned in this feature request is also valuable and could still be achieved by Grok. If the field is following strict regex pattern and user wants to split to fine-grained subfields, looks like Grok is still a good choice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement or improvement to existing feature or request Search:Query Capabilities Search Search query, autocomplete ...etc
Projects
Status: Done
Development

No branches or pull requests

3 participants