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 #385

Open
arunsr2015 opened this issue Mar 22, 2020 · 0 comments
Open

After Log rotate google fluentd process is not running #385

arunsr2015 opened this issue Mar 22, 2020 · 0 comments

Comments

@arunsr2015
Copy link

arunsr2015 commented Mar 22, 2020

Hi

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

@arunsr2015 arunsr2015 changed the title After Log rotate google fluentd does process is not running After Log rotate google fluentd process is not running Mar 22, 2020
@davidbtucker davidbtucker self-assigned this Apr 5, 2020
@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

2 participants