Search Results

Search: Posts Made By: Neeryan
2,037
Posted By Neeryan
here not working means..the rotation is not...
here not working means..the rotation is not happening..I have tried it outside cron as well..but no luck, no rotation is happening. I have tried by removing the compress from post rotate but still no...
2,037
Posted By Neeryan
Facing Issue after configuring logrotate
Hi,

I have a logrotate configuration which rotates a log every night 1 min before midnight, but somehow its not working and unfortunately not showing any error message as well. Sharing the code...
998
Posted By Neeryan
A small help needed in Logrotate
Hi,

I wanted to know can a custom script can be made available to run in

postroate
endscript

something like

postrotate
./scriptpath/sh-script.sh
endscript

Is this the correct...
11,336
Posted By Neeryan
Ok, I got it, now I understood that, the log...
Ok, I got it, now I understood that, the log files were not lost as every time the JVM will restart, it will create a new logfile with the name which includes its date.

I will now check my backup...
11,336
Posted By Neeryan
ok, let me explain it to you. Lets say I...
ok, let me explain it to you.

Lets say I have created a gc file in the format you suggested,
java ... -Xloggc:/path/gc-$(date +%Y%m%d-%H%M%S).log
This will identify when the log file started...
11,336
Posted By Neeryan
Thanks for swift reply, a good suggestion, now...
Thanks for swift reply, a good suggestion, now the catch is..this will only give the time/date stamp when the service is restarted, lets say service is restarted today at some time, using the above...
11,336
Posted By Neeryan
Shell Script for GC Logs
Hi,

I have a strange situation here, I want to archive gc.logs file, generated by a java application, the strange thing about gc.log file is is doesn't have any time/date stamp appended to it...
Showing results 1 to 7 of 7

 
All times are GMT -4. The time now is 08:45 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy