@timestamp
, not _time
. For example:
Send logs to Axiom using the Elasticsearch Bulk API and Go
To send logs to Axiom using the Elasticsearch Bulk API and Go, use thenet/http
package to create and send the HTTP request.
Prepare your data
The data needs to be formatted as per the Bulk API’s requirements. Here’s a simple example of how to prepare your data:Send data to Axiom
Get an Axiom API token for the Authorization header, and create a dataset.Send logs to Axiom using the Elasticsearch Bulk API and Python
To send logs to Axiom using the Elasticsearch Bulk API and Python, use the built-inrequests
library.