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.

4

2 に答える 2

4

最近の Splunk カンファレンスでハッカソンを開催し、受賞者の 1 人が実際に Winston 向けの Splunk トランスポートを開発しました。github から取得できます

于 2012-10-02T04:12:59.697 に答える
2

ウィンストンを見てください。これは、可変ログ レベルとトランスポート オプションを提供する Log4Net または Log4J に似たフレームワークです。

Splunk 用の「トランスポート」/プラグインはないようですが、比較的類似した Loggly など、他にもいくつかあります。また、自分で巻くための手順も記載されているので、始めるのに適しているようです.

于 2012-08-29T21:19:01.957 に答える