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!

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...