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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...