Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Data import from AlienVault Central via REST API

rohan sharma June 6, 2019

I have some data in AlienVault central How can I pull data from AlienVault central via REST API and put it into jira? Has anybody done such activity? 

1 answer

1 accepted

1 vote
Answer accepted
Lucas Rodrigues de Oliveira
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.
June 6, 2019

Hi Rohan,

 

You can use the Jira Rest API to create issues using AlienVault Webhooks. 

Another way is using Rest Endpoints (Use Script Runner to Create it).

Request

curl \
   -D- \
   -u charlie:charlie \
   -X POST \
   --data {see below} \
   -H "Content-Type: application/json" \
   http://localhost:8080/rest/api/2/issue/

 

Input data
{
    "fields": {
       "project":
       {
          "key": "TEST"
       },
       "summary": "REST ye merry gentlemen.",
       "description": "Creating of an issue using project keys and issue type names using the REST API",
       "issuetype": {
          "name": "Bug"
       }
   }
}
rohan sharma June 6, 2019

Hi Lucas,

Aah..Thank you for the answer! Webhooks solution is clear.

The AlienVault data can be accessed via Rest API. So, by second option, do you mean I should create a script which keeps on polling the AlienVault data? Say after every half an hour to get new data by creating JIRA REST requests for new data? I am sorry, I have no knowledge about Alien Vault.

Lucas Rodrigues de Oliveira
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.
June 6, 2019

Rohan,

 

In the second option you have to create a web service on Alien Vault to send the data to Jira, it's like a webhook but you can personalize it. 

 

Like rohan sharma likes this
rohan sharma June 6, 2019

Okay, understood. I thought of something else :)
By the way, I think of two more solutions.

 

  1. A script to poll data (as I explained in above comment) and create rest requests every half an hour from AlienVault side. I know this is little old school. but can this be done with Jira?
  2. Configuring mail receiver in JIRA which receives mails from AlienVault and creating a mail handler, which will in turn create or update issues. Saying this because AlienVault generates mail alerts, which have to be read and fed into jira system.

Sorry for taking lot of your time. But, whats your take on these two?

Regards

Lucas Rodrigues de Oliveira
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.
June 6, 2019

Rohan,

 

Those are two great solutions, i think the option 1 is the best, but 2 is a good idea if you are using jira service desk or script runner. 

 

It's no problem, you can ask me when you want. 

 

i'm happy to help you !

:)

Like rohan sharma likes this
rohan sharma June 6, 2019

Thanks Lucas for your time and quick responses! Cheers!

Suggest an answer

Log in or Sign up to answer