SaaS Version on July 14, 2016
Logentries is an easy-to-use, self-hosted log management and analytics service for teams of all sizes.
For a brief, high-level overview of Logentries, the 5-minute demo video below offers an introduction to Logentries’ capabilities:
Using Sample Code
These samples are meant to provide a helpful starting point for your custom integration. Though you may be able to copy some of the samples and use them without modifications, your system administrators must review and test all scripts and methods before using them, as per good practices.
Existing Logentries alerts or ability to create new alerts.
Understanding of BigPanda Alerts API.
Identify the active server that will run the GitHub script.
In BigPanda, click the Integrations tab at the top of the screen.
In the left pane, click New Integration.
On the Monitoring tab, click Alerts REST API.
In Step 1, enter the name of the integration.For example, enter
Click Generate App Key.
In Logentries, go to Tags & Alerts.
Create a new tag and alert or edit an existing alert by clicking Edit beside it.
In Add an Alert, ensure all alerts are sent to BigPanda by using the recommended settings:
- Match: Once, one per hour.
- Report: 100 per hour.
- Send to: Leave blank.
Expand Other Options and select the Webhook option.
Enter the IP address and port of the server that will run the script, then Save your changes.
The provided script defaults to port 10000.
Download and save the Logentries BigPanda Community GitHub script to the active server that will run it.
Edit the script to contain:
BigPanda Bearer Header key - Located on the Alerts API integration screen under the HTTP headers section.
BigPanda App key - Located on the Alerts API integration screen under the step one.
Port (default 10000) - The port of the machine running the script.
Run the twistd proxy server
sudo twistd -y bigpanda_proxy.pyto start the web server.
You will notice after running this command, twistd generates a log file in the same directory. You can check this to verify everything is ok.
(Optional) In Logentries, verify the correct alert webhook URL is in use.
If required, replace the URL with the correct IP address and port. For example:
From a command window, trigger an alert by sending test data to Logentries. For example:
telnet-ssl -z ssl data.Logentries.com 443 100002bfbea1e-10c3-4419-bdad-7e6435882e1f status = 500
Log in to BigPanda to see your newly created alert.
Add another alert to an existing search, if required.
Create more alerts in Logentries for other statuses; for example,
Logentries Incidents Do Not Close Automatically
Logentries incidents are not closed automatically because Logentries does not send notifications when alerts are resolved. You must manually resolve Logentries incidents in BigPanda to remove them from the incident feed or create alerts with an
ok status to automatically clear events.