Splunk Search

most frequent eventlogs challenge

kspoton
New Member

Here is the custom event log format:

field1 field2 field3 FREE_TEXT

How would one query, say Top 10, FREE_TEXT ignoring first 3 fields which are space separated. FREE_TEXT can be any application level debug message which is not a fixed format.

Creating Fields is not an option. Neither is the code change to generate standard log format like Apache web log.

Just a single instance Splunk server(no clustering).

Tags (2)
0 Karma

joebensimo
Path Finder

Why is creating fields not an option? Even if you don't want fields for all searches, you can create per-search fields using the rex command.

You should be able to do something like:

... | rex field=_raw "^[^ ]+ [^ ]+ [^ ]+ (?<free_text>.+)" | top limit=10 free_text
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...