Getting Data In

Routing problem with props and transforms

chintan_shah
Path Finder

Hi,

I am having trouble for routing the logs to separate index using props and transforms.
With the below code on Splunk instance, all the logs are being send to guilogins index and not on earlier index.
Also all the logs on guilogins doesnt match with the REGEX.
Can any one please help me out?

props.conf
TRANSFORMS-SET=allroute,loginroute

Transforms.conf
[allroute]
REGEX = .*
DEST_KEY = queue
FORMAT = indexQueue

[loginroute]
REGEX = .[GUI User Logged out|GUI New User Logged In].*
DEST_KEY = _MetaData:Index
FORMAT = guilogins

0 Karma
1 Solution

woodcock
Esteemed Legend

Use this instead:

TRANSFORMS-SET=loginroute

And deploy to your Indexers and restart splunk instances there and check newly arriving events only (not old ones).

View solution in original post

0 Karma

alemarzu
Motivator

Hi there, I believe you should change the regular expresion on the loginroute stanza, if I'm not mistaken that regex matches more than you want.

Try this (GUI\sUser\sLogged\sout|GUI\sNew\sUser\sLogged\sIn)

0 Karma

woodcock
Esteemed Legend

Use this instead:

TRANSFORMS-SET=loginroute

And deploy to your Indexers and restart splunk instances there and check newly arriving events only (not old ones).

0 Karma

chintan_shah
Path Finder

Hi Woodcock,
I want all the logs to be send to existing indexes and only few to be send to new index.
Looking at this it might impact the existing indexes as well.

0 Karma

chintan_shah
Path Finder

Hi Woodcock,

I have updated the regex which was creating the issue and use your suggestion of TRANSFORMS-SET and it worked fine.

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...