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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...