You can configure the Cequence Unified API Protection (UAP) platform to export data to an Elasticsearch instance.
Configuring Elasticsearch
Configure Elasticsearch to export data from the Cequence UAP platform.
Deploy or access an Elasticsearch cluster
Set up an Elasticsearch cluster to receive exported data. You can use a managed service or deploy Elasticsearch on your own infrastructure.
- For a managed service, use Elastic Cloud, Amazon OpenSearch Service, or another cloud provider's managed offering.
- For self-hosted deployment, see the Elasticsearch installation documentation.
- Note the endpoint URL and port for your cluster (typically port 9200).
Create an index
Create an Elasticsearch index to store exported data.
- Access your Elasticsearch management interface (Kibana, Elastic Cloud Console, or the API).
- Select Index Management and select Create index.
- Enter an Index name (for example, cequence-uap-exports).
- Configure index settings and mappings or accept the defaults.
- Select Create.
Create a user and configure permissions
Create credentials that enable Cequence UAP to write data to your index.
For a managed Elasticsearch service:
- Navigate to the service's security section (for example, Elastic Cloud Security Users).
- Create a new user or modify an existing one.
- Assign a role such as
index_writeormanage_indexfor your target index. - Note the username and password.
For self-hosted Elasticsearch with X-Pack Security:
- Use Kibana or the elasticsearch-users CLI tool to create a user.
- Assign appropriate roles for your index.
- Note the username and password.
Optional: Configure network access
Ensure your Elasticsearch cluster is reachable from the Cequence UAP environment. Update firewall rules or security groups to allow inbound connections on the Elasticsearch port (default 9200). Restrict access to trusted IP addresses or networks.
Optional: Enable HTTPS
For encrypted data transfer, enable HTTPS on your Elasticsearch cluster. Install a valid SSL/TLS certificate or use your managed service's built-in encryption. Ensure the certificate is trusted by the Cequence UAP environment.
Test the connection
Verify that your user credentials and network access work correctly. Run the following command from an environment that can reach your Elasticsearch cluster.
curl -u username:password -X POST "https://elasticsearch-endpoint/index-name/_doc" -H "Content-Type: application/json" -d '{"test":"connection"}'Replace username, password, elasticsearch-endpoint, and index-name with your actual values. A successful response indicates that the connection works and documents can be written to your index.
Configuring the Cequence UAP platform
Once you've prepared Elasticsearch, finish configuring the data export integration from the Cequence UAP platform dashboard.
- Log in to the Cequence UAP platform.
- From the left navigation bar, select Integrations > Data Export.
- In the Add a new integration section, choose a type from the Select a type drop-down.
The new data export dialog appears with the Overview tab selected. - In the Overview tab, type the following information.
- Integration name
- Host Address
- Index Name
- Index User
- Index Password
- Use HTTPS: activate this toggle to use HTTPS.
- Determine which event types you want to export. The following event types are available.
- Risk events
- Bot detection events
- Bot mitigation events
- Audit log events
- For each event type you're exporting, click the corresponding tab, then perform the "Defining event criteria and export fields" procedure following this procedure.
- Verify that the Enable Integration toggle is on. Click Save.
Defining event criteria and export fields
This procedure applies when you are currently defining a new data export integration in the Cequence UAP platform and have already configured the Overview tab.
- Locate the event type section you want to configure.
The following event types are available.- Risk Events
- Bot Detection Events
- Bot Mitigation Events
- Audit Log Events
- Enable the event type toggle.
- In Event Criteria, click the pencil icon.
The criteria builder appears. - In the Criteria pane, choose OR (match any) or AND (match all).
- Choose a field, a condition, and a value.
For example,country(field)equals(condition)mx(value), orMethod does not equal GET. - To define another criterion, repeat the previous step.
- Click Add.
- In the Export Fields section, click the pencil icon.
The field selector appears. - Select individual fields, or click Select all.
Type a string in the search field to filter fields. - Choose a transformation from the drop-down for each selected field.
The following transformations are available.- hash
- show only last 4 characters
- format preserving encryption (FPE)
- None
- Click Set.
- Enter the transformation script.