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
Get Updates on the Splunk Community!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...