Getting Data In

Dump files and filtering and sending to indexer

asarolkar
Builder

I have a .out DUMP file generated by Bamboo Logs -- that I want to monitor in Splunk.

I need to filter out certain content and then push over the rest to Standard Out via the universal forwarder onto the indexer.

What is the best way to go about this ?

A few options :

i) Convert the .out file to a .log file and filter out content using some process (not sure how) I could use a nullQueue setup on the indexer that will filter out whatever should not be indexed in splunk

ii) Point the configuration on the universal forwarder DIRECTLY to the .out file

[monitor://C:\Location]
disabled=1
followTail=0
sourcetype=dumpFile
whitelist= \.out$ | \.out[0-9]*$

I have been trying to get alternative (ii) to work -- but the dry run was largely unsuccesfull

iii) Somehow write the content of the .out file to sysout

Suggestions are appreciated : ) thanks !

0 Karma

kenth
Splunk Employee
Splunk Employee

Is the file a binary file? If not then you don't need to convert to .log. Just monitor the file and then you use props/transforms.conf to look for what you don't want sent to the indexer and forward that to the nullQueue.

transforms.conf
[dumpme]
REGEX = .
DEST_KEY = queue
FORMAT = nullQueue

props.conf
[source::...myoutputfile.out]
TRANSFORMS-dumpme = dumpme

This will dump everything though so make sure your regex is intact. Also this can't be done on a UF it needs to be done when it data hits the indexer.

asarolkar
Builder

Its like catalina.out from tomcat

MINUS the timestamps, which presents a challenge in its own

0 Karma
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...