Deployment Architecture

How do I configure splunk forwarder to forward files with XLS extension?

phoe721
New Member

I have files with xls extension, but actually it's csv contents.
How do I set splunk forwarder to forward these files with xls extension?

Tags (2)
0 Karma
1 Solution

lguinn2
Legend

If you haven't reviewed the Splunk tutorial, I recommend it: Splunk Tutorial. Part 3 talks about getting data into Splunk.

Specifically, you just need to specify a monitor stanza in inputs.conf. The stanza should reference the file(s) that you want to forward.
More info at Edit inputs.conf in the Getting Data In manual.

View solution in original post

0 Karma

phoe721
New Member

I have edited my inputs.conf as follows:
[monitor:///home/logs/xyz]
whitelist = .*$
recursive = true

But I still get:
TailingProcessor - Ignoring file '/home/logs/xyz/abc.xls' due to: binary

0 Karma

phoe721
New Member

Thank you so much for your help! I'll give it a try!

0 Karma

lguinn2
Legend

If you haven't reviewed the Splunk tutorial, I recommend it: Splunk Tutorial. Part 3 talks about getting data into Splunk.

Specifically, you just need to specify a monitor stanza in inputs.conf. The stanza should reference the file(s) that you want to forward.
More info at Edit inputs.conf in the Getting Data In manual.

0 Karma

lguinn2
Legend

Set inputs.conf to this

[monitor:///home/logs/xyz]
sourcetype=myCSV

You don't need the other settings. I do think you should assign a sourcetype. But since Splunk thinks the file is binary, you will need props.conf as follows:

[myCSV]
NO_BINARY_CHECK = true

Now, if the file is actually binary, you will get gibberish in Splunk. But if the file really is in CSV format, it should index properly. You might want to set some other properties in props.conf as well, but this should get you started.

0 Karma
Get Updates on the Splunk Community!

Strengthen Your Future: A Look Back at Splunk 10 Innovations and .conf25 Highlights!

The Big One: Splunk 10 is Here!  The moment many of you have been waiting for has arrived! We are thrilled to ...

Now Offering the AI Assistant Usage Dashboard in Cloud Monitoring Console

Today, we’re excited to announce the release of a brand new AI assistant usage dashboard in Cloud Monitoring ...

Stay Connected: Your Guide to October Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...