Skip to main content

Humio

The integration between Humio and Spot Connect provides users with the ability to automate and streamline cloud log management.

Humio is powerful and extremely useful for system administrators. It provides a fast, flexible platform for logs and server metrics. With Humio Cloud, your log entries and other metrics are sent to your own private, secure repository. After that, use the Humio interface to analyze your data and to create alerts to let you know when events occur, or parameters are exceeded.

The alerts can be later ingested by Spot Connect with this integration and relevant information can be retrieved actively in the middle of any investigation from Spot Connect.

The integration between Spot Connect and Humio enables you to:

  • Trigger a workflow in Spot Connect, when a specific Humio Alert goes into the state of ALERT.
  • Search logs/metrics stored in Humio.

Configure Humio in Spot Connect

  1. In the left main menu, click Connect and click Settings.
  2. Under the Integrations tab, select Humio.
  3. Configure a new integration instance with the information below.

Details needed to set up a Humio instance in Spot Connect:

ParametersDescriptionRequired
Integration AliasAlias for Humio Integration InstanceTrue
Humio URLHumio Cloud URL, e.g. <https://cloud.us.humio.com>True
Humio API TokenAPI Token obtained from HumioTrue

Complete the following steps in your Humio account to obtain the desired parameter values to enter in Spot Connect:

  1. In your Humio account, click Manage Your Account and then Personal API Token.
  2. Copy the API Token and paste it into the Humio API Token field in Spot Connect.
  3. Copy the Humio URL from the browser’s search bar (e.g. <https://cloud.us.humio.com>) and paste it into the Humio URL field in Spot Connect.

Integration Actions

You can add these actions in the Spot Connect workflow builder as part of your workflow.

Use this action to run a Humio search query in a Humio repository.

Input

Parameter NameDescriptionRequired
Humio InstanceSelect a Humio integration instance configured in Spot ConnectTrue
Repository NameHumio repository to searchTrue
Querythe actual query. See Query Language for details.True
Start TimeThe start date and time. This parameter tells Humio not to return results from before this date and time.True
End TimeThe end date and time. This parameter tells Humio not to return results from after this date and time.True
S3 BucketS3 bucket to store search result from Humio Query.False

Output

Parameter NameTypeDescription
resultStringQuery result
is_result_truncatedBooleanBoolean value which denoted if the result is truncated or not
result_bucket_keyStringS3 bucket key path of search result
s3_bucketStringName of the bucket

Action Example

From the left panel, drag and drop Humio Search action node in the workflow builder and enter the required information in the right input panel.

humio-1

humio-2

humio-3

Humio Webhook Trigger

To execute a Spot Connect workflow with a Humio alert in real-time, complete the following steps to set up a webhook integration between Spot Connect and Humio.

In Spot Connect

If you do not already have a Spot Connect API Key, create one by completing the following steps:

  1. In the left main menu, click Connect and click Settings.
  2. Scroll down and under Resources, click API Keys.
  3. Create an API Key and click Save.

Create Workflow

  1. In the left main menu, click Connect and click Workflows.
  2. Click New Workflow and enter a name for the workflow.
  3. Scroll down and select Humio.
  4. Click Create Workflow.
  5. In the center panel of the workflow builder, click the Humio trigger node to open the right panel. Under Webhook API Key Name, select the API Key you created earlier.
  6. Compose your workflow and save it.

In the workflow builder, click the Humio trigger node to save the following values from the right panel:

  • Webhook API Key Value
  • Workflow Webhook URL

humio-4

In Humio

  1. Navigate to a Humio repository and click Alerts.

  2. Click Actions and click New Action.

  3. Enter a name and continue.

    humio-5

  4. Select Action Type as Webhook.

  5. Set Endpoint URL to Workflow Webhook URL saved from Spot Connect Humio Trigger.

  6. Select POST Method.

  7. Enter the following information in the Http Headers fields:

    • Header Name: Content-Type
    • Header Value: application/json
    • Header Name: x-api-key
    • Header Value: add Webhook API Key value saved earlier from the trigger node in Spot Connect.
  8. Create the action by clicking on the Create Action button.

    humio-6

  9. When the webhook call is made, the workflow is triggered. Click Test Action to validate that the workflow was executed.

    humio-7

    humio-8