Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Configuration requirements

To run this collector, there are some configurations detailed below that you need to consider.

Configuration

Details

Access token

The access token is required to authenticate requests to the Akamai SIEM API.

Client secret

The client secret is required for secure authentication alongside the access token.

Client token

The client token is necessary for identifying and authenticating API requests.

Host

The host specifies the endpoint for the Akamai SIEM API.

Refer to the Vendor setup section to know more about these configurations.

Overview

The Akamai Event Viewer Collector is designed to retrieve and aggregate event data related to user activities and configuration changes from the Akamai platform. Leveraging Akamai's Event Viewer API, this collector enables seamless access to historical event logs, allowing organizations to centralize operational insights and track important system events. By integrating this data into external monitoring or analytics platforms, organizations can enhance their auditing capabilities, streamline troubleshooting, and maintain a comprehensive record of key actions performed within their infrastructure.

Devo collector features

Feature

Details

Allow parallel downloading (multipod)

  • not allowed

Running environments

  • collector server

  • on-premise

Populated Devo events

  • table

Flattening preprocessing

  • no

Data sources

Data Source

Description

API Endpoint

Collector Service Name

Devo Table

Available from release

Event Viewer events

Retrieves user activity and system configuration events. Paginated data ensures efficient retrieval and access to historical logs.

/event-viewer-api/v1/events

event_viewer_events

cdn.akamai.eventviewer

v1.0.0

For more information on how the events are parsed, visit our page ← LINK TO THE PARSER ARTICLE IF EXISTS

Flattening preprocessing

This collector does not implement flattening.

Vendor setup

Vendor Setup for Akamai Event Viewer

To configure the Akamai Event Viewer Service, follow these steps:

1. Access Akamai Control Center:

  1. Log in to your Akamai Control Center using your credentials.

  2. Navigate to the Event Viewer section in the main menu.

2. Assign the Required Role:

  1. Go to the Identity and Access Management section.

  2. Ensure your account is assigned the appropriate role for managing Event Viewer access.

  3. For detailed role-based access configuration, refer to the Akamai Role-based Access Controls.

3. Create Authentication Credentials:

  1. In the API Credentials section, generate new credentials.

  2. Select the API service related to Event Viewer and set the access level to READ-WRITE.

  3. Generate and securely store the following credentials:

    • Client Token

    • Client Secret

    • Access Token

  4. Detailed steps can be found in the Event Viewer API Guide.

4. Configure the Event Viewer API Endpoint:

  1. Identify the correct hostname for the Event Viewer API endpoint.

  2. Ensure that your connector or system is configured to communicate with this endpoint.

5. Implement EdgeGrid Authentication:

  1. Ensure your connector supports Akamai EdgeGrid authentication.

  2. Configure the connector with the Client Token, Client Secret, and Access Token obtained in the previous step.

  3. For implementation details, refer to the Event Viewer API Documentation.

6. Enable Event Viewer Integration:

  1. In the Akamai Control Center, navigate to the Event Viewer Integration section.

  2. Enable data collection and configure the required settings for your environment.

  3. For additional details, refer to the Akamai Event Viewer Documentation.

Minimum configuration required for basic pulling

Although this collector supports advanced configuration, the fields required to retrieve data with basic configuration are defined below.

This minimum configuration refers exclusively to those specific parameters of this integration. There are more required parameters related to the generic behavior of the collector. Check setting sections for details.

Setting

Details

access_token

The access token is required to authenticate requests to the Akamai SIEM API.

client_secret

The client secret is required for secure authentication alongside the access token.

client_token

The client token is necessary for identifying and authenticating API requests.

host

The host specifies the endpoint for the Akamai SIEM API, typically in the format {host}.

configs_id

The configuration ID identifies the specific set of logs or security events to retrieve.

See the Accepted authentication methods section to verify what settings are required based on the desired authentication method.

Accepted authentication methods

EdgeGridAuth

Details

access_token

The access token is required to authenticate requests to the Akamai SIEM API.

client_secret

The client secret is required for secure authentication alongside the access token.

client_token

The client token is necessary for identifying and authenticating API requests.

Run the collector

Once the data source is configured, you can either send us the required information if you want us to host and manage the collector for you (Cloud collector), or deploy and host the collector in your own machine using a Docker image (On-premise collector).

Collector services detail

This section is intended to explain how to proceed with specific actions for services.

Events service

 Verify data collection

Once the collector has been launched, it is important to check if the ingestion is performed in a proper way. To do so, go to the collector’s logs console.

This service has the following components:

Component

Description

Setup

The setup module is in charge of authenticating the service and managing the token expiration when needed.

Puller

The setup module is in charge of pulling the data in a organized way and delivering the events via SDK.

Setup output

A successful run has the following output messages for the setup module:

INFO InputProcess::MainThread -> AkamaiEventViewerPullerSetup(akamai-siem#12345,security_events#predefined) -> Starting thread
INFO InputProcess::MainThread -> AkamaiEventViewerPuller(akamai-siem#12345,security_events#predefined) - Starting thread
WARNING InputProcess::AkamaiEventViewerPullerSetup(akamai-siem#12345,security_events#predefined) -> The token/header/authentication has not been created yet
WARNING InputProcess::AkamaiEventViewerPuller(akamai-siem#12345,security_events#predefined) -> Waiting until setup will be executed
INFO InputProcess::MainThread -> InputMetricsThread -> Started thread for updating metrics values (update_period=10.0)
INFO InputProcess::AkamaiEventViewerPullerSetup(akamai-siem#12345,security_events#predefined) -> Building Akamai SIEM authentication...

Puller output

A successful initial run has the following output messages for the puller module:

Note that the PrePull action is executed only one time before the first run of the Pull action.

InputProcess::AkamaiEventViewerPuller(akamai-siem#12345,event_viewer_events#predefined) -> AkamaiEventViewerPuller(akamai-siem#12345,event_viewer_events#predefined) Starting the execution of pre_pull()
InputProcess::AkamaiEventViewerPuller(akamai-siem#12345,event_viewer_events#predefined) -> Reading persisted data
InputProcess::AkamaiEventViewerPuller(akamai-siem#12345,event_viewer_events#predefined) -> Data retrieved from the persistence: None
InputProcess::AkamaiEventViewerPuller(akamai-siem#12345,event_viewer_events#predefined) -> Persistence will be overridden due to the retrieved state is empty
InputProcess::AkamaiEventViewerPuller(akamai-siem#12345,event_viewer_events#predefined) -> Running the persistence upgrade steps
InputProcess::AkamaiEventViewerPuller(akamai-siem#12345,event_viewer_events#predefined) -> Running the persistence corrections steps
InputProcess::AkamaiEventViewerPuller(akamai-siem#12345,event_viewer_events#predefined) -> Running the persistence corrections steps
InputProcess::AkamaiEventViewerPuller(akamai-siem#12345,event_viewer_events#predefined) -> Some changes have been detected and the persistence needs to be updated. Previous content: None. New content: {'@persistence_version': 1, 'configs_id': '15698', 'last_event_time_epoch': 1736875728, 'offset': 'NULL', 'last_ids': []}
InputProcess::AkamaiEventViewerPuller(akamai-siem#12345,event_viewer_events#predefined) -> Updating the persistence
InputProcess::AkamaiEventViewerPuller(akamai-siem#12345,event_viewer_events#predefined) -> Persistence has been updated successfully
InputProcess::AkamaiEventViewerPuller(akamai-siem#12345,event_viewer_events#predefined) -> AkamaiEventViewerPuller(akamai-siem#12345,event_viewer_events#predefined) Finalizing the execution of pre_pull()
InputProcess::AkamaiEventViewerPuller(akamai-siem#12345,event_viewer_events#predefined) -> Waiting 6.437 seconds before start pulling
InputProcess::AkamaiEventViewerPuller(akamai-siem#12345,event_viewer_events#predefined) -> Starting data collection every 60 seconds
InputProcess::AkamaiEventViewerPuller(akamai-siem#12345,event_viewer_events#predefined) -> Pull Started
InputProcess::AkamaiEventViewerPuller(akamai-siem#12345,event_viewer_events#predefined) -> Offset is invalid or expired. Using time-based mode with from=1736875728 and limit=10000.
InputProcess::AkamaiEventViewerPuller(akamai-siem#12345,event_viewer_events#predefined) -> Request report: 10012 events retrieved with 81053591 bytes. Sent them to Devo with tag: cdn.akamai.siem.
InputProcess::AkamaiEventViewerPuller(akamai-siem#12345,event_viewer_events#predefined) -> Stopping collection as there are no more events to process.
InputProcess::AkamaiEventViewerPuller(akamai-siem#12345,event_viewer_events#predefined) -> (Partial) Statistics for this pull cycle (@devo_pulling_id=1736879340000):Number of requests made: 1; Number of events received: 10012; Number of duplicated events filtered out: 0; Number of events generated and sent: 10012; Average of events per second: 262.162.
InputProcess::AkamaiEventViewerPuller(akamai-siem#12345,event_viewer_events#predefined) -> Statistics for this pull cycle (@devo_pulling_id=1736879340000):Number of requests made: 1; Number of events received: 10012; Number of duplicated events filtered out: 0; Number of events generated and sent: 10012; Average of events per second: 262.160.
InputProcess::AkamaiEventViewerPuller(akamai-siem#12345,event_viewer_events#predefined) -> The data is up to date!
InputProcess::AkamaiEventViewerPuller(akamai-siem#12345,event_viewer_events#predefined) -> Data collection completed. Elapsed time: 38.197 seconds. Waiting for 21.803 second(s) until the next one

After a successful collector’s execution (that is, no error logs found), you will see the following log message:

InputProcess::AkamaiEventViewerPuller(akamai-siem#12345,event_viewer_events#predefined) -> Statistics for this pull cycle (@devo_pulling_id=1736879340000):Number of requests made: 1; Number of events received: 10012; Number of duplicated events filtered out: 0; Number of events generated and sent: 10012; Average of events per second: 262.160.

The value @devo_pulling_id is injected in each event to group all events ingested by the same pull action. You can use it to get the exact events downloaded in that Pull action in Devo’s search window.

 Restart the persistence

This collector uses persistent storage to download events in an orderly fashion and avoid duplicates. In case you want to re-ingest historical data or recreate the persistence, you can restart the persistence of this collector by following these steps:

  1. Edit the configuration file.

  2. Change the value of the eventtype_id parameter to a different one.

  3. Save the changes.

  4. Restart the collector.

The collector will detect this change and will restart the persistence using the parameters of the configuration file or the default configuration in case it has not been provided.

Note that this action clears the persistence and cannot be recovered in any way. Resetting persistence could result in duplicate or lost events.

 Troubleshooting

This collector has different security layers that detect both an invalid configuration and abnormal operation. This table will help you detect and resolve the most common errors.

Error Type

Error ID

Error Message

Cause

Solution

InitVariablesError

22

"override_base_url" is invalid

The "override_base_url" variable is missing or not a string.

Ensure the "override_base_url" parameter is properly configured in config.yaml.

InitVariablesError

24

"logs_limit" setting not found

The "logs_limit" parameter is missing from the configuration.

Add the "logs_limit" setting in the services section of config.yaml.

InitVariablesError

26

"logs_limit" out of valid range

The "logs_limit" value must be between 1 and 600,000.

Update the "logs_limit" value in config.yaml to fall within the valid range.

InitVariablesError

29

"eventTypeId" setting not found

The "eventTypeId" parameter is missing in the configuration.

Add the "eventTypeId" setting in the services section of config.yaml.

InitVariablesError

30

"eventTypeId" is invalid

The "eventTypeId" is not a valid string.

Ensure that "eventTypeId" is a properly formatted string in config.yaml.

ApiError

401

HTTP 401 - Unauthorized

The API credentials (access token, client token, or client secret) are invalid.

Verify and update the API credentials in config.yaml.

ApiError

403

HTTP 403 - Forbidden

The API key lacks the required permissions to access the endpoint.

Ensure your credentials have the necessary permissions in Akamai Control Center.

ApiError

429

HTTP 429 - Too Many Requests

The rate limit for API requests has been exceeded.

Reduce the frequency of API requests and respect rate limit guidelines.

ApiError

500

HTTP 500 - Internal Server Error

Server-side issue in the Akamai Event Viewer API.

Retry the request later. If the problem persists, contact Akamai Support.

PersistenceError

404

Offset expired

The offset used for pulling data has expired due to inactivity or configuration changes.

Reset the persistence state and start a new pull operation.

BaseModelError

N/A

Session could not be initialized

Incorrect or missing authentication credentials.

Verify all credentials in config.yaml and retry.

Collector operations

This section is intended to explain how to proceed with specific operations of this collector.

 Verify collector operations

Initialization

The initialization module is in charge of setup and running the input (pulling logic) and output (delivering logic) services and validating the given configuration.

A successful run has the following output messages for the initializer module:

INFO MainThread -> (CollectorMultithreadingQueue) standard_queue_multithreading -> max_size_in_messages: 10000, max_size_in_mb: 1024, max_wrap_size_in_items: 100
WARNING MainThread -> [INTERNAL LOGIC] DevoSender::_validate_kwargs_for_method__init__ -> The <address> does not appear to be an IP address and cannot be verified: collector-us.devo.io
WARNING MainThread -> [OUTPUT] OutputLookupSenders -> <threshold_for_using_gzip_in_transport_layer> setting has been modified from 1.1 to 1.0 due to this configuration increases the Lookup sender performance.
WARNING MainThread -> [INTERNAL LOGIC] DevoSender::_validate_kwargs_for_method__init__ -> The <address> does not appear to be an IP address and cannot be verified: collector-us.devo.io
INFO MainThread -> [OUTPUT] OutputMultithreadingController(threatquotient_collector) -> Starting thread
INFO MainThread -> [OUTPUT] DevoSender(standard_senders,devo_sender_0) -> Starting thread
INFO MainThread -> [OUTPUT] DevoSenderManagerMonitor(standard_senders,devo_1) -> Starting thread (every 600 seconds)
INFO MainThread -> [OUTPUT] DevoSenderManager(standard_senders,manager,devo_1)(devo_1) -> Starting thread
INFO MainThread -> [OUTPUT] DevoSender(lookup_senders,devo_sender_0) -> Starting thread
INFO MainThread -> [OUTPUT] DevoSenderManagerMonitor(lookup_senders,devo_1) -> Starting thread (every 600 seconds)
INFO MainThread -> [OUTPUT] DevoSenderManager(lookup_senders,manager,devo_1)(devo_1) -> Starting thread
INFO MainThread -> InitVariables Started
INFO MainThread -> start_time_value initialized
INFO MainThread -> verify_host_ssl_cert initialized
INFO MainThread -> event_fetch_limit_in_items initialized
INFO MainThread -> InitVariables Terminated
INFO MainThread -> [INPUT] InputMultithreadingController(threatquotient_collector) - Starting thread (executing_period=300s)
INFO MainThread -> [INPUT] InputThread(threatquotient_collector,threatquotient_data_puller#111) - Starting thread (execution_period=600s)
INFO MainThread -> [INPUT] ServiceThread(threatquotient_collector,threatquotient_data_puller#111,events#predefined) - Starting thread (execution_period=600s)
INFO MainThread -> [SETUP] ThreatQuotientDataPullerSetup(threatquotient_collector,threatquotient_data_puller#111,events#predefined) - Starting thread
INFO MainThread -> [INPUT] ThreatQuotientDataPuller(threatquotient_collector,threatquotient_data_puller#111,events#predefined) - Starting thread

Events delivery and Devo ingestion

The event delivery module is in charge of receiving the events from the internal queues where all events are injected by the pullers and delivering them using the selected compatible delivery method.

A successful run has the following output messages for the initializer module:

INFO OutputProcess::SyslogSenderManagerMonitor(standard_senders,sidecar_0) -> Number of available senders: 1, sender manager internal queue size: 0
INFO OutputProcess::SyslogSenderManagerMonitor(standard_senders,sidecar_0) -> enqueued_elapsed_times_in_seconds_stats: {}
INFO OutputProcess::SyslogSenderManagerMonitor(standard_senders,sidecar_0) -> Sender: SyslogSender(standard_senders,syslog_sender_0), status: {"internal_queue_size": 0, "is_connection_open": True}
INFO OutputProcess::SyslogSenderManagerMonitor(standard_senders,sidecar_0) -> Standard - Total number of messages sent: 44, messages sent since "2022-06-28 10:39:22.511671+00:00": 44 (elapsed 0.007 seconds)
INFO OutputProcess::SyslogSenderManagerMonitor(internal_senders,sidecar_0) -> Number of available senders: 1, sender manager internal queue size: 0
INFO OutputProcess::SyslogSenderManagerMonitor(internal_senders,sidecar_0) -> enqueued_elapsed_times_in_seconds_stats: {}
INFO OutputProcess::SyslogSenderManagerMonitor(internal_senders,sidecar_0) -> Sender: SyslogSender(internal_senders,syslog_sender_0), status: {"internal_queue_size": 0, "is_connection_open": True}
INFO OutputProcess::SyslogSenderManagerMonitor(internal_senders,sidecar_0) -> Internal - Total number of messages sent: 1, messages sent since "2022-06-28 10:39:22.516313+00:00": 1 (elapsed 0.019 seconds)

By default, these information traces will be displayed every 10 minutes.

Sender services

The Integrations Factory Collector SDK has 3 different senders services depending on the event type to delivery (internal, standard, and lookup). This collector uses the following Sender Services:

Sender services

Description

internal_senders

In charge of delivering internal metrics to Devo such as logging traces or metrics.

standard_senders

In charge of delivering pulled events to Devo.

Sender statistics

Each service displays its own performance statistics that allow checking how many events have been delivered to Devo by type:

Logging trace

Description

Number of available senders: 1

Displays the number of concurrent senders available for the given Sender Service.

sender manager internal queue size: 0

Displays the items available in the internal sender queue.

This value helps detect bottlenecks and needs to increase the performance of data delivery to Devo. This last can be made by increasing the concurrent senders.

Total number of messages sent: 44, messages sent since "2022-06-28 10:39:22.511671+00:00": 21 (elapsed 0.007 seconds)

Displayes the number of events from the last time and following the given example, the following conclusions can be obtained:

  • 44 events were sent to Devo since the collector started.

  • The last checkpoint timestamp was 2022-06-28 10:39:22.511671+00:00.

  • 21 events where sent to Devo between the last UTC checkpoint and now.

  • Those 21 events required 0.007 seconds to be delivered.

By default these traces will be shown every 10 minutes.

 Check memory usage

To check the memory usage of this collector, look for the following log records in the collector which are displayed every 5 minutes by default, always after running the memory-free process.

  • The used memory is displayed by running processes and the sum of both values will give the total used memory for the collector.

  • The global pressure of the available memory is displayed in the global value.

  • All metrics (Global, RSS, VMS) include the value before freeing and after previous -> after freeing memory

INFO InputProcess::MainThread -> [GC] global: 20.4% -> 20.4%, process: RSS(34.50MiB -> 34.08MiB), VMS(410.52MiB -> 410.02MiB)
INFO OutputProcess::MainThread -> [GC] global: 20.4% -> 20.4%, process: RSS(28.41MiB -> 28.41MiB), VMS(705.28MiB -> 705.28MiB)

Differences between RSS and VMS memory usage:

  • RSS is the Resident Set Size, which is the actual physical memory the process is using

  • VMS is the Virtual Memory Size which is the virtual memory that process is using

 Enable/disable the logging debug mode

Sometimes it is necessary to activate the debug mode of the collector's logging. This debug mode increases the verbosity of the log and allows you to print execution traces that are very helpful in resolving incidents or detecting bottlenecks in heavy download processes.

  • To enable this option you just need to edit the configuration file and change the debug_status parameter from false to true and restart the collector.

  • To disable this option, you just need to update the configuration file and change the debug_status parameter from true to false and restart the collector.

For more information, visit the configuration and parameterization section corresponding to the chosen deployment mode.

Change log for v1.x.x

Release

Released on

Release type

Details

Recommendations

v1.0.0

NEW FEATURE

The Akamai Event Viewer Collector aggregates and streams security event data from Akamai's platform for monitoring and analysis.

Recommended version

  • No labels