Send Loggly Alerts to HipChat

You can configure Loggly alerts to send to your HipChat rooms. We configure HipChat’s v2 API as a webhook and send notifications to the room as JSON messages.

HipChat Alert Setup

  1. Create an Alert Endpoint
  2. Log into your Loggly account, go to the Alert tab, click on Alert Endpoints, and then the Create Endpoint button. Select Hipchat Endpoint in the dropdown box. Provide a name and description, Room_Auth_Token and Room_ID.

    Hipchat_Alert

    Replace:

    • Room_Auth_Token: your HipChat room notification auth token. To create one, open the room actions menu on the chat client, then click “Tokens”, then create a new room token.
    • create_roomnotification_token

    • ROOM_ID: your HipChat chat room id. To get room id, open the room actions on menu, click on the room you created. It will show you Api id which is your room id
    • Room_id

  3. Create a Loggly Alert
  4. To create a Loggly Alert go to the Alert tab and click on Add New and fill the required information. Select the Send to an Endpoint checkbox and select your HipChat Endpoint from the dropdown. We recommending disabling the 10 most recent events because HipChat has a limit of 10,000 characters per post. Click save when you are done.

    hipchat_Alert

  5. Verify Alerts
  6. Send some logs to Loggly which will trigger your selected alert search. Wait a few minutes for the alert to run, then check your HipChat chat room for the notification. Here is an example showing what it will look like:

    hipchat_off

Advanced HipChat Alert Options

Troubleshooting

If you don’t see any alerts show up please check the following:

  • Verify the search that would trigger the alert has the required events by searching for them on the search tab.
  • Wait for at least the duration you set as how often the alert runs
  • Try using curl to send a test event to the endpoint you configured for hipchat. curl –header “content-type: application/json” -d ‘{“message”:”test message from curl”,”color”:”green”}’ https://api.hipchat.com//v2/room/ROOM_ID/notification?auth_token=TOKEN
  • Search or post questions in the community forum.
Thanks for the feedback! We'll use it to improve our support documentation.


Top