Skip to main content
Sumo Logic

Collect Logs for the Atlassian App

This page provides instructions for configuring log collection for the Sumo Logic App for Atlassian.

This page provides instructions for collecting logs for the Atlassian App. 

Collection configuration process

To configure collection for the Atlassian App, do the following:

  1. Do one of the following:
  1. Set up Log Collection for the Bitbucket  App.
  2. Set up Log Collection for the Opsgenie App.

Log Types 

The Atlassian App uses following Log types:

Query sample 

The Failed Builds query is available on the Atlassian - Overview dashboard.

 _sourceCategory="bitbucket" %"x-event-key"=repo:commit_status_* display_name full_name !INPROGRESS !STOPPED
| json "commit_status.state", "commit_status.commit.message", "", "commit_status.type", "actor.display_name", "repository.full_name",  "commit_status.refname",  "commit_status.commit.links.html.href", "commit_status.url", "commit_status.created_on" as build_state, build_commit_message, commit_name, type, commit_user, repo, commit_branch, commit_link, build_status_link, date_time
| where build_state in ("FAILED")
| parse regex field=date_time "(?<date_time>\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\d)"
| parse regex field=build_commit_message "(?<commit_msg_short>.+)"
| tourl(commit_link, commit_msg_short) as commit 
| tourl (build_status_link, commit_name) as build
| replace (date_time, "T", " ") as date_time
| count by date_time, build
| fields -_count