LogRhythm Rest
Overview
LogRhythm's SIEM Platform delivers comprehensive security analytics, log management, network and endpoint monitoring for rapid detection, response, and neutralization of threats. D3's integration with the LogRhythm latest REST API (version 7.8) provides the ability to ingest alarm, update alarm, and admin operations.
D3 SOAR is providing REST operations to function with LogRhythm Rest.
LogRhythm Rest is available for use in:
D3 SOAR | V14.0.582+ |
Category | SIEM XDR |
Deployment Options |
Connection
To connect to LogRhythm Rest from D3 SOAR, please follow this part to collect the required information below:
Parameter | Description | Example |
Server URL | The server URL of the LogRhythm instance to connect to. | https://<Replace.Me>:8501 |
API Token | The API token to authenticate the connection. | ******** |
Permission Requirements
Each endpoint in the LogRhythm Rest API requires a certain permission scope. The following are required scopes for the commands in this integration:
Refer to Configuring LogRhythm Rest to Work with D3 SOAR for the required permissions to configure in the user profile. Currently, all commands are compatible with several administrative roles in LogRhythm, including Global Administrator, Restricted Administrator, Global Analyst, and Restricted Analyst. However, LogRhythm's official documentation states that only the Global Administrator and Restricted Administrator roles have the required permissions to do so.
Therefore, while the Restricted Analyst role may be functional for the minimum requirement, LogRhythm's documentation actually specifies that the Restricted Administrator role is required.
For more information, see Generate LR API Token from LogRhythm's documentation.
Configuring LogRhythm Rest to Work with D3 SOAR
Creating a User Profile
Log in to the LogRhythm console as a Global Administrator.
Navigate to Tools > Administration > User Profile Manager.
Click +New, then Allow Access.
Enter a name for the user profile, then navigate to Security Role and select either Restrict Administrator or Global Administrator. If you opt for Restrict Administrator, make sure to visit the Entities tab (second tab) and select the specific entities you need access to. Choosing Global Administrator grants access to all entities automatically, so there is no need to specify them separately.
Navigate to the Management Permissions tab. Assign permissions as listed below:
Entities > Display / Manage Entities: Set to View.
General Administration > Deployment Manager: Set to View.
General Administration > Manage TrueIdentity: Set to Manage.
For more information about user profiles, see Generate LR API Token from LogRhythm's documentation.
Creating a Person
Navigate to Deployment Manager, then People. Right-click and select New.
Fill in the required information for the new user and click OK to proceed.
You will now see the newly created user listed. Note that the 'login' field is currently (none), which we will address in the next steps.
Right-click on the user's name and select Create User Account.
Start by assigning a username for the user login. Then, link the login to the profile of the user you just created. Next, select the appropriate default entity for this user. Finally, set a secure password for the account and click OK to complete the process.
The user account is now fully set up and ready for use.
Generating an API Token
Select Deployment Manager from the main toolbar, then select the Third Party Applications tab. In the grid area, right-click and choose New to open the 3rd-Party Application Properties dialog.
Input the Application Name and Description. The application name must be unique. Note the Token Expiry in Days—important for token renewal before expiration. This value can be modified later. Click OK to save your application.
The Client ID and secret are auto-generated by the system. You need to see both generated to proceed to the next step. If you do not see the client secret after creation, refresh the page.
Right-click your new application and select Properties or double-click the application you created. You can optionally adjust the token validity period. Click Generate Token to open the Credentials dialog.
Input a user name and password, then click OK. This generates a token.
Copy and store the token in a secure location. You won't see it again. It will be used for the API Token parameter when configuring the integration connection in D3 SOAR.
Configuring D3 SOAR to Work with LogRhythm Rest
Log in to D3 SOAR.
Find the LogRhythm Rest integration.
Navigate to Configuration on the top header menu.
Click on the Integration icon on the left sidebar.
Type LogRhythm Rest in the search box to find the integration, then click it to select it.
Click + Connection, on the right side of the Connections section. A new connection window will appear.
Configure the following fields to create a connection to LogRhythm Rest.
Connection Name: The desired name for the connection.
Site: Specifies the site to use the integration connection. Use the drop-down menu to select the site. The Share to Internal Sites option enables all sites defined as internal sites to use the connection. Selecting a specific site will only enable that site to use the connection.
Recipient site for events from connections Shared to Internal Sites: This field appears if you selected Share to Internal Sites for Site to let you select the internal site to deploy the integration connection.
Agent Name (Optional): Specifies the proxy agent required to build the connection. Use the dropdown menu to select the proxy agent from a list of previously configured proxy agents.
Description (Optional): Add your desired description for the connection.
Tenant (Optional): When configuring the connection from a master tenant site, you have the option to choose the specific tenant sites you want to share the connection with. Once you enable this setting, you can filter and select the desired tenant sites from the dropdowns to share the connection.
Configure User Permissions: Defines which users have access to the connection.
Active: Check the tick box to ensure the connection is available for use.
System: This section contains the parameters defined specifically for the integration. These parameters must be configured to create the integration connection.
1. Input the Server URL. The default value is https://<Replace.Me>:8501.
2. Input the API Token. Refer to Generating an API Token for instructions on obtaining a token.Enable Password Vault: An optional feature that allows users to take the stored credentials from their own password vault. Please refer to the password vault connection guide if needed.
Connection Health Check: Updates the connection status you have created. A connection health check is done by scheduling the Test Connection command of this integration. This can only be done when the connection is active.
To set up a connection health check, check the Connection Health Check tickbox. You can customize the interval (minutes) for scheduling the health check. An email notification can be set up after a specified number of failed connection attempts.
Test the connection.
Click Test Connection to verify the account credentials and network connection. If the Test Connection Passed alert window appears, the test connection is successful. You will see Passed with a green checkmark appear beside the Test Connection button. If the test connection fails, please check your connection parameters and try again.
Click OK to close the alert window.
Click + Add to create and add the configured connection.
Commands
LogRhythm Rest includes the following executable commands for users to set up schedules or create playbook workflows. With the Test Command, you can execute these commands independently for playbook troubleshooting.
Integration API Note
For more information about the LogRhythm Rest API, please refer to the links below:
Admin Service API: Administration API Endpoints
Search API: Search API Endpoints
Case API: Case API Endpoints
Alarm API(7.8): Alarm API Endpoints
Powershell Toll Kit: GitHub - LogRhythm-Tools/LogRhythm.Tools: LogRhythm PowerShell Toolkit
Reader Note
Certain permissions are required for each command. Please refer to the Permission Requirements and Configuring LogRhythm Rest to Work with D3 SOAR for details.
Note for Time-related parameters
The input format of time-related parameters may vary based on your account settings. As a result, the sample data provided in our commands is different from what you see. To set your preferred time format, follow these steps:
Navigate to Configuration > Application Settings. Select Date/Time Format.
Choose your desired date and time format.
After that, you will be able to view your preferred time format when configuring the DateTime input parameters for commands.
Fetch Event
Retrieves alarms from the Logrhythm platform based on the specified criteria. In cases where the command is scheduled to gather events from a specified Start Time, set the Order By parameter to "Date Inserted" and the Direction parameter to "Ascending". This configuration prevents the command from only fetching the most recent alarms.
Input
Input Parameter | Required/Optional | Description | Example |
Start Time | Required | The start time of the time range to fetch alarms, in UTC format. | 2021-01-05 00:00 |
Number of Event(s) Fetched | Optional | The maximum number of events (alarms) to return. If this parameter is not defined or set to a non-positive number, the default value of 20 will be used. The maximum permissible value is 100. | 2 |
Alarm Rule Name | Optional | The full alarm rule name to filter retrieved alarms. | AIE: Test Rule - Calc.exe |
Entity Name | Optional | The full entity name to filter retrieved alarms. | AIE: Test Rule - Calc.exe |
Alarm Status | Optional | The alarm status to filter retrieved alarms. | Opened |
Order By | Optional | The value (i.e. Alarm Rule Name, Alarm Status, Date Inserted, or Entity Name) by which to sort retrieved records. When scheduling a job, use the Date Inserted sorting option to ensure that each schedule retrieves new alarms. The default setting is Date Inserted. | DateInserted |
Direction | Optional | The direction (i.e. Ascending or Descending) to sort retrieved records. When scheduling a job, use the Ascending sorting option to ensure that each schedule retrieves new alarms. The default setting is Descending. | Descending |
Including Events | Optional | The option to include alarm-related events in the response data, when set to True. | False |
Output
Fetch Event Field Mapping
Please note that Fetch Event commands require event field mapping. Field mapping plays a key role in the data normalization process part of the event pipeline. Field mapping converts the original data fields from the different providers to the D3 fields which are standardized by the D3 Model. Please refer to Event and Incident Intake Field Mapping for details.
To customize field mapping, click + Add Field and add the custom field of your choice. You can also remove built-in field mappings by clicking x. Please note that two underscore characters will automatically prefix the defined Field Name as the System Name for a custom field mapping. Additionally, if an input Field Name contains any spaces, they will automatically be replaced with underscores for the corresponding System Name.
As a system integration, the LogRhythm Rest integration has some pre-configured field mappings for default field mapping.
Default Event Source
The Default Event Source is the default set of field mappings that are applied when this fetch event command is executed. For out-of-the-box integrations, you will find a set of field mapping provided by the system. Default event source provides field mappings for common fields from fetched events. The default event source has a “Main Event JSON Path” (i.e., $.alarmsSearchDetails) that is used to extract a batch of events from the response raw data. Click Edit Event Source to view the “Main Event JSON Path”.Main Event JSON Path: $.alarmsSearchDetails
The Main Event JSON Path determines the root path where the system starts parsing raw response data into D3 event data. The JSON path begins with $, representing the root element. The path is formed by appending a sequence of child elements to $, each separated by a dot (.). Square brackets with nested quotation marks ([‘...’]) should be used to separate child elements in JSON arrays.
For example, the root node of a JSON Path is alarmsSearchDetails. The child node denoting the Event Key field would be alarmId. Putting it together, the JSON Path expression to extract the Event Key is $.alarmsSearchDetails.alarmId.
The pre-configured field mappings are detailed below:
Field Name | Source Field |
Unique Event Key | .alarmId |
Event Type | .alarmRuleName |
Start Time | .dateInserted |
Status | .alarmStatus |
Reader Note
The Unique Event Key field mapping is used to prevent duplicate event ingestions. D3 SOAR will check if the value of a selected JSON path matches any Unique Event Key of previously ingested events. If a match is found, the event will be dismissed. If no match is found, an event will be created. However, if no Unique Event Key is mapped, then the hash value from the event pending ingestion will be used to check for any matches with existing events. If no match is found, the event will be created.
Unlike most other D3 SOAR integrations, the LogRhythm Rest integration’s Fetch Event command’s Default Event Source mapping does not include Unique Event Key in order to fetch the same fetched alarm with multiple updates.
Error Handling
If the Return Data is Failed, an Error tab will appear in the Test Result window.
The error tab contains the details responded from D3 SOAR or third-party API calls, including Failure Indicator, Status Code, and Message. This can help you locate the root cause of a command failure.
Parts in Error | Description | Example |
Failure Indicator | Indicates the command failure that happened at a specific input and/or API call. | Fetch Event failed. |
Status Code | The response code issued by the third-party API server or the D3 SOAR system that can be used to locate the corresponding error category. For example, if the returned status code is 401, the selected connection is unauthorized to run the command. The user or system support would need to check the permission setting in the LogRhythm Rest portal. Refer to the HTTP Status Code Registry for details. | Status Code: 400. |
Message | The raw data or captured key error message from the integration API server about the API request failure. | Message: The value for parameter (Number of Event(s) Fetched) is invalid. |
Error Sample Data Fetch Event failed. Status Code: 400. Message: The value for parameter (Number of Event(s) Fetched) is invalid. |
Get Alarm Events
Returns all events associated with the given alarm IDs.
Reader Note
The parameter Alarm IDs is required to run this command.
Run the Fetch Event command to obtain Alarm IDs. Alarm IDs can be found in the returned raw data at the path $.alarmsSearchDetails[*].alarmId.
Input
Input Parameter | Required/Optional | Description | Example |
Alarm IDs | Required | The IDs of the alarms to retrieve events. Alarm IDs can be obtained using the Fech Event command. | [1*****] |
Output
Error Handling
If the Return Data is Partially Successful or Failed, an Error tab will appear in the Test Result window.
The error tab contains the details responded from D3 SOAR or third-party API calls, including Failure Indicator, Status Code, and Message. This can help you locate the root cause of a command failure.
Parts in Error | Description | Example |
Failure Indicator | Indicates the command failure that happened at a specific input and/or API call. | Get Alarm Events failed. |
Status Code | The response code issued by the third-party API server or the D3 SOAR system that can be used to locate the corresponding error category. For example, if the returned status code is 401, the selected connection is unauthorized to run the command. The user or system support would need to check the permission setting in the LogRhythm Rest portal. Refer to the HTTP Status Code Registry for details. | Status Code: 404. |
Message | The raw data or captured key error message from the integration API server about the API request failure. | Message: Alarm does not exist for the supplied AlarmId. |
Error Sample Data Get Alarm Events failed. Status Code: 404. Message: Alarm does not exist for the supplied AlarmId. |
List Entities
Returns all entities that match the specified criteria.
Input
Input Parameter | Required/Optional | Description | Example |
Entity Name | Optional | The partial or full entity name to filter retrieved entities. | AI |
Limit | Optional | The maximum number of entities to return. If this parameter is not defined or set to a non-positive number, the default value of 20 will be used. The maximum permissible value is 1000. | 10 |
Offset | Optional | The number of items to skip before starting to collect the result set. If this parameter is not defined or set to a non-positive number, the default value of 0 will be used. | 1 |
Order By | Optional | The value (i.e., ID or Name) by which to sort retrieved records. The default setting is ID. | ID |
Direction | Optional | The direction (i.e. Ascending or Descending) to sort retrieved records. The default setting is Ascending. | Ascending |
Output
Error Handling
If the Return Data is Partially Successful or Failed, an Error tab will appear in the Test Result window.
The error tab contains the details responded from D3 SOAR or third-party API calls, including Failure Indicator, Status Code, and Message. This can help you locate the root cause of a command failure.
Parts in Error | Description | Example |
Failure Indicator | Indicates the command failure that happened at a specific input and/or API call. | List Entities failed. |
Status Code | The response code issued by the third-party API server or the D3 SOAR system that can be used to locate the corresponding error category. For example, if the returned status code is 401, the selected connection is unauthorized to run the command. The user or system support would need to check the permission setting in the LogRhythm Rest portal. Refer to the HTTP Status Code Registry for details. | Status Code: 400. |
Message | The raw data or captured key error message from the integration API server about the API request failure. | Message: The value for parameter (Limit) is invalid. |
Error Sample Data List Entities failed. Status Code: 400. Message: The value for parameter (Limit) is invalid. |
List Log Sources
Returns a summary of all accepted log sources.
Input
Input Parameter | Required/Optional | Description | Example |
Source Name | Optional | The name of the log source to filter returned records. The input must be a prefix (e.g. AI) or the complete name of the source (e.g. AI Engine). | AI |
Status | Optional | The log source status (i.e., All, Active or Retired) to filter returned records. The default setting is All. | All |
Description | Optional | The segment of the description to filter returned records. The input must be a prefix (e.g. CS) or the complete name of the source (e.g. CS Falcon). | description |
Limit | Optional | The maximum number of records to return. If this parameter is not defined or set to a non-positive number, the default value of 20 will be used. The maximum permissible value is 1000. | 10 |
Offset | Optional | The number of items to skip before starting to collect the result set. If this parameter is not defined or set to a non-positive number, the default value of 0 will be used. | 1 |
Order By | Optional | The value (i.e., ID or Name) by which to sort retrieved records. The default setting is ID. | ID |
Direction | Optional | The direction (i.e. Ascending or Descending) to sort retrieved records. The default setting is Ascending. | Ascending |
Output
Error Handling
If the Return Data is Failed, an Error tab will appear in the Test Result window.
The error tab contains the details responded from D3 SOAR or third-party API calls, including Failure Indicator, Status Code, and Message. This can help you locate the root cause of a command failure.
Parts in Error | Description | Example |
Failure Indicator | Indicates the command failure that happened at a specific input and/or API call. | List Log Sources failed. |
Status Code | The response code issued by the third-party API server or the D3 SOAR system that can be used to locate the corresponding error category. For example, if the returned status code is 401, the selected connection is unauthorized to run the command. The user or system support would need to check the permission setting in the LogRhythm Rest portal. Refer to the HTTP Status Code Registry for details. | Status Code: 400. |
Message | The raw data or captured key error message from the integration API server about the API request failure. | Message: The value for parameter (Limit) is invalid. |
Error Sample Data List Log Sources failed. Status Code: 400. Message: The value for parameter (Limit) is invalid. |
Update Alarms
Updates the status and risk-based priority score for the specified alarms.
Reader Note
The parameter Alarm IDs is required to run this command.
Run the Fetch Event command to obtain Alarm IDs. Alarm IDs can be found in the returned raw data at the path $.alarmsSearchDetails[*].alarmId.
Input
Input Parameter | Required/Optional | Description | Example |
Alarm IDs | Required | The IDs of the alarms to update. Alarm IDs can be obtained using the Fech Event command. | [1*****] |
Alarm Status | Optional | The updated status for the alarms. The default status is None. | Opened |
Risk-Based Priority Score | Required | The updated risk-based priority score (1-100) for the alarms. | 60 |
Output
Error Handling
If the Return Data is Partially Successful or Failed, an Error tab will appear in the Test Result window.
The error tab contains the details responded from D3 SOAR or third-party API calls, including Failure Indicator, Status Code, and Message. This can help you locate the root cause of a command failure.
Parts in Error | Description | Example |
Failure Indicator | Indicates the command failure that happened at a specific input and/or API call. | Update Alarms failed. |
Status Code | The response code issued by the third-party API server or the D3 SOAR system that can be used to locate the corresponding error category. For example, if the returned status code is 401, the selected connection is unauthorized to run the command. The user or system support would need to check the permission setting in the LogRhythm Rest portal. Refer to the HTTP Status Code Registry for details. | Status Code: 404. |
Message | The raw data or captured key error message from the integration API server about the API request failure. | Message: Alarm does not exist for the supplied AlarmId. |
Error Sample Data Update Alarms failed. Status Code: 404. Message: Alarm does not exist for the supplied AlarmId. |
Test Connection
Allows you to perform a health check on an integration connection. You can schedule a periodic health check by selecting Connection Health Check when editing an integration connection.
Input
N/A
Output
Error Handling
If the Return Data is Failed, an Error tab will appear in the Test Result window.
The error tab contains the details responded from D3 SOAR or third-party API calls, including Failure Indicator, Status Code, and Message. This can help you locate the root cause of a command failure.
Parts in Error | Description | Example |
Failure Indicator | Indicates the command failure that happened at a specific input and/or API call. | Test Connection failed. Failed to check the connector. |
Status Code | The response code issued by the third-party API server or the D3 SOAR system that can be used to locate the corresponding error category. For example, if the returned status code is 401, the selected connection is unauthorized to run the command. The user or system support would need to check the permission setting in the LogRhythm Rest portal. Refer to the HTTP Status Code Registry for details. | Status Code: 400. |
Message | The raw data or captured key error message from the integration API server about the API request failure. | Message: Bad Request. |
Error Sample Data Test Connection failed. Failed to check the connector. Status Code: 400. Message: Bad Request. |