> For the complete documentation index, see [llms.txt](https://docs.octoxlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.octoxlabs.com/adapters/c/crowdstrike-logscale-formerly-humio.md).

# Crowdstrike LogScale (formerly Humio)

CrowdStrike LogScale (formerly Humio) is a log management and observability platform. OctoXLabs runs a query on a repository and builds devices from the events, using the host name found in CEF logs.

## Use cases

* **List hosts seen in logs.** Show every device found through LogScale.

```
Adapters = humio
```

* **Find hosts that log to LogScale but have no agent.** Compare log sources with an EDR adapter. Replace `crowdstrike` with your EDR slug.

```
Adapters = humio AND NOT Adapters = crowdstrike
```

## Before you begin

### Network

| Source              | Destination                  | Port                         | Protocol                     |
| ------------------- | ---------------------------- | ---------------------------- | ---------------------------- |
| OctoXLabs connector | LogScale host (IP parameter) | 8080 (default, configurable) | HTTPS (HTTP when SSL is off) |

The connector does not verify the TLS certificate.

### Required permissions

| Scope or role    | Permission                                | Needed for      |
| ---------------- | ----------------------------------------- | --------------- |
| Repository token | Data Read Access to the repository (view) | Running queries |

The baseline says you can select as many permissions as needed, and that asset permissions can only be added when Data Read Access is granted to the view. The exact minimum is Not verified.

## Create credentials in LogScale

{% stepper %}
{% step %}

### Select the repository

Go to the repository list and select the repository to create a token for.
{% endstep %}

{% step %}

### Open tokens

Click **Settings** in the top menu. Under **Access Control**, select **Tokens**.
{% endstep %}

{% step %}

### Add a token

Click **Add new**, give the token a name and click **Next**.
{% endstep %}

{% step %}

### Select permissions

Select the permissions to grant. Asset permissions are only available when Data Read Access is granted to the view.
{% endstep %}

{% step %}

### Create the token

Click **Create token**, then **OK**. Copy the token.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter       | Required | Type               | Default        | Description                                                                 |
| --------------- | -------- | ------------------ | -------------- | --------------------------------------------------------------------------- |
| Ip              | Yes      | String             | None           | Address of LogScale.                                                        |
| Port            | No       | Integer            | 8080           | API port.                                                                   |
| Api token       | Yes      | String (sensitive) | None           | Repository token.                                                           |
| Repository name | Yes      | String             | None           | Repository to query.                                                        |
| Query           | No       | String             | Built-in query | Replaces the standard query.                                                |
| Fetch time      | No       | String             | 24h            | How far back to look from now. Use `24h` for one day and `1w` for one week. |
| Timeout         | No       | Integer            | 30             | Seconds to wait for API responses.                                          |
| Is secure       | No       | Boolean            | true           | Use HTTPS.                                                                  |

## Troubleshooting

| Error message                                                  | Cause                                                                           | Fix                                               |
| -------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------- |
| Status Code: `, followed by URL, Method and the response body` | The API answered with an error status. This is the shared REST connector error. | Check the token, repository name and permissions. |

## Change history
