-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Major
-
Component/s: splunk-devops-plugin
-
None
-
Environment:Splunk for Jenkins: 1.11.2
Configuration: JCasC
Java version: 21.0.13
Jenkins version: 2.568.3
Splunk Cloud Version: 10.5.2605.15
We use Splunk plugin for Jenkins v1.11.2, configured through Jenkins Configuration as Code.
Splunk reports requests targeting the built-in jenkins_console index even though our configuration explicitly overrides the console index. The controller's runtime metadata also shows the intended index
Observed behavior
Splunk HEC logs the following rejection:
Failed processing http input, token name=custom_token_name, channel=n/a, source_IP=xxx.xxx.xxx.xxx, reply=7, status_message="Incorrect index", status=400, events_processed=1, http_input_body_size=286, parsing_err="invalid_index='jenkins_console'"
Relevant JCasC configuration
unclassified:
splunkJenkinsInstallation:
enabled: true
rawEventEnabled: true
globalPipelineFilter: true
metadataItemSet:
- dataSource: "CONSOLE_LOG"
keyName: "index"
value: "custom_jenkins_index"
- dataSource: "BUILD_EVENT"
keyName: "index"
value: "custom_jenkins_index"
- dataSource: "BUILD_REPORT"
keyName: "index"
value: "custom_jenkins_index"
- dataSource: "QUEUE_INFO"
keyName: "index"
value: "custom_jenkins_index"
- dataSource: "SLAVE_INFO"
keyName: "index"
value: "custom_jenkins_index"
- dataSource: "FILE"
keyName: "index"
value: "custom_jenkins_index"
- dataSource: "JENKINS_CONFIG"
keyName: "disabled"
value: ""
- dataSource: "default"
keyName: "index"
value: "custom_jenkins_index"
- dataSource: "default"
keyName: "sourcetype"
value: "json:jenkins:custom"
- dataSource: "CONSOLE_LOG"
keyName: "sourcetype"
value: "text:jenkins:custom"
- dataSource: "FILE"
keyName: "sourcetype"
value: "text:jenkins:custom"
Runtime verification
We checked the controller using the Script Console:
import com.splunk.splunkjenkins.SplunkJenkinsInstallation import java.util.Properties import java.io.StringReader def config = SplunkJenkinsInstallation.get() def configured = new Properties() configured.load(new StringReader(config.getMetaDataConfig() ?: "")) ["index", "console_log.index"].each { key -> println "${key} | configured=${configured.getProperty(key)} | runtime=${config.getMetaData(key)}" }
Output:
index | configured=custom_jenkins_index | runtime=custom_jenkins_index console_log.index | configured=custom_jenkins_index | runtime=custom_jenkins_index
Expected behavior
Console events should use the explicitly configured index rather than the built-in jenkins_console default.
Actual behavior
Most console logs are successfully ingested into the intended index. However, Splunk also receives requests targeting the built-in jenkins_console index and rejects them with HTTP 400 / HEC code 7 (Incorrect index).
This is therefore partial incorrect routing, not a complete ingestion failure. These requests generate unnecessary processing load and error-log volume, reportedly affecting Splunk performance. The affected sending path and root cause have not yet been identified.
Could you please investigate this behavior and provide a fix if it is confirmed to be a plugin issue? I'm happy to provide additional diagnostic information and test potential fixes if needed.