Getting Data In

How to configure a Heavy Forwarder to override any index name coming from Universal Forwarders?

kylerose
Explorer

We would like to override ANY index name coming from Universal Forwarders. We would like to do this at our Heavy Forwarders. Here is the config we are using on our HFs that is not working:

inputs.conf

[splunktcp-ssl:9997]
disabled = 0
index = *new_index_name*
_TCP_ROUTING = autolb-group

[SSL]
rootCA = /opt/splunk/etc/auth/cacert.pem
serverCert = /opt/splunk/etc/auth/server.pem
password = *password*

outputs.conf

[indexAndForward]
index = false
selectiveIndexing = false

[tcpout]
defaultGroup = autolb-group

[tcpout:autolb-group]
disabled = false
server = *forwarders*
sslCertPath = /opt/splunk/etc/auth/server.pem
sslPassword = *password*
sslRootCAPath = /opt/splunk/etc/auth/cacert.pem
sslVerifyServerCert = false
useACK = false

props.conf

[myindex]
TRANSFORMS-index=overrideindex

transforms.conf

[overrideindex]
REGEX = (.*)
FORMAT = *new_index_name*
SOURCE_KEY=_MetaData:Index
DEST_KEY = _MetaData:Index
0 Karma
1 Solution

kylerose
Explorer

The issue was in props.conf

[myindex] needed to be set to [host::*]

View solution in original post

0 Karma

kylerose
Explorer

The issue was in props.conf

[myindex] needed to be set to [host::*]

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