Getting Data In

incomplete log for overwriting log file

zhengzhi163
New Member

Our system is generating log files named stdout.{pid}.log, the 'pid' here is the process id of current login session, and the log file will be reused when system reusing same pid, and it will overwrite the log file rather than appending at the tail. currently we found sometimes the entries on splunk are incomplete when it's overwriting by sytem.
i.e. system generated a stdout.27797.log on 25th Mar, and the whole content can be found on splunk. but when system overwriting this log file on 26 Mar, we only find the first 2 lines of the file on splunk, seems this file is indexed but splunk just can't collect all the content in it.

the configuration of input.conf:

[monitor:///testing/stdout.*.log]
index= efx_fxomurex_raw
sourcetype = efx_fxomurex_stdout_live
ignoreOlderThan = 7d
crcSalt = <SOURCE>

OS: Solaris 10.

0 Karma
Get Updates on the Splunk Community!

App Platform's 2025 Year in Review: A Year of Innovation, Growth, and Community

As we step into 2026, it’s the perfect moment to reflect on what an extraordinary year 2025 was for the Splunk ...

Operationalizing Entity Risk Score with Enterprise Security 8.3+

Overview Enterprise Security 8.3 introduces a powerful new feature called “Entity Risk Scoring” (ERS) for ...

Unlock Database Monitoring with Splunk Observability Cloud

  In today’s fast-paced digital landscape, even minor database slowdowns can disrupt user experiences and ...