Getting Data In

multirecord key/value input

deusaquilus
New Member

I have a script that dumps data several lines at a time, each line has a set of key/value pairs eg:

server=host1.blah.net, port=8080, requests=234, heap=20485
server=host2.blah.net, port=8080, requests=104, heap=46225, uptime=24325
server=host3.blah.net, port=8080, requests=234

I want splunk to treat each line as a separate log entry and whatever keys are present to be collected (e.g. like the result you get with autoKV). How do I setup props.conf and transforms.conf?

0 Karma

MarioM
Motivator

you only need props.conf with the following:

[<yoursourcetype>]
SHOULD_LINEMERGE = False 
# If your events has no timestamp the config below will add current date/time as timestamp
DATETIME_CONFIG = CURRENT
KV_MODE = auto
0 Karma
Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...