Getting Data In

Splunk doesn't index new created logfile.

chrisitanmoleck
Path Finder

Hello,

I observe a ftp logfile. The server creates one logfile for one day.
At midnight there will be a new file created. But this is not readable for the forwarder.
If I restart the forwarder, everything is fine, and will be forwarded.

Example:

20th March 11PM: Logfile is forwarding to the indexer
21th March 01AM: No forwarding
21th March 08AM: Forwarder restart
21th March 08AM: Logfile is forwarding to the indexer

The splunkd logfile has three entries:

03-21-2014 00:01:19.664 +0100 WARN FileClassifierManager - The file 'path_to_logfile' is invalid. Reason: binary
03-21-2014 00:01:19.664 +0100 INFO TailingProcessor - Ignoring file 'path_to_logfile' due to: binary
03-21-2014 04:31:09.931 +0100 ERROR TailingProcessor - Ignoring path="path_to_logfile" due to: Bug: tried to check/configure STData processing but have no pending metadata.

inputs.conf

[monitor://path_to_logfile]
disabled = false
sourcetype = FTPLOG
crcSalt = <SOURCE>
Charset = Auto

props.conf

[monitor://path_to_logfile]
NO_BINARY_CHECK = true

Could you help me?
Christian

0 Karma
1 Solution

MuS
Legend

Hi chrisitanmolecki,

Splunk checks the first bits of your file, could there be an invisible control character at the start of your file? That happened to me one time...
Just edited the file with an hex editor and check if there are some strange characters like xA0

hope this helps ...

cheers, MuS

View solution in original post

MuS
Legend

Hi chrisitanmolecki,

Splunk checks the first bits of your file, could there be an invisible control character at the start of your file? That happened to me one time...
Just edited the file with an hex editor and check if there are some strange characters like xA0

hope this helps ...

cheers, MuS

chrisitanmoleck
Path Finder

It works. Thank you MuS and kristian.kolb!!!

0 Karma

chrisitanmoleck
Path Finder

I changed the configs.

First results on monday morning.

Nice Weekend
Christian

0 Karma

kristian_kolb
Ultra Champion

Also (but maybe it's just a typo) you have a props.conf stanza that says [monitor://path_to_log], when it should say [FTPLOG] (i.e. just the sourcetype). The [monitor]-stanzas are for inputs.conf only.

MuS
Legend

Just saw that your Charset is A in inputs.conf instead of props.conf and B is wrong. It should be charset not Charset. See docs about binary file error http://docs.splunk.com/Documentation/Splunk/6.0.2/Troubleshooting/Binaryfileerror

chrisitanmoleck
Path Finder

The logfile starts with:

#Software: Microsoft Internet Information Services 6.0

in a hex-editor shows like:

2353 6F66 7477....

0 Karma
Get Updates on the Splunk Community!

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

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...