Splunk Search

understanding the transforms.conf

kteng2024
Path Finder

hi,
Can someone please explain me the below transforms.conf . I read the documentation ,but it's not clear to me .

[route-index-abc]
REGEX = (.*) ( what is the use of REGEX)
DEST_KEY = _MetaData:Index ( what is the use DEST_KEY)
FORMAT = server_application ( what is the use of FORMAT)

0 Karma

somesoni2
Revered Legend

The transforms.conf entry that you've is applied to each event of a sourcetype, source or host.

  • The REGEX is a regular expression that tries to find a match from the value of SOURCE_KEY (an attribute which has default value as _raw, your raw data). A dot means it'll match everything (the transform will be done for all events).
  • DEST_KEY - it provides a Splunk field (that are available at the time of parsing) where the transformation will be applied.
  • FORMAT - it's a value that will be applied to value of DEST_KEY

So basically what it's doing here is, for each event, change the value of index (represented as _MetaData:Index in transforms.conf) with value server_application, regardless of what it's original value was.

0 Karma

somesoni2
Revered Legend
0 Karma
Get Updates on the Splunk Community!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...