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!

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

Splunk Enterprise Security 8.x: The Essential Upgrade for Threat Detection, ...

Watch On Demand the Tech Talk on November 6 at 11AM PT, and empower your SOC to reach new heights! Duration: ...

Splunk Observability as Code: From Zero to Dashboard

For the details on what Self-Service Observability and Observability as Code is, we have some awesome content ...