Knowledge Management

Get event into kvpairs

brent_weaver
Builder

I have this event:

2017-06-26|20:37:56.551 [Thread-26] INFO  [InsertCache.java:56] - InsertCache Stats: getTagCacheHits() = 191891 getTagCacheMisses() = 14 getBucketCacheHits() = 191879 getBucketCacheMisses() = 26 getIntervalCacheHits() = 186294 getIntervalCacheMisses() = 5611 getVersionCacheHits() = 186294 getVersionCacheMisses() = 5611 getTotalCacheHits() = 756358 getTotalCacheMisses() = 11262 getTotalEvictionCount() = 10095

How would I get the KEY() = VALUE into nvpairs in splunk after*InsertCache Stats*:

Tags (1)
0 Karma

somesoni2
Revered Legend

Using inline in the search, you can do like this

your base search 
| rex mode=sed "s/(\w+)\(\)\s*\=\s*(\S+)/\1=\2/g" 
| extract
0 Karma
Get Updates on the Splunk Community!

Shape the Future of Splunk: Join the Product Research Lab!

Join the Splunk Product Research Lab and connect with us in the Slack channel #product-research-lab to get ...

Auto-Injector for Everything Else: Making OpenTelemetry Truly Universal

You might have seen Splunk’s recent announcement about donating the OpenTelemetry Injector to the ...

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...