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!

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 ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...