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!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...