splunk / splunkforjenkins

19 stars 55 forks source link

Splunk App for Jenkins: After configuration no data sent to Splunk #9

Open mashayev opened 5 years ago

mashayev commented 5 years ago

Hey all,

I'm using: Splunk cloud 7.0.2.1 Splunk Plugin for Jenkins: 1.7.1 Splunk Plugin Extension: 1.7.1

I followed the documentation and I'm able to test connection image

But I don't get any logs to Splunk other than that. No data at all.

I'm using pipeline and multi-branch jobs I have added post actions jobs with sendSplunkFile excludes: '', includes: '*.log', publishFromSlave: true, sizeLimit: '100MB' The stage pass successfully but I still don't see any logs in Splunk.

Thanks for the help..

fengxx commented 5 years ago

could you pls search index=jenkins* to verify? the ping message is logged in main index, while the actual data will be in index=jenkins*

matt-calderaz commented 5 years ago

@fengxx what are the expected default file names for the sendTestReport() command? I'm attempting to do something like this in a pipeline:

splunkins.sendTestReport(50)

I've tried the archive method as well, but am having trouble getting data to show up. There is some default job event statistics that show up, but I'm trying to publish some Robot Framework test results in JUnit format.

fengxx commented 5 years ago

@matt-calderaz you need call the method AFTER junit result is parsed by junit step. junit 'test*.xml'