Deployment Architecture

files not being indexed

a212830
Champion

Hi,

I have a set of logfiles that I can't get indexed. I am getting some files, but not others.

Here's my inputs.conf. There are 3 types of files - SystemOut.log, SystemErr.log (which aren't working) and trace.log (which is working). The System log files exist, are recent, and I can access them, but they aren't showing up on my system. The trace files are showing up. The files exist in subdirectories below the ..profiles directory. I can't see any issues. Is this inputs correct?

[monitor://F:\IBM\WebSphere\AppServer\profiles]
recursive = true
sourcetype = STGWProfileLogs_system
index = euc_sametimedata
crcSalt = <SOURCE>  
whitelist = SystemOut.log|SystemErr.log
ignoreOlderThan = 30d

[monitor://F:\IBM\WebSphere\AppServer\profiles]
recursive = true
sourcetype = STGWProfileLogs_trace
index = euc_sametimedata
crcSalt = <SOURCE>
whitelist = trace.log
Tags (2)
0 Karma

sbrant_splunk
Splunk Employee
Splunk Employee

You might want to give alwaysOpenFile = 1 a try.

From the docs: http://docs.splunk.com/Documentation/Splunk/5.0.2/admin/Inputsconf

alwaysOpenFile = [0|1]

  • Opens a file to check whether it has already been indexed.
    • Only useful for files that don't update modtime.
    • Only needed when monitoring files on Windows, mostly for IIS logs.
    • This flag should only be used as a last resort, as it increases load and slows down indexing.
    • Defaults to 0.
0 Karma

jdunlea_splunk
Splunk Employee
Splunk Employee

The whitelist that you have specified is not escaping the "." in the filename.

I think your whitelist should have back slashes before the .log

EG:

alt text

0 Karma

a212830
Champion

Didn't do it. I'm baffled. I've tried a number of different variations. My latest, which I think should work: (this is windows). The file is there, and I can edit it.

[monitor://F:\IBM\WebSphere\AppServer\profiles...\logs\System(Out|Err).log]
sourcetype = STMeetingProfileLogs_system
index = euc_sametimedata
crcSalt =

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 ...