3

I've found plenty of documentation on how to perform Splunk searches from within Node.js (thanks in chief to the Splunk javascript SDK documentation).

However, that's not what I'm trying to accomplish. I am hoping to use Splunk as my logging/monitoring/analytics solution for a site which is driven by node.js. I need to be able to log different types of events (login errors, page requests/responses, etc) for Splunk to index and make usable.

How can this be accomplished? Is it part of the SDK (or the API itself) that I'm just overlooking?

Thanks for any insight.

2 Answers 2

4

At our recent Splunk Conference we held a Hackathon and one of the winners actually developed a Splunk transport for Winston. You can grab it from github.

2

Take a look at Winston. This is a framework similar to Log4Net or Log4J which provides variable log levels and transport options.

They do not appear to have a "transport" / plug-in for Splunk, but they have several others including the relatively similar Loggly. They also have instructions on rolling your own, so it looks like a good place to start.

1
  • This looks like it might be the most elegant approach to what I'm trying to accomplish, and it also leads to some alternative services. Thank you.
    – Aejay
    Aug 31, 2012 at 1:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.