Dashboards & Visualizations

Deploying Splunk logging for NodeJS, where do I find the "URL" attribute?

kyo200793
New Member

I am deploying logging for NodeJS and followed: How to use a custom event format with Splunk logging for JavaScript.
link here: http://dev.splunk.com/view/splunk-logging-javascript/SP-CAAAE78

var config = {
    token: "your-token-here",
    url: "https://localhost:8088"
} 

I don't know where would I find the url?

0 Karma

jerry275
Observer

@ktugwell_splunk 

I went over this link to integrate splunk in my code base. - https://www.npmjs.com/package/splunk-logging

I have the same question, 

Where I can find the token and url that need to be passed in config variable.

0 Karma

ktugwell_splunk
Splunk Employee
Splunk Employee

Hey kyo, can you be anymore specific with your query? Are you receiving errors?

The guide you're using states that you only need to complete the token field

/**
 * **Only the token property is required.**
 */
var config = {
    token: "your-token-here",
    url: "https://localhost:8088"
};
0 Karma
Get Updates on the Splunk Community!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...