Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-66751

Splunk Query to extract JSON files sent to Splunk by Jenkins pipeline using "sendSplunkFile"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • splunk-devops-plugin
    • None
    • Production

      I was able to generate a pipeline syntax and use it in our pipelines that would send the JSON files to Splunk. It seems to work and includes the JSON file I need to be included while running the Jenkins job.

      BUT, how would we perform the next step? Which is extracting or pulling the whole JSON file or parts of it in Splunk? 

      The usual way we get the build and pipeline data in Splunk is not showing up in the sent JSON file or data inside of it. Is that a bug, or do we need to extract that information in a different way?

      Is there any query you can help/guide me with, that would help me find that job and show us the data in that JSON file being pulled by Jenkins?

      To be clear, I have used this snippet to include the required JSON file in our Jenkins Pipeline:
      println(">> SendingSplunkFile: ${props.jsonPropsFile}")
      sendSplunkFile excludes: '', includes: '${props.jsonPropsFile}', publishFromSlave: true, sizeLimit: '100MB'

      Thanks

            srv_splunk_devops_uploader Ted Xiao
            jimd716 Jimmy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: