Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Can we use rest API to fetch the data from splunk cloud to JIRA server.

Shrikant Maheshwari April 22, 2018

If yes could someone provide me the basic code.

3 answers

0 votes
Fergal Walsh August 14, 2019

Hi @Shrikant Maheshwari Would an easier method be, not to use a GET i.e. to fetch the data from Splunk, but to send the data to Jira using Jira POST API?

A simple use case.
You want to automatically create an issue in Jira when certain information gets indexed in splunk e.g. a specific error message with stack trace

To provide a brief run through how to do this:

Firstly, create your scheduled job in splunk e.g. an alert or a report, that executes based on your desired conditions.

When you configure a scheduled job in Splunk, like an alert, you have the option to run a script from your splunk backend when it triggers.

You could set up the CreateIssue API within the script and have it parse the search results of your scheduled job. 

Note: You will need to have some experience with SPL to represent the search results efficiently  and also some experience writing scripts.

Regards,

Fergal

Fergal Walsh August 14, 2019

One last thing, I understand you have Splunk Cloud, so it may be a shared SAAS environment with limited permissions. In that case, you may not be able to setup and store your own script without first reaching out to Splunk support.  Just a thought..

0 votes
fritz wesselhoft March 5, 2019

Just wondering, did you ever got this figured out? I also would like to query Splunk from Jira, and use the fetched data to auto-populate some fields. This functionality would be extremely useful. 

Because scripted fields use groovy, I figured we can use the Java SDK to make this work, but I’m not sure if this is the best. Any inputs would be greatly appreciated!

 

fritz

Chethan GR
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 12, 2019

Even I have the same requirement is it possible!!

 

Regards,

Chethan 

Like Jira.Support@startv.com likes this
0 votes
Javi
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 24, 2018

Hi Shrikiant,

You can use the Jira REST API to insert data from a backend, however Jira does not have any native REST API calls that integrate both Splunk and Jira. 

I recommend reviewing the following documentation: Jira REST API

It includes snippets on common REST API calls used to create data in Jira. 

Additionally, here is the Splunk Cloud API documentation. I recommend reviewing this documentation to find out what data you are trying to fetch and so you can integrate with the Jira REST API. 

Lastly, I was able to find a plugin that integrates Jira Service Desk and Splunk called Real-Time Splunk for Jira Service Desk. This plugin may provide what you are looking for.

Regards,

Javier A.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events