Splunk Dev

How to rollover python logs in splunk

strive
Influencer

Hi,

I could not find settings to roll over python logs in splunk. In our systems, the python.log size is increasing day by day. When the log file size grows exponentially, neither customers can send us the logs, nor we would be able to open using any editors to analyze the issues.

I tried changing the settings in log.cfg, but none worked. I searched splunk base, i found a similar question asked few days back, but its not answered.

http://splunk-base.splunk.com/answers/77755/enabling-python-log-rollover-in-splunk

As a last resort i should write custom scripts which runs on the background to archive and delete python logs. I prefer some settings from splunk side rather than writing custom scripts.

Thanks

Strive

Tags (1)
1 Solution

strive
Influencer

http://dev.splunk.com/view/splunk-extensions/SP-CAAAEA9 this link was helpful.

In my python scripts i set handlers to RotatingFileHandler.

View solution in original post

strive
Influencer

http://dev.splunk.com/view/splunk-extensions/SP-CAAAEA9 this link was helpful.

In my python scripts i set handlers to RotatingFileHandler.

Get Updates on the Splunk Community!

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

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...