Hi,
I need to send files(ex: XML and CSV) from Jenkins to Splunk.
For which,
I have integrated Jenkins and Splunk using below,
1) Jenkins app in Splunk(Splunk app for Jenkins) and
2) Splunk plug-in in Jenkins
In Jenkins,
I have configured "Custom Metadata" like this
[Data Source->'logfile', Config Item-> 'Source Type', Value->'custom_xml_sourcetype' ]
[Data Source->'logfile', Config Item-> 'Source Type', Value->'csv' ]
In Splunk,
Indexed files(ex: a.xml and b.csv) has the same sourcetype ->'custom_xml_sourcetype'. Ideally both needs to be mapped to the exact sourcetypes. Which should be like this,
a.xml -> 'custom_xml_sourcetype'
b.csv->'csv'
but, it is currently mapped like this,
a.xml -> 'custom_xml_sourcetype'
b.csv->'custom_xml_sourcetype'
It is not certain, how to map the sourcetypes to the correct file.
Also, There is no job level config information available as well.
My Requirements is very simple to get different files generated from the jenkins build artifact to splunk with different sourcetypes.
Where the Jenkins is configured as Master -> Slave setup.
Kindly suggest me it is possible to use the Jenkin's splunk plug-in app or go with different approach.
Many thanks.
... View more