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!

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

A Guide To Cloud Migration Success

As enterprises’ rapid expansion to the cloud continues, IT leaders are continuously looking for ways to focus ...

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...