LogRhythm REST API User Guide 7.14.0 RevA
LogRhythm REST API User Guide 7.14.0 RevA
Disclaimer
The information contained in this document is subject to change without notice. LogRhythm, Inc. makes no warranty of
any kind with respect to this information. LogRhythm, Inc. specifically disclaims the implied warranty of
merchantability and fitness for a particular purpose. LogRhythm, Inc. shall not be liable for any direct, indirect,
incidental, consequential, or other damages alleged in connection with the furnishing or use of this information.
Trademark
LogRhythm is a registered trademark of LogRhythm, Inc. All other company or product names mentioned may be
trademarks, registered trademarks, or service marks of their respective holders.
LogRhythm
385 Interlocken Crescent, Suite 1050
Broomfield, CO 80021
(303) 413-8745
www.logrhythm.com
Phone
Support (7am - 6pm, Monday-Friday)
Toll Free in North America
(MT) +1-866-255-0862
Direct Dial in the Americas
(MT) +1-720-407-3990
EMEA (GMT) +44 (0) 844 3245898
META (GMT+4) +971 8000-3570-4506
APAC (SGT) +65 31572044
Table of Contents
Security............................................................................................................................. 4
Postman and the LogRhythm API ................................................................................... 4
Register Third-Party Applications to Use the API ........................................................... 5
Disable Third-Party Applications for the API .................................................................. 6
Administration API ........................................................................................................... 7
Administration API Endpoints .................................................................................................................8
AI Engine Cache Drilldown API ........................................................................................ 9
AI Engine Cache Drilldown API Endpoints ............................................................................................10
Alarm API ........................................................................................................................ 11
Alarm API Endpoints ..............................................................................................................................12
Case API .......................................................................................................................... 13
Set Up the Case API ................................................................................................................................14
Case API Endpoints ................................................................................................................................15
Metrics API ...................................................................................................................... 16
Metrics API Endpoints ............................................................................................................................17
Search API....................................................................................................................... 18
Search API Endpoints.............................................................................................................................19
The LogRhythm's REST APIs communicate over HTTPS and use JSON. The available routes and methods are used for a
variety of administration, investigative, and search functions. To configure third-party applications to communicate
with the REST API, see Register Third-Party Applications to Use the API. To remove access, see Disable Third-Party
Applications for the API.
LogRhythm currently offers the following REST APIs:
• Administration API
• AI Engine Cache Drilldown API
• Alarm API
• Case API
• Metrics API
• Search API
Security
The Admin API uses a number of standard protocols to ensure the security and integrity of solutions built using the API.
• All communication is encrypted using HTTPS. Supported versions of TLS are 1.1 and 1.2.
• By default, self-signed certifications and keys are generated at the time of installation. You can provide your own
certificates and keys by modifying the service configuration files (.env files). For more information, see
the LogRhythm Software Installation Guide, available at https://docs.logrhythm.com/deploy/7.14.0/.
• Services are stateless and require a valid API token to be sent with every request. There is no login process and
no session is maintained.
• API tokens are JSON web tokens that are generated through the Client Console and are associated with an API
account.
• To revoke API access for a particular token, you can disable the API account associated with it or delete the
token that was generated for it. This immediately causes any API requests using that token to be rejected.
Security 4
REST API
You will not be able to get back to this screen to copy the token. It appears only one time and, for
security purposes, is not stored. If you do not copy and save the token, you will have to regenerate it
later.
You may need to click the refresh button for the Enabled column to update.
6. (Optional) To re-enable the application, double-click it, select the Enabled check box, and click OK.
Administration API
The LogRhythm Client Console's Admin API is a REST API that communicates over HTTPS and uses JSON. The API’s
available routes and methods are used primarily for performing administrative functions in the Client Console, such as
modifying lists, creating entities, adding people to notification groups, and searching identities. All API actions are
performed on behalf of an API Account that is identified by the API key passed in with each request.
To see the current list of methods and endpoints, including request and response samples, go to Administration API
Endpoints.
The Admin API does not adhere to the customized, elevated privileges for Restricted Administrators that are
granted on the Management Permissions tab of the User Profile Manager. Only standard Restricted
Administrator permissions are granted through the API. For more information, see the User Profile Manager
topic in the SIEM Help.
The Log Level for the Admin API is configured in the Configuration Manager.
Administration API 7
REST API
Administration API 8
REST API
Alarm API
The LogRhythm Client Console's Alarm API is a REST API that communicates over HTTPS and uses JSON. The API’s
available routes and methods are used primarily for retrieving Alarm Details and performing actions on alarms based on
Alarm ID.
All API actions are performed on behalf of an API Account that is identified by the API key passed in with each request.
The LogRhythm Alarm API includes the following endpoints:
• Get Alarm by Alarm ID
• Add Alarm Comment
• Update Alarm Status and RBP
• Get Alarm History
• Get Alarms
• Get Alarm Summary
• Get Alarm Events
For more information on methods and endpoints, including request and response samples, go to Alarm API Endpoints.
The Log Level for the Alarm API is configured in the Configuration Manager.
To utilize the API, users must generate a token in the Client Console. For more information, see Register Third-Party
Applications to Use the API.
While LogRhythm provides the API and usage instructions and supports the API's continued health,
LogRhythm is not responsible for the support or configuration of third-party tools and applications designed
to interact with our APIs.
Alarm API 11
REST API
Alarm API 12
REST API
Case API
The LogRhythm Web Console’s Case API is a REST API that communicates over HTTPS and uses JSON. The API’s
available routes and methods are used primarily for pushing information into LogRhythm, such as synchronizing tickets
from a bug tracking system with LogRhythm Cases.
All API actions are performed on behalf of an API Account that is identified by the API key passed in with each request.
To see the current list of the Web Console's Case APIs, including request and response samples for Case API, go to Case
API Endpoints.
Case API 13
REST API
For instructions on generating a token for the Case API, see Register Third-Party Applications to Use
the API.
Case API 14
REST API
Case API 15
REST API
Metrics API
The LogRhythm Client Console's Metrics API is a REST API that communicates over HTTPS and uses JSON. The API’s
available routes and methods are used primarily for retrieving log volume for a time period provided by user.
To see the current list of methods and endpoints, including request and response samples, go to Metrics API Endpoints.
To utilize the API, users must generate a token in the Client Console. For more information, see Register Third-Party
Applications to Use the API.
The Log Level for the Metrics API is configured in the Configuration Manager.
While LogRhythm provides the API and usage instructions and supports the API's continued health,
LogRhythm is not responsible for the support or configuration of third-party tools and applications designed
to interact with our APIs.
Metrics API 16
REST API
Metrics API 17
REST API
Search API
The LogRhythm Web Console's Search API is a REST API that communicates over HTTPS and uses JSON. The API’s
available routes and methods are used primarily for searching the Web Indexer for logs and events. Users can submit a
request to the search and interface with the data directly, allowing for integration with third-party applications and
custom applications designed for specific business needs.
All API actions are performed on behalf of an API Account that is identified by the API key passed in with each request.
To see the current list of Web Console's Search APIs, including request and response samples for Search API, go
to Search API Endpoints.
To utilize the API, users must:
• Have a working Web Console installation, as the API uses Web Indexer to return results.
• Generate a token in the Client Console. For more information, see Register Third-Party Applications to Use the
API.
While LogRhythm provides the API and usage instructions and supports the API's continued health,
LogRhythm is not responsible for the support or configuration of third-party tools and applications designed
to interact with our APIs.
Search API 18
REST API
Search API 19