Getting Data In

Can I parse data at the indexer since I am using a Universal Forwarder on my source and how will that impact licensing?

Magnus_001
Explorer

I am a using a Universal Forwarder on my domain controller to forward security events to a Splunk indexer and would like to filter out the static text "This event is generated..." in the security events to reduce the data consumption by the indexer. I know this can be done with a Heavy Forwarder at the source, but can I do this at the Indexer with the following entries in the props.conf and transforms.conf? Will it reduce my data consumption/license or is it too late by the time it reaches my indexer? Thanks!

Source: Windows Domain Controller (Universal Forwarder)

Splunk Indexer v6.1.x:

Props.conf

[WinEventLog:Security]
TRANSFORMS_ShortenMsg=ShortenSecMsg

Transforms.conf

[ShortenSecMsg]
REGEX=(?msi)(.*)This event is generated
DEST_KEY=_raw
FORMAT=$1
0 Karma
1 Solution

schose
Builder

Hi,

You can do it exactly as you mentioned. The props.conf and transforms.conf will be used on the indexer when "cooking" the data. So it's not to late to delete some data there before indexing. License meter is used after cooking the data. In this scenario a UF on the DC will be enough.

you will just need to define your the same sourcetype in inputs.conf on the UF as as you do in props.conf on the indexer. make sure all your props.conf are the same on all indexers.

Regards,

Andreas

View solution in original post

Magnus_001
Explorer

Thank you all. I was able to filter out the unwanted static text with those changes to the Props.conf and Transforms.conf on the Indexer since I am using a UF on my DCs.

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

I see. Based on the docs I'd have expected something different, will ask for docs clarification 🙂

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

Did you try modifying inputs.conf on the UF to not include the text in the first place?

0 Karma

Magnus_001
Explorer

Hi, the suppress_text = 1 works but it also removes many interesting fields we need (Account_Nmae, Account_domain, Logon_type, etc.).

0 Karma

schose
Builder

Hi,

You can do it exactly as you mentioned. The props.conf and transforms.conf will be used on the indexer when "cooking" the data. So it's not to late to delete some data there before indexing. License meter is used after cooking the data. In this scenario a UF on the DC will be enough.

you will just need to define your the same sourcetype in inputs.conf on the UF as as you do in props.conf on the indexer. make sure all your props.conf are the same on all indexers.

Regards,

Andreas

martin_mueller
SplunkTrust
SplunkTrust

Replacing _raw isn't necessary, you can tell the UF to not even include that data.

0 Karma

aweitzman
Motivator

To add to @schose's answer, your idea as posted is basically correct. However, since you are replacing _raw, you need to have a regex capture group for the content after the string you want to filter out, and include that in your format string, something like:

 [ShortenSecMsg]
 REGEX=^(.*)This event is generated(.*)$
 DEST_KEY=_raw
 FORMAT=$1$2
0 Karma

martin_mueller
SplunkTrust
SplunkTrust

Keep using a Universal Forwarder and check out the settings for WinEventLog type inputs at http://docs.splunk.com/Documentation/Splunk/6.2.2/admin/inputsconf - I'm no Windows expert, but you might just be looking for suppress_text = 1.

0 Karma

fdi01
Motivator

use a heavy forwarder to do it .
because Universal Forwarder can not parse data .
http://docs.splunk.com/Splexicon:Heavyforwarder

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 ...