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!

Announcing Scheduled Export GA for Dashboard Studio

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

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...