Skip to content

Curl

curl

Single record

curl http://localhost:5080/api/default/quickstart1/_json -i -u 'root@example.com:Complexpass#123' -d '[{"level":"info","job":"test","log":"test message for openobserve"}]'

Large number if records from a file

For the sample file. You can use the below command.

curl http://localhost:5080/api/default/quickstart1/_json -i -u 'root@example.com:Complexpass#123' --data-binary "@k8slog_json.json"