Splunk Cloud Platform

level config is not working on SplunkLogger splunk-logging JS package

PacoPeralta
New Member

Hello Splunk team!
I'm having an issue setting the level parameter on the configuration object for SplunkLogger constructor on splunk-logging JS package version "^0.10.1".
This is my code:

const config = {
token: `${process.env.SPLUNK_TOKEN}`,
url: `${process.env.SPLUNK_HOST}`,
level: "error"
};

const splunkLogger = new SplunkLogger(config);

It doesn’t matter which level I set, it always sending all the logs severities. 

Could you please help me on this?

Thanks in advance!

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

.conf24 | Day 0

Hello Splunk Community! My name is Chris, and I'm based in Canberra, Australia's capital, and I travelled for ...

Enhance Security Visibility with Splunk Enterprise Security 7.1 through Threat ...

(view in My Videos)Struggling with alert fatigue, lack of context, and prioritization around security ...

Troubleshooting the OpenTelemetry Collector

  In this tech talk, you’ll learn how to troubleshoot the OpenTelemetry collector - from checking the ...