Join fellow LogicMonitor users at the Elevate Community Conference and get hands-on with our latest product innovations.

Register Now

Resources

Explore our blogs, guides, case studies, eBooks, and more actionable insights to enhance your IT monitoring and observability.

View Resources

About us

Get to know LogicMonitor and our team.

About us

Documentation

Read through our documentation, check out our latest release notes, or submit a ticket to our world-class customer service team.

View Resources

Okta Log Collection with AWS

Last updated on 24 June, 2025

You can integrate AWS with LM Logs to collect, process, and forward Okta logs for centralized log analysis and monitoring. This integration uses an AWS CloudFormation stack that includes a Lambda function written in Python. For more information, see Managing AWS resources as a single unit with AWS CloudFormation stacks in the AWS documentation. You can view the integration components in the LogicMonitor GitHub repository. For more information, see LogicMonitor GitHub repository.

You can use the integration between LM Logs and AWS to give you a unified view of identity and activity across your environment. Combining the data and capabilities of Okta and AWS enables streamlined alerting, correlation between authentication events and infrastructure performance, and stronger security and compliance visibility.

Parameters for Okta Log Collection with AWS

The following table describes the parameters required to configure the AWS CloudFormation stack.

ParameterDescriptionDefault
FunctionMemorySizeThe memory size for the OKTA Log Collector Lambda function in MBs2048
FunctionNameThe name for Lambda function.LM-Okta-Log-Collector
FunctionTimeoutInSecondsThe timeout for the OKTA Log Collector lambda function in seconds110
IncludeMetadataKeysComma separated keys to add as event metadata in a lm-log event. for nested json specify the ‘.’ (For example, actor.displayname,actor.type)‘severity,actor.displayname,actor.type,actor.alternateId,client.geographicalContext.city,displayMessage,eventType’
LMAccessIdThe LM API tokens access ID
LMAccessKeyThe LM API tokens access key
LMBearerTokenLogicMonitor API bearer token. Used if LMAccessId and LMAccessKey are not provided
LMCompanyNameThe LogicMonitor account name.

Note: By default, it is set to “logicmonitor.com”. The supported domains for this variable are as follows:

  • lmgov.us
  • qa-lmgov.us
  • logicmonitor.com
  • LMDomainNameThe LogicMonitor domain name.
    LMLogsServiceNameService name used in LM Logs for anomaly detectionokta-system-logs
    LMResourceIdIgnored when LMLogsServiceName is specified. Is a json for resource mapping. if specified as {“system.hostname” : “prod-node-us-west-1”} all logs will be mapped against the device with property system.hostname = prod-node-us-west-1
    OktaAPIKeyOkta API key to fetch logs from Okta
    OktaDomainOkta domain (for example, “company.okta.com“)
    ScheduleExpressionCron expression for this Lambda function. For example, “rate(2 minutes)” means that the function will be triggered every two minutes.

    For more information, see Creating a rule that runs on a schedule in Amazon Eventbridge from Amazon. 
    “rate(2 minutes)”

    Requirements for Okta Log Collection with AWS

    • LogicMonitor API token — Used to authenticate all requests to the log ingestion API. For more information, see API Tokens.
    • Okta API access key — Used to connect to your Okta account and access its data. To generate an Okta API access key, see Create the Token in the Okta documentation.
    • An AWS account – Used to create and deploy the CloudFormation stack that includes a Lambda function. You must have IAM permissions. 

    Collecting Okta Logs with AWS

    1. Navigate to the Okta Log Collector for LM Logs GitHub repository.
    2. In the repository README, select Launch Stack to initiate the stack creation.
    3. Log into AWS. To create and deploy the CloudFormation stack, see Create a stack from the CloudFormation console in the AWS documentation.

    Once you have created the CloudFormation stack, Okta logs are collected and forwarded based on the configured time range.

    In This Article

    Start Your Trial

    Full access to the LogicMonitor platform.
    Comprehensive monitoring and alerting for unlimited devices.