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!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...