Hey Tim,

Update the logging.properties to include:

# The following limits the size of output log file in bytes:
java.util.logging.FileHandler.limit=50000

# Number of output files to cycle through.
# Appends integer to end of base file name
java.util.logging.FileHandler.count=10


Thanks,
Paul

From: <Stough>, "Timothy M (388F)" 
<[email protected]<mailto:[email protected]>>
Reply-To: "[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Date: Wednesday, February 13, 2013 10:52 AM
To: "<[email protected]<mailto:[email protected]>>" 
<[email protected]<mailto:[email protected]>>
Subject: Re: Issue with CAS log buildup...

I'll check out Chris' pointers.  But, to be clear, I was referring to the 
log-rolling method used by /var/logs logs, not actually putting our crawler 
logs there.  I want to have the logs occasionally rolled log -> log.0, log.0 -> 
log.0.gz etc... log.9.gz -> [deleted]...

Cheers,
Tim.


On Feb 12, 2013, at 10:32 PM, "Verma, Rishi (388J)" 
<[email protected]<mailto:[email protected]>> wrote:
You have CAS FM and Crawler writing to /var/logs? By default they write to 
filemgr/logs or crawler/logs. In either case though, you can adjust the logging 
granularity within filemgr/etc/logging.properties or 
crawler/etc/logging.properties.

You'll see in that file which Java classes log more verbosely (FINE, FINER, 
FINEST etc) than others and you can adjust accordingly. As for rolling the log 
messages over to new files, I believe this is determined by the logging 
property fields: "java.util.logging.FileHandler.pattern" and 
"java.util.logging.FileHandler.limit" - both of which are defined within 
logging.properties.

Hope that helps!
Rishi

On Feb 12, 2013, at 3:47 PM, Stough, Timothy M (388F) wrote:

Hello all,

I had a long running setup with File Manager and ~6 crawlers.  After a few 
months, the logs were on the order of TBs and filled up our RAID.  Where can I 
adjust the log granularity and is there a log roll over feature that rotates 
and compresses the logs in a /var/logs way?

Thanks
Tim.

-----------------------------------------------------------------
Tim Stough
NASA/Caltech Jet Propulsion Lab
Senior System Architect
Data Understanding Group (Section 388)
818-393-5347 (office)
626-644-6574 (cell)
-----------------------------------------------------------------




-----------------------------------------------------------------
Tim Stough
NASA/Caltech Jet Propulsion Lab
Senior System Architect
Data Understanding Group (Section 388)
818-393-5347 (office)
626-644-6574 (cell)
-----------------------------------------------------------------

Reply via email to