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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

Splunk is officially part of Cisco

Revolutionizing how our customers build resilience across their entire digital footprint.   Splunk ...

Splunk APM & RUM | Planned Maintenance March 26 - March 28, 2024

There will be planned maintenance for Splunk APM and RUM between March 26, 2024 and March 28, 2024 as ...