Getting Data In

How to edit props and transforms to route data to an index based field?

martaBenedetti
Path Finder

Hi,

I'm trying to route data to a specific index based on a value in a field.

I have a series of data that look like this:

 

Mar  1 16:26:52 xxx.xxx.xxx.xxx Mar 01 2022 16:26:52 hostname : %FTD-6-113008: AAA transaction status ACCEPT : user = username
Mar  1 17:42:18 xxx.xxx.xxx.xxx Mar 01 2022 17:42:18 hostname  : %ASA-6-611101: User authentication succeeded: IP address: xxx.xxx.xxx.xxx, Uname: username

 

My props.conf on indexer looks like this:

 

[cisco:asa]
TRANSFORMS-01_index = force_index_asa_audit

 

My transforms.conf on indexer looks like this:

 

[force_index_asa_audit]
DEST_KEY = _MetaData:Index
REGEX =(?:ASA|FTD)-\d+-(?:113008|113012|113004|113005|611101|605005|713166|713167|713185|716038|716039|713198|502103|111008|111010)
FORMAT = asa_audit

 

But unfortunatly nothing happens.

I've tryed also using source in props.conf with no successful  result.

Do you have any idea?

Thank a lot

Marta

Labels (3)
0 Karma
1 Solution

somesoni2
Revered Legend

Yes.  Your transform should be applied to the original sourcetype i.e. "cisco_asa" (props.conf change). 

View solution in original post

0 Karma

somesoni2
Revered Legend

Your regex/configuration looks good. Where are you keeping these configurations? If you use a heavy forwarder, it should be set on heavy forwarder. If data is sent directly from Universal forwarder to Index, set this on Indexer. Do remember to restart Splunk after making this configuration change. 

martaBenedetti
Path Finder

somesoni2 the configurations are kept on Heavy Forwarders, data ingestion is done through monitoring of files written by rsyslog.

On Heavy Forwarder is installed also the Splunk Add-On for Cisco ASA that performs a sourcetype rename (from cisco_asa to cisco:asa) : could this be the reason why the configurations are not working?

Thanks for your help

Marta

0 Karma

somesoni2
Revered Legend

Yes.  Your transform should be applied to the original sourcetype i.e. "cisco_asa" (props.conf change). 

0 Karma

martaBenedetti
Path Finder

Thanks a lot somesoni2, now is working fine!

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Thanks for the Memories: .conf26 Took Learning to New Heights

Thank you, Splunk Community, for making .conf26 in Denver one for the books. From packed Splunk University ...

Best Practices: Splunk auto adjust pipeline queue

When you enable autoAdjustQueue in Splunk, maxSize should be understood as the queue size Splunk starts with ...

Splunk Auto Ingestion Parallel Pipeline Scaling

Why this feature matters Many Splunk environments experience ingestion pressure long before the host is fully ...