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

Duplicate log messages #27

Open
skyjur opened this issue Feb 15, 2018 · 5 comments
Open

Duplicate log messages #27

skyjur opened this issue Feb 15, 2018 · 5 comments

Comments

@skyjur
Copy link

skyjur commented Feb 15, 2018

I'm getting many duplicated log records on CloudWatch for almost every message. Any idea what can be cause of it? There aren't any duplclicates when I'm inspecting it with journalctl. I only have singe proccess running and configs are the minimum possible as described in readme.

@apparentlymart
Copy link
Collaborator

Hi @skyjur! Sorry for this weird behavior.

The program attempts to create batches of log entries to minimize the number of requests to the Cloudwatch Logs API under high throughput, but perhaps that batching behavior is misbehaving for some reason. Is the number of logs in your system either notably high or notably low?

Is the program producing any interesting log messages of its own? (We try to avoid writing anything to stdout and stderr in normal operation to minimize the risk of feedback loops if systemd is copying those streams back into the logs, so some messages may appear only in Cloudwatch Logs itself.)

@skyjur
Copy link
Author

skyjur commented Feb 16, 2018

Hi @apparentlymart , thanks for quick response.

I guess number of messages is pretty high (currently hundreds per minute, but will increase even further). Perhaps systemd is not the right place for my logs in the first place. I think I should probably use metrics api, instead of logs, since my primary goal is to have few charts in dashboard with numbers of events happening in my app.

@apparentlymart
Copy link
Collaborator

Hi @skyjur!

My experience running this application was only at low volumes of logs and it's very possible that there are bugs at higher volumes; though I'm not sure if I'd consider "hundreds per minute" as a lot, I suspect it was more than was going on in the deployment I'm familiar with since, as you said, we were using metrics (via influxdb) rather than logs for the higher-volume stuff, using the logs just for exceptional information.

Unfortunately there's no-one actively working on this codebase right now since it's been doing its job for some years now without changes and so everyone's moved on. If you're seeing unexplained misbehavior then it may be better to seek another solution here since unfortunately it's unlikely that any of the former maintainers of this program will be able to spend time digging in and debugging for the foreseeable future. 😖

@aymanosman
Copy link

I seem to be getting every log-event repeated exactly twice. Even with a very low number of log events happening. My setup is AWS EC2, ubuntu, systemd. I'm just experimenting with the library, so it's not a high priority.

@whereisaaron
Copy link

It would be worth eliminating the possibility you have two agents running on that instance, or you have this agent and the AWS agent is installed.

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

4 participants