# JSON Logs

{% hint style="info" %}
This feature is only available for BYOC and On-Prem deployment modes.&#x20;
{% endhint %}

groundcover utilizes a generic HTTP endpoint for logs in JSON format. This can be useful for integration with 3rd party services and additional collectors, or for importing log files manually.

## Sending logs to the endpoint using the data source wizard

In the [data sources page](https://app.groundcover.com/data-sources), search for the JSON Logs entry. Click on it and open the wizard to see a step-by-step guidance.

<figure><img src="https://2771001740-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUHgqKYgCiRKdOpWQdi52%2Fuploads%2FEgowbYZZN8N0c2Cpo6oE%2Fimage.png?alt=media&#x26;token=d2bf606f-4d9c-4029-8386-ff1bccd28bb0" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2771001740-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUHgqKYgCiRKdOpWQdi52%2Fuploads%2FEZWWdaW7rLAdH2ZSMyj2%2Fimage.png?alt=media&#x26;token=d2ec70f2-f44f-4bd7-8f6f-45bb6aa499ce" alt=""><figcaption></figcaption></figure>

Endpoint and ingestion key are mandatory to get started. We highly recommend to add extra attributes to enrich the logs being sent, such as service name, environment, cluster and source.

Once these parameters will be filled, a cURL command will be available in the following format

```shellscript
curl -X POST "https://melody.platform.grcv.io/json/logs"
    -H 'Content-Type: application/x-ndjson'
    -H 'Authorization: Bearer gcik_AEBAAAB5_QCEMDDEG_JANICSST_S24RDWJT'
    -H 'x-groundcover-service-name: test'
    --data-binary '{"timestamp": "2025-01-01T10:45:32.123456799Z", "msg": "log message"}'
```

### &#x20;Monitoring your integration

Once the integration is live, you can check the logs in the [Logs](https://app.groundcover.com/logs) page or the [Explore](https://app.groundcover.com/explore/data-explorer) page, and can set up monitors.
