Skip to content

Parsing log line which could be 1 of N types (Apache Combined or Err or Custom, etc) #20174

Answered by jszwedko
ipsi asked this question in Q&A
Discussion options

You must be logged in to vote

Yeah, that is correct, match just takes regular expressions. I could see it being useful to have a match_grok or something, but, to your point, that would mean duplicate processing.

Yeah, I'm sure there's a few use-cases for it. For me, personally, I'm not dealing with a large volume of logs, so while it hurts my soul that there'd be some duplicate processing going on, I don't see it having any practical impact.

Maybe it'd be useful to have parse_groks be able to tag the pattern that matched and that could be used for subsequent processing?

Yeah, that would also solve my problem - I think this would solve it slightly more neatly, but is a bit less flexible.

Thinking about it more, I…

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@ipsi
Comment options

@jszwedko
Comment options

@ipsi
Comment options

@jszwedko
Comment options

Answer selected by ipsi
@ipsi
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants