-
Notifications
You must be signed in to change notification settings - Fork 0
LogDNA Upgrade
Dave Wong edited this page Sep 24, 2021
·
3 revisions
LogDNA requires all their agents to be > 1.6.1
. If you need to update an agent:
- SSH into the server
- check what version of the agent is currently installed:
logdna-agent -v
- update apt repositories:
sudo apt update
- update logdna-agent:
sudo apt install --only-upgrade logdna-agent
- restart the agent:
sudo systemctl restart logdna-agent
- we need to configure the agent to start when the server starts:
sudo systemctl enable logdna-agent
to ensure that the agent is running correctly:
- you can tail the logs to see if the logs are being sent:
tail -f /var/log/logdna-agent.log
and you should see:
2021-09-24 18:55:57 0000 [info] logdna-agent/2.2.1 started on goodtalk-worker-large-001 (<server IP>)
2021-09-24 18:55:57 0000 [info] LogDNA URL: https://logs.logdna.com:443/logs/agent
2021-09-24 18:55:57 0000 [info] streaming /home/forge/api.goodtalk.soapboxhq.com/storage/logs: 2 file(s)
2021-09-24 18:55:57 0000 [info] streaming /var/log: 62 file(s)
https://github.com/logdna/logdna-agent-v2/blob/3.3.0-beta.1/docs/LINUX.md