Splunk Enterprise

About Parsing on Splunk- help with props.conf and stransforms.conf?

sudarshan19
New Member

i have ingested logs on univesral forwarder by creating file under
/var/log/filename .log & connected to heavy forwarder so now i need to parse data on heavyforwarder & i need to remove particular  line from each event.

so i need props .conf & transforms .conf for this

>UF>HF>Indexer

Labels (2)
0 Karma

sudarshan19
New Member

let me know  is there any mistakes in stanza

now i need to parse the data

 

In Heavy Forwarder

props.conf 

[source::/var/log/kub1.log]
TRANSFORMS-null= setnull


transforms.conf

[setnull]
REGEX = \S+=openid            (expression = i removed a line here from each  event)
DEST_KEY = queue
FORMAT = nullQueue

0 Karma

richgalloway
SplunkTrust
SplunkTrust

The nullQueue construct will delete events that match the REGEX value.  It cannot remove text from an event.

To remove text from an event, use SEDCMD in props.conf.

SEDCMD-remove_openid = s/\S+=openid//
---
If this reply helps you, Karma would be appreciated.
0 Karma

richgalloway
SplunkTrust
SplunkTrust

What have you tried so far?  How did those efforts fail to meet expectations?

Please share santized sample input and desired output.

---
If this reply helps you, Karma would be appreciated.
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...