Ingest data to edge deployment
Ingests JSON, NDJSON, or CSV events into an events or logs dataset in this edge deployment. Events that fail are counted in failed and listed in failures. Events whose timestamp is more than 24 hours in the future or before the Unix epoch (1970-01-01T00:00:00Z) are rejected and not stored. Returns 400 when every event in the request is rejected and 430 when the organization has reached its ingest limit.
Parameters
| Property | Type | Location | Description |
|---|---|---|---|
dataset- | stringRequired | path | |
timestamp- | string | query | The name of the field to use as the timestamp. If not specified, the timestamp will be the time the event was received by Axiom. |
timestamp- | string | query | The date-time format of the timestamp field. The reference time is Mon Jan 2 15:04:05 -0700 MST 2006, as specified in https://pkg.go.dev/time/?tab=doc#Parse |
csv- | string | query | The delimiter to use when parsing CSV data. If not specified, the default delimiter is ,. |
X- | string[] | header | A list of optional comma separated fields to use for CSV ingestion. If not specified, the first line of the CSV will be used as the field names. |
X- | string | header | An optional JSON encoded object with additional labels to add to all events in the request |
Body
Data you want to send to Axiom. Supported formats: JSON, NDJSON, CSV. Upload the data in a file or send it in the payload of the request.
application/jsonapplication/nd-jsontext/csvapplication/x-ndjsonRequest
Try itRun this request against your Axiom organization
Credentials stay in this browser tab and are only sent to Axiom when you run the request.
Response
200Ingest result, including any per-event failures.400The dataset name is invalid or reserved, the dataset is in another edge deployment or isn't an events or logs dataset, or every event in the request was rejected.403The token can't ingest into this dataset, the dataset is shared from another organization, or the organization is suspended.404Dataset not found.430The organization has reached its ingest limit.| Property | Type | Description |
|---|---|---|
blocks | integerRequired | |
failed | integerRequired | |
failures | object[] | |
error | stringRequired | |
timestamp | stringRequired | |
ingested | integerRequired | |
processed | integerRequired | |
wal | integerRequired |