Getting Data In

How configure SED props.conf on a Heavy Forwarder to make a field CIM compliant?

daniel333
Builder

All,

My first time messing with data manipulation at the heavy forwarder tier. Specifically looking to CIM a field my developers can't fix at code. Essentially quick sub elapsedTime to duration.

Version: Splunk 6.32/UF 6.24
Linux CentOS 6.x

props.conf

[log4j]
SED-alter = y/elapsedTime/duration/
0 Karma
1 Solution

somesoni2
Revered Legend

You should use 's/...' instead of 'y/...'

props.conf

[log4j]
SED-alter = s/elapsedTime/duration/g

View solution in original post

0 Karma

somesoni2
Revered Legend

You should use 's/...' instead of 'y/...'

props.conf

[log4j]
SED-alter = s/elapsedTime/duration/g
0 Karma

daniel333
Builder

Switched it to SEDCMD and it worked

[log4j]
SEDCMD-alter = s/elapsedTime/duration/g

0 Karma

somesoni2
Revered Legend
  • substitute - y/string1/string2/
    • substitutes the string1[i] with string2[i]

So both string should be of same lenght

0 Karma

daniel333
Builder

Okay, tried to s//g version, and restarted the heavy forwarder. Unfortunately no luck. Still seeing elapsedTime coming in.

Any idea where I might be going wrong?

0 Karma

MuS
SplunkTrust
SplunkTrust

check the sourcetype does match and SED-alter is unique

0 Karma
Get Updates on the Splunk Community!

Admin Your Splunk Cloud, Your Way

Join us to maximize different techniques to best tune Splunk Cloud. In this Tech Enablement, you will get ...

Cloud Platform | Discontinuing support for TLS version 1.0 and 1.1

Overview Transport Layer Security (TLS) is a security communications protocol that lets two computers, ...

New Customer Testimonials

Enterprises of all sizes and across different industries are accelerating cloud adoption by migrating ...