Getting Data In

Splunk Add-On builder for import of .csv file form page

performancemoni
Path Finder

Hello everyone,

I am trying to create an add-on REST API with Splunk to download a .csv file from a confluence page and push the information to Splunk. 

I would like to have a table with the content of the .csv file, but so far I was just able to get one entry with 130 lines in the index and sourcetype defined by the add-on. It would help if I could split at the end of every line..

I've tried to define the sourcetype in porps.conf with line breaker and some other regex params. and at this point I don't know how to move on.

Data sample:

 

1   UserID,Profile,Role1,Role2,Licenses,Programs,Domain,FieldX
2   user139,Profile description,Role 1,Role 2,"lic1,lic2,lic3,lic4,lic5,lic6",protram,domain,extra_field
.
.
130 user139,Profile description,Role 1,Role 2,"lic1,lic2,lic3,lic4,lic5,lic6",protram,domain,extra_field

 

I've tried to reproduce the content as best as I could, included spaces. The content between the quotes "", all belong to the header "licenses".

Labels (1)
0 Karma
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...

Updated Data Management and AWS GDI Inventory in Splunk Observability

We’re making some changes to Data Management and Infrastructure Inventory for AWS. The Data Management page, ...