Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After Log rotate google fluentd process is not running #251

Open
arunsr2015 opened this issue Mar 24, 2020 · 1 comment
Open

After Log rotate google fluentd process is not running #251

arunsr2015 opened this issue Mar 24, 2020 · 1 comment

Comments

@arunsr2015
Copy link

Hi

I have noticed sometimes after the google-fluentd.log file is rotated , google-fluent process does not start and i see a file
-rw-r----- 1 google-fluentd root 0 Mar 22 04:59 google-fluentd.log
This is the logrotate file

/var/log/google-fluentd/google-fluentd.log {
daily
rotate 30
compress
delaycompress
notifempty
create 640 google-fluentd google-fluentd
sharedscripts
postrotate
pid=/var/run/google-fluentd/google-fluentd.pid
test -s $pid && kill -USR1 "$(cat $pid)"
endscript
}
i tried changing postrotate to
postrotate
service google-fluentd stop
sleep 125
service google-fluentd start
but it gets overwritten to the default post rotate.

Plz advise

@davidbtucker davidbtucker self-assigned this Apr 5, 2020
@GLStephen
Copy link

I've seen this behavior recently as well.

@davidbtucker davidbtucker removed their assignment Sep 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants