• Products
  • Get started
  • Documentation
  • Resources

Integrate with Logstash

This article highlights a new alerting feature that's natively available in Jira Service Management which is gradually rolling out to some Jira Service Management Cloud customers. It may not yet be visible or available on your site.

Logstash logo

What does the integration offer?

Logstash sends event information via output plugins. With Jira Service Management's Logstash Integration, Jira Service Management acts as a dispatcher for these events, determines the right people to notify based on on-call schedules– notifies via email, text messages (SMS), phone calls, and iPhone & Android push notifications, and escalates alerts until the alert is acknowledged or closed.

How does the integration work?

According to the Logstash events:

  • Alert is created in Jira Service Management.

  • Designated alert is acknowledged.

  • Note is added to designated alert.

  • Designated alert is closed.

Set up the integration

Logstash is an API-based integration. Setting it up involves the following steps:

  • Add a Logstash integration in Jira Service Management

  • Configure the integration in Logstash

Add a Logstash integration

Bidirectional integrations aren’t supported in Free and Standard plans. All the other integrations are supported at a team level in Free and Standard; however, for their outgoing part to work, you need to upgrade to a higher plan. To add any integration at a site level through Settings (gear icon) > Products (under JIRA SETTINGS) > OPERATIONS, you need to be either on Premium or Enterprise.

Adding an integration from your team’s operations page makes your team the owner of the integration. This means Jira Service Management only assigns the alerts received through this integration to your team.

To add a Logstash integration in Jira Service Management, complete the following steps:

  1. Go to your team’s operations page.

  2. On the left navigation panel, select Integrations and then Add integration.

  3. Run a search and select “Logstash”.

  4. On the next screen, enter a name for the integration.

  5. Optional: Select a team in Assignee team if you want a specific team to receive alerts from the integration.

  6. Select Continue.
    The integration is saved at this point.

  7. Expand the Steps to configure the integration section and copy the API key.
    You will use this key while configuring the integration in Logstash later.

  8. Select Turn on integration.
    The rules you create for the integration will work only if you turn on the integration.

Configure the integration in Logstash

To configure the integration of Logstash with Jira Service Management, complete the following steps:

  1. Install the Jira Service Management plugin for Logstash. Find out how to install the plugin.

    • Logstash 5.4+:  bin/logstash-plugin install logstash-output-jsm

    • Other Versions: bin/plugin install logstash-output-jsm

  2. Add the following configuration to the configuration file:

    1 2 3 4 5 output { jsm { "apiKey" => "logstash_integration_api_key" } }
  3. Paste the API key copied previously into apiKey.
    The Jira Service Management Output plugin expects that events contain a field called "jsmAction". Also, Jira Service Management expects the data in a certain structure, so some additional fields are added to the event. To add fields, use a filter plugin like Mutate, Grok etc. Read more about the fields added to events and what they mean.

Following is an example of a Mutate filter enhanced with Ruby filter plugin configuration:


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 filter { mutate{ add_field => { "jsmAction" => "create" "alias" => "neo123" "description" => "Every alert needs a description" "actions" => ["Restart", "AnExampleAction"] "tags" => ["OverwriteQuietHours","Critical"] "[details][prop1]"=> "val1" "[details][prop2]" => "val2" "entity" => "An example entity" "priority" => "P4" "source" => "custom source" "user" => "custom user" "note" => "alert is created" } } ruby { code => "event.set('teams', [{'name' => 'Integration'}, {'name' => 'Platform'}])" } }

4. Run Logstash.

Find the plugin’s source on GitHub.

Still need help?

The Atlassian Community is here for you.