Jira output plugin v3.0.4edit

  • Plugin version: v3.0.4
  • Released on: 2018-04-06
  • Changelog

For other versions, see the overview list.

To learn more about Logstash, see the Logstash Reference.

Getting Helpedit

For questions about the plugin, open a topic in the Discuss forums. For bugs or feature requests, open an issue in Github. For the list of Elastic supported plugins, please consult the Elastic Support Matrix.

Descriptionedit

This output allows you to use Logstash to parse and structure your logs and ship structured event data to JIRA.

Structured event data will be added to the JIRA issue as Description field value.

Example JSON-encoded event:

    {
      "message": "Hello JIRA!",
      "@version": "1",
      "@timestamp": "2015-06-04T10:23:30.279Z",
      "type": "syslog",
      "host": "192.168.1.42",
      "syslog_pri": "11",
      "syslog_timestamp": "Jun  4 14:23:30",
      "syslog_host": "myhost",
      "program": "root",
      "syslog_severity_code": 3,
      "syslog_facility_code": 1,
      "syslog_facility": "user-level",
      "syslog_severity": "error"
    }

Example JIRA issue created the event above:

    Type:        Task
    Priority:    2 - Major
    Status:      TO DO
    Resolution:  Unresolved
    Summary:     [logstash] Hello JIRA!
    Description:
        ---
        message: Hello JIRA!
        '@version': '1'
        '@timestamp': 2015-06-04 10:23:30.279000000 Z
        type: syslog
        host: 192.168.1.42
        syslog_pri: '11'
        syslog_timestamp: Jun 4 14:23:30
        syslog_host: myhost
        program: root
        syslog_severity_code: 3
        syslog_facility_code: 1
        syslog_facility: user-level
        syslog_severity: error

To use this output you’ll need to ensure that your JIRA instance allows REST calls.

This output uses jiralicious as the bridge to JIRA By Martin Cleaver, Blended Perspectives with a lot of help from electrical in #logstash.

Origin https://groups.google.com/forum/#!msg/logstash-users/exgrB4iQ-mw/R34apku5nXsJ and https://botbot.me/freenode/logstash/msg/4169496/ via https://gist.github.com/electrical/4660061e8fff11cdcf37#file-jira-rb.

Jira Output Configuration Optionsedit

This plugin supports the following configuration options plus the Common Options described later.

Also see Common Options for a list of options supported by all output plugins.

 

assigneeedit

  • Value type is string
  • There is no default value for this setting.

JIRA Reporter

hostedit

  • Value type is string
  • There is no default value for this setting.

The hostname to send logs to. This should target your JIRA server and has to have the REST interface enabled.

issuetypeidedit

  • This is a required setting.
  • Value type is string
  • There is no default value for this setting.

JIRA Issuetype number

passwordedit

  • This is a required setting.
  • Value type is string
  • There is no default value for this setting.

priorityedit

  • This is a required setting.
  • Value type is string
  • There is no default value for this setting.

JIRA Priority

projectidedit

  • This is a required setting.
  • Value type is string
  • There is no default value for this setting.

Javalicious has no proxy support JIRA Project number

reporteredit

  • Value type is string
  • There is no default value for this setting.

JIRA Reporter

summaryedit

  • This is a required setting.
  • Value type is string
  • There is no default value for this setting.

JIRA Summary

Truncated and appended with …​ if longer than 255 characters.

usernameedit

  • This is a required setting.
  • Value type is string
  • There is no default value for this setting.

Common Optionsedit

The following configuration options are supported by all output plugins:

Setting Input type Required

codec

codec

No

enable_metric

boolean

No

id

string

No

codecedit

  • Value type is codec
  • Default value is "plain"

The codec used for output data. Output codecs are a convenient method for encoding your data before it leaves the output without needing a separate filter in your Logstash pipeline.

enable_metricedit

  • Value type is boolean
  • Default value is true

Disable or enable metric logging for this specific plugin instance. By default we record all the metrics we can, but you can disable metrics collection for a specific plugin.

idedit

  • Value type is string
  • There is no default value for this setting.

Add a unique ID to the plugin configuration. If no ID is specified, Logstash will generate one. It is strongly recommended to set this ID in your configuration. This is particularly useful when you have two or more plugins of the same type. For example, if you have 2 jira outputs. Adding a named ID in this case will help in monitoring Logstash when using the monitoring APIs.

output {
  jira {
    id => "my_plugin_id"
  }
}