Logging From Applications

You can send data to Loggly through Syslog for system and file based logs, or using our HTTP API for custom applications. Here are guides on the three general methods, as well as application specific guides with recommendations for each type of app and best practices.

General Methods

  1. Syslog Stream
    Write the log to the local Syslog. And then set up Syslog to forward to Loggly. Once you’ve got your app forwarding logs to Syslog, check out our pages on Logging from Unix Systems or Logging from Windows Systems.

  2. File Monitoring
    Syslog can monitor or watch the log file & then forward the logs to Loggly. This requires adding just a few lines to your syslog configuration. This is not a great option if your log data is multi-line, e.g Java stack traces. Our Knowledge Base has articles on how to set up file monitoring for rsyslog, syslog-ng, and NXLog (Windows).

  3. Send to our HTTP Endpoint
    Write directly from the Application to Loggly using our HTTP Endpoint. This is the best method to use for client-side languages such as Javascript and Flash, or pixel-tracking.

Application-Specific Guides

We have dozens of application specific guides including:

You can see more in the menu on the left.

Best Practices for Application Logging

Thanks for the feedback! We'll use it to improve our support documentation.


Top