Splunk Enterprise

help on transforms.conf

jip31
Motivator

hi

i have difficulties to understandand whats exacty do the field DEST_KEY and FORMAT on my host in stanza 1 and FORMAT in stanza 2

I have read the documentation but.....

Thanks in advance

  [rfc5424_host]
  DEST_KEY = MetaData:Host
  REGEX = <\d+>\d{1}\s{1}\S+\s{1}(\S+)
  FORMAT = host::$1
[host_as_src]
SOURCE_KEY = host
REGEX = (.+)
FORMAT = src::"$1

 

Labels (1)
Tags (1)
0 Karma
1 Solution

isoutamo
SplunkTrust
SplunkTrust

Hi

in 1st case DEST_KEY define that value of REGEX (inside()) will put into host field. That seems to be a host value in syslog feed, based on your REGEX.

In 2nd example, I think that you have additional “ on your stanza? Basically it take host field and copy it’s content to src field.

r. Ismo

View solution in original post

0 Karma

isoutamo
SplunkTrust
SplunkTrust

Hi

in 1st case DEST_KEY define that value of REGEX (inside()) will put into host field. That seems to be a host value in syslog feed, based on your REGEX.

In 2nd example, I think that you have additional “ on your stanza? Basically it take host field and copy it’s content to src field.

r. Ismo

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...