Getting Data In

How to redirect some SNMP data to a new index?

hagjos43
Contributor

We have SNMP data being sent from a heavy forwarder to our indexers into an index that we'll call cacti.

We want SOME of the data (specifically traffic data) to go to another index. My inputs.conf on some test logs (fake data) is set to send data to the main index with a sourcetype of cacti:test1.

I've done a test that looks like the following with zero luck (These have been placed on the Heavy Forwarder):
TRANSFORMS.conf:

[IndexRedirect_traffic]
REGEX = rrdn\Straffic
DESKT_KEY = _MetaData:Index
FORMAT = index::cacti_traffic

PROPS.conf:

[cacti:test1]
TRANSFORMS-indexredirect = IndexRedirect_traffic
0 Karma
1 Solution

hagjos43
Contributor

Looks like I had an issue with my REGEX, and it worked after the REGEX fix.

Thanks!

View solution in original post

0 Karma

hagjos43
Contributor

Looks like I had an issue with my REGEX, and it worked after the REGEX fix.

Thanks!

0 Karma

somesoni2
SplunkTrust
SplunkTrust

Try this for transforms.conf entry.

[IndexRedirect_traffic]
 REGEX = rrdn\Straffic
 DESKT_KEY = _MetaData:Index
 FORMAT = cacti_traffic
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 ...