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
Legend

check the sourcetype does match and SED-alter is unique

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...