r/Splunk • I see what you did there • Jan 24 '24

Meme I ♥ RegEx

Post image
95 Upvotes

10 comments sorted by

5

u/badideas1 Jan 24 '24

Talking about the field extractor tool, or erex? Either way, based

6

u/EatMoreChick I see what you did there Jan 24 '24

Lol, I was aiming for the field extractor, but yep, either works

2

u/lesleyjea Jan 25 '24

Why isn't a proper tool available for this yet?!

4

u/EatMoreChick I see what you did there Jan 25 '24

I think traditionally it's been a little difficult to automatically generate regex since you also need contextual information about the formatting of the log. Splunk's current implementation of it pretty much just hard codes the log's format.

With tools like ChatGPT and other LLMs I think soon we will see better implementations that take into account the context and formatting of the data. This site has been around it for at least a few years now, so I'm sure even better techniques will come out soon: https://www.autoregex.xyz/

2

u/lesleyjea Jan 25 '24

Agree. Hope it may become possible in the new splunk gen AI

0

u/[deleted] Jan 24 '24

[deleted]

2

u/EatMoreChick I see what you did there Jan 24 '24

It always sometimes works when I see it!

11

u/shifty21 Splunker Making Data Great Again Jan 24 '24

60% of the time, it works every time

3

u/Fontaigne SplunkTrust Jan 24 '24

It works, but also is not functional...

2

u/[deleted] Jan 25 '24

[removed] — view removed comment

3

u/Adept-Speech4549 Drop your Breaches Jan 25 '24

Same here. Regexr and later regex101 became my go-to for things I could write quickly or were complex beasts.