question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Log files with wildcards stopped being ingested after upgrading to 1.6.1

See original GitHub issue

After upgrading the logdna-agent from 1.5.6 to version 1.6.1 (running on Ubuntu 18.04.3 LTS (GNU/Linux 4.15.0-1048-aws x86_64)), LogDNA stopped receiving logs from our systems. Here’s an analysis from the terminal:

ubuntu@ip-172-31-57-147:/var/log$ cat /etc/logdna.conf 
logdir = /home/apifier/*.log,/var/log/nginx/error.log
key = [REDACTED]

ubuntu@ip-172-31-57-147:/var/log$ sudo systemctl start logdna-agent

ubuntu@ip-172-31-57-147:/var/log$ cat logdna-agent.log
[190918 09:50:34] logdna-agent 1.6.1 started on ip-172-31-57-147 (172.31.57.147)
[190918 09:50:34] Streaming /var/log/nginx/error.log: 1 file(s)

ubuntu@ip-172-31-57-147:/var/log$ ls /home/apifier/*.log
/home/apifier/app@prod-api0.log  /home/apifier/app@prod-api3.log     /home/apifier/newrelic_agent.log
/home/apifier/app@prod-api1.log  /home/apifier/app@prod-daemons.log  /home/apifier/system.log
/home/apifier/app@prod-api2.log  /home/apifier/app@prod-ui.log       /home/apifier/testground@prod.log

Basically, it seems LogDNA agent is no longer able to handle wildcards in logdir option, such as /home/apifier/*.log. When we update /etc/logdna.conf as follows:

logdir = /home/apifier/app@prod-api3.log,/home/apifier/*.log,/var/log/nginx/error.log
key = [REDACTED]

then streaming of the file app@prod-api3.log resumes normally.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
andkoncommented, Dec 11, 2019

@jancurn it was! Mostly it was an ephemeral problem that showed up on your end because we screwed up and pushed 1.6.1 early. I wanted to verify this was for sure fixed in 1.6.2 before closing, and can confirm it does indeed.

1reaction
jancurncommented, Sep 18, 2019

Please, can you add some integration test for this, so that it doesn’t happen again?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Upgrading Specific Versions | Consul - HashiCorp Developer
Envoy xDS Protocol Upgrades​​ When upgrading to Consul 1.10, you must ensure that the Envoy sidecars are restarted and bootstrapped using a version...
Read more >
Configure Log Shippers - Humio Documentation
After installing vector , edit the configuration file, vector.toml ... We're using the wildcard to get all of the files in /var/log/httpd/ ....
Read more >
Prisma Access Known Issues - Palo Alto Networks
After upgrading the Cloud Services plugin from 2.0 to 3.1 in a multi-tenant Prisma Access-Prisma SD-WAN deployment that uses an on-premise ...
Read more >
Apigee known issues - Google Cloud
Issue ID Affects Status N/A • Apigee hybrid 1.6.0 and later OPEN N/A • Archive deployments OPEN N/A • Archive deployments OPEN
Read more >
Bug listing with status RESOLVED with resolution OBSOLETE ...
systemPrefs with at least two files" status:RESOLVED resolution:OBSOLETE ... Bug:223069 - "x11-libs/guile-gtk needs to be rebuild after guile changes to ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found