Getting Data In

Route Syslogs coming from certain hosts into a separate index

yahsiel2004
New Member

I've been attempting to route Syslog messages, coming from certain hosts, to a separate index with no success. Below is an example of my config:

Splunk\etc\system\local\

Props.conf
[syslog]
TRANSFORMS-index = test

Transforms.conf
[test]
REGEX = *
FORMAT = myindex
DEST_KEY = _MetaData:Index

0 Karma
1 Solution

grijhwani
Motivator

"*" is not a valid regex. You need ".*".

View solution in original post

0 Karma

grijhwani
Motivator

"*" is not a valid regex. You need ".*".

0 Karma

yahsiel2004
New Member

Thanks that definitely made a difference 🙂

0 Karma

adrianathome
Communicator

In inputs.conf

[udp://10.1.1.5:514]

Index=myindex

0 Karma

yahsiel2004
New Member

That also didn't work

0 Karma

yahsiel2004
New Member

Corrections to the Transforms.conf

[test]
REGEX = host=192.168.0.1
FORMAT = myindex
DEST_KEY = _MetaData:Index

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Thanks for the Memories! Splunk University, .conf25, and our Community

Thank you to everyone in the Splunk Community who joined us for .conf25, which kicked off with our iconic ...

Data Persistence in the OpenTelemetry Collector

This blog post is part of an ongoing series on OpenTelemetry. What happens if the OpenTelemetry collector ...

Introducing Splunk 10.0: Smarter, Faster, and More Powerful Than Ever

Now On Demand Whether you're managing complex deployments or looking to future-proof your data ...