Skip to content

lambdac0de/node-proofpoint-podclient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-proofpoint-podclient

This is a client subscriber to Proofpoint On-demand's (PoD) Log API. The Log API is a websocket service (wss) awaiting connections from clients. You can subscibe to either filter (message) logs or MTA (maillog) logs.

note: The PoD Log API documentation does not seem to be publicly available, so I can not reference it here. Reach out to your sales/ account team.

IMPORTANT!

This is my own implementation of a client subscriber for the Log API. This code is not related to the vendor or the product in any way

Prerequisite

Node.Js v10.14.2 or higher version

Usage

  1. Obtain your JWT authentication token and save it in a file with filename jwt.token
  2. Fill in the required details in settins.json, including cluster_id, customer_id, type, and your corporate proxy host. Valid values for type are message for filter logs, and maillog for MTA logs.

    note: The script is intended to be used with an explicit corporate proxy. If you do not have one, or if the proxy is transparent, remove the line agent // Remove this line if you are not using a proxy as stated to disable the proxy client.
  3. Open a command prompt/ terminal and go to the program location.
    Initialize the required modules by running npm install
  4. Run node client.js to start listening for logs

note: The scirpt is set to just output the logs in the screen. Modify the ws.on('message') function in client.js to perform your desired acttion (push to a log stream, etc.)

About

Node.Js client subscriber for Proofpoint On-demand's (PoD) Log API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published