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!

Your Voice Matters! Help Us Shape the New Splunk Lantern Experience

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

September Community Champions: A Shoutout to Our Contributors!

As we close the books on another fantastic month, we want to take a moment to celebrate the people who are the ...

Community Content Calendar, October Edition

Welcome to the October edition of our Community Spotlight! The Splunk Community is a treasure trove of ...