How-To: Export EZSSH Logs to Datadog
Prerequisites
How To Export Your EZSSH Audit Logs To Datadog
How To Enable Log Export in EZSSH Portal
-
Go to the EZSSH Portal.
-
Click on Settings.

-
Expand your subscription’s Advanced Settings.

-
Enable the Send Audit Logs to SIEM option.

How To Configure the Datadog Exporter in the Datadog Portal
-
In another tab, go to the Datadog Logs API docs: Datadog Docs.
-
Look on the top right and check that you have the correct Datadog site selected.

-
Select the correct site, then copy the corresponding URL.

-
Now go to your Datadog Instance. Here you will find your personal settings.

-
Hover over your username and click the API Keys option.

-
Then click the + New Key button

-
Give your key a name and click on the Create Key button

-
Copy your key and hit the Finish button.

How To Configure the Datadog SIEM in EZSSH Portal
-
Now go back to the EZSSH Portal.
-
Select Datadog as the SIEM Provider.

-
Input the values that you copied from the Datadog portal. Then, click Test Connection. This will create a test log in your Datadog SIEM (please allow a few minutes for the log to show up in the Datadog portal).

-
If the connection test is successful, click Save Changes.

-
EZSSH will now send your security alerts to your SIEM. If an error occurs it will email your subscription administrators. See below to see the different events EZSSH will send.
How To Create Alerts in Datadog to Monitor Your SSH Activity
We recommend setting up alerts for any high criticality event, and closely monitor medium and low events. Here are some example queries to get you started:
Detect if a User Is Reusing SSH Keys
To detect any user that has reused an SSH key, use the group by setting to group the following log by @UserPublicKey. Set an alert if there is more than 1 instances of the log below:
service:EZSSH @event_type:EZSSH_SSH
Get All SSH Requests that Granted an SSH Certificate
To get all the requests that created an SSH certificate, run the following query:
service:EZSSH @event_type:EZSSH_SSH -@ActionPerformed:"Test Connection" -@Certificate:NA
This query can be then used to correlate with SSH logins to verify that all logins are done with an EZSSH certificate.
Get the Count of Git Certificates Requested by User
To get the number of git certificates a user has requested, run the following query and use the group by setting to group by @RequestorFriendlyName
service:EZSSH @event_type:EZSSH_SSH
This query is useful to find anomalies on a user requesting a higher number of certificates than usual.