Skip to main content

Send an Event

Learn how to send an event using the log method

Each SDK provides a log method that can be used to write events to the Secure Audit Log service.

The following shows an example of writing to the Secure Audit Log service.

POST/v1/log
curl -sSLX POST 'https://audit.'"$PANGEA_DOMAIN"'/v1/log' \
-H 'Authorization: Bearer '"$PANGEA_AUDIT_TOKEN" \
-H 'Content-Type: application/json' \
-d '{"event":{"message":"Hello, World!"}}'
note
  • JSON data stored in old, new, or message will be rendered as JSON in the log viewer but will be stored and searched as string data.

  • Pangea will automatically supply a timestamp for messages written to the Secure Audit Log service. However, this time will be the time Pangea receives the message. If the exact time the event occurred is necessary, we recommend storing the client-side date and time in the timestamp field.

For more information on the log method or other language SDKs, see the SDK documentation.

Was this article helpful?

Contact us