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!

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...