The LogDNA Agent reads log files from the computer that it is installed on, and uploads the log data to your LogDNA account to view in the LogDNA web application.
The LogDNA Agent runs on Kubernetes, Openshift, Linux, Windows, and MaxOS.
Earlier versions of the LogDNA Agents
To install the LogDNA Agent follow the instructions in the documentation for each operating system or platform:
You can also log in to the LogDNA web application at https://app.logdna.com/ and follow the instructions in the product UI for adding log sources instructions. In the LogDNA app, click on the Help button (bottom left corner of the dashboard), then Logging Setup.
By default, the LogDNA Agent automatically logs all .log and extensionless files located under /var/log/, but if you want to log other directories or files, you can use the following commands to in a host terminal to specify additional directories or files:
#For directories: sudo logdna-agent -d "/path/to/my/logs" #For files: sudo logdna-agent -f "/path/to/my/logfile"
If you need more complex logic, you can also view and set specific logging paths (as well as use glob patterns by editing /etc/logdna.confor /etc/logdna.env`, depending on the agent version. For example:
Absolutely! You can view (and contribute to!) the source code on GitHub for both Agentv1 and Agent v2 and even build the agent yourself. If you have any questions or feedback, email us at [email protected]
We also love the open source community, so please feel welcome to submit PRs or report any issues you find. Check out our contributing guide for more info.
Host tags allow you to group hosts automatically into dynamic host groups without having to explicitly assign a host to a group within the LogDNA web app. To use tags, ensure the agent is installed on your host and use the following command to add a tag or tags:
sudo logdna-agent -t mytag,myothertag,anothertag
You can also edit the LogDNA configuration file (/etc/logdna.conf or /etc/logdna.env`, depending on the agent version) and specify the tags there.
Keep in mind, even if your hostname or host machine changes, as long as the agent is running with the same tags configured, that host will automatically be added to the dynamic group located under the hosts filter.
The LogDNA agent automatically uses the machine's default OS hostname. If you wish to use a different hostname, you can edit the LogDNA configuration file (/etc/logdna.conf or /etc/logdna.env`, depending on the agent version) and specify the hostname there.
Updated about a month ago