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!

See your relevant APM services, dashboards, and alerts in one place with the updated ...

As a Splunk Observability user, you have a lot of data you have to manage, prioritize, and troubleshoot on a ...

Index This | What goes away as soon as you talk about it?

May 2025 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with this month’s ...

What's New in Splunk Observability Cloud and Splunk AppDynamics - May 2025

This month, we’re delivering several new innovations in Splunk Observability Cloud and Splunk AppDynamics ...