---
title: "Submit custom logs"
method: POST
path: "/applications/{id}/logs"
tags: ["logs"]
---

# Submit custom logs

`POST /applications/{id}/logs`

Submit custom logs.

## Path parameters

- `id` string, required

## Query parameters

- `type` 'custom'

## Request body

- union
  - LogPost
    - `created` string, date-time, required — The time when the log was recorded.
    - `stream` string, required — The custom defined category to associate the log with.
    - `message` string, required — The contents of the log.
    - `address` string, required — A ip address or range.
    - `filename` string, required — The file where the log was written.
    - `hostname` string, required — The hostname of the machine running the Webscale Monitoring Agent.
  - LogPost[]
    - `created` string, date-time, required — The time when the log was recorded.
    - `stream` string, required — The custom defined category to associate the log with.
    - `message` string, required — The contents of the log.
    - `address` string, required — A ip address or range.
    - `filename` string, required — The file where the log was written.
    - `hostname` string, required — The hostname of the machine running the Webscale Monitoring Agent.

## Response `200`

Successfully submitted.

- CustomLogId[] — IDs of log or logs that were successfully submitted

---

[API](https://skmtc.dev/webscale/apis/webscale-apis.md) · [All operations](https://skmtc.dev/webscale/apis/webscale-apis/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/webscale/webscale-apis/revisions/c98d872b50cb/schema)
