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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...