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

Docker api logger, single character logs #127

Open
dfredell opened this issue Dec 10, 2018 · 5 comments
Open

Docker api logger, single character logs #127

dfredell opened this issue Dec 10, 2018 · 5 comments

Comments

@dfredell
Copy link

dfredell commented Dec 10, 2018

After applying the fix specified in #126 (comment)
I ran into this issue. The logs uploaded to Scalyr are sent one character at a time instead of row by row. I confirmed that the log file in the Scalyr docker also is character by character.

See #126 for my setup.

image

root@33ce75*****:/# tail /var/log/scalyr-agent-2/docker-r-atlassian-***-1-********-stdout.log
r
e
a
m
G
u
a
r
d
F
@imron
Copy link
Contributor

imron commented Dec 19, 2018

Hi Dan, thanks for reporting this, and sorry to take so long to reply. You mentioned in #126 that you were using Rancher. Are you using docker only, or are you making use of their kubernetes support?

Also, which image of the scalyr agent are you using (we have slightly different ones for docker vs kubernetes)? Apologies if these questions seem trivial, these are not likely to be the cause of the issue, I just want to get a thorough understanding of your setup, to help track down what could be causing this. I suspect that the raw response generator is either not buffering the response correctly, or is accidentally inserting newlines somewhere.

@dfredell
Copy link
Author

Hey @imron,
We are not using Rancher's Kubernetes. We are using the Cattle env in Rancher, so ya just docker.
I'm using the scalyr/scalyr-docker-agent container version. Should I try/ use the scalyr/scalyr-k8s-agent one?

@imron
Copy link
Contributor

imron commented Dec 19, 2018

Don't use the k8s one unless you plan to try running it on Kubernetes.

By default the different images have slightly different agent configurations, and load different monitors in the agent, so they it likely won't work well if not running on the platform it was designed for.

@CoffeeExpress
Copy link

I'm also getting single character logs running the scalyr-agent on a linux host in a cattle cluster. Any chance there's a resolution for this?

@dfredell
Copy link
Author

I went and tried this again hoping that it would have been fixed by some other change. Nope, this is still an issue. :(
image

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