Getting Data In

is there a problem with logs that end in the date?

mmattek
Path Finder

I have a log structure like so:

/opt/data/logs/tomcat/foo or /opt/data/logs/tomcat/bar

the logs themselves are something like log1.out.2012-05-01, etc.

I've tried several monitor stanzas like:

[monitor:///opt/data/logs/tomcat/.../*]
whitelist: foo\.out\.*

or

[monitor:///opt/data/logs/tomcat/.../foo\.out\.*]

but nothing is picking up these logs...

Tags (2)
0 Karma

yannK
Splunk Employee
Splunk Employee

The monitor path looks good.

Are your file starting with the same first lines ?
Maybe is it the crc calculation on the first 256 chars causing the logs file to be considered as identical.
A workaround for this is to add crcSalt in inputs.conf, see http://docs.splunk.com/Documentation/Splunk/4.3.2/admin/Inputsconf

If there is no timestamp in the events, maybe the timestamp is extracted from the filename, please search over all time for source=myfile

Finally to check what the tailing processor is saying, use the REST API
https://localhost:8089/services/admin/inputstatus/TailingProcessor:FileStatus

mmattek
Path Finder

the rest API was great, that provided good clues.. had to do with overlapping monitor stanzas. in old environment, server had separate folders, move to new one, I changed all monitor stanzas to the same folder, but apparently only one whitelist applied!

Changed to a (x.log|y.log) etc, whitelist and one stanza...

0 Karma

mmattek
Path Finder

I think web mangled... I had the "." characters escaped, btw

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...