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

rsyslog 8.2002.0-0adiscon3trusty1 file not transmit suddently #4220

Open
lynnnn12300 opened this issue Mar 13, 2020 · 1 comment
Open

rsyslog 8.2002.0-0adiscon3trusty1 file not transmit suddently #4220

lynnnn12300 opened this issue Mar 13, 2020 · 1 comment

Comments

@lynnnn12300
Copy link

lynnnn12300 commented Mar 13, 2020

rsyslog version: 8.2002.0-0adiscon3trusty1
we found that some log rotate very fast ,about 2min a log file, the rotate is mv the current file exp: json.log to json.log.1 , and will write a new file named json.log,when json.log comes to 100MB, it will mv json.log to json.log.1 ,and the old json.log.1 to json.log.2 ,as such and go on...

receiver log sees the log has not transmit about 10mins:
image

client sees the log is rotate, and new file name json.log:
image

rsyslog client config: just incluede the json.log , is there any problem?

@lynnnn12300
Copy link
Author

lynnnn12300 commented Mar 13, 2020

and when i change rsyslog client config to include json.log.xx ,I found when the log file rotate , some log were retransmit, see

wc -l 7c06322a2f459d3379386c748b64305c29204ff2c8c8a71b8927b1756f528544-json.log.1.2020-03-13-15

16410 7c06322a2f459d3379386c748b64305c29204ff2c8c8a71b8927b1756f528544-json.log.1.2020-03-13-15

image
image

how can i solve this ? thanks。

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

1 participant