Logtail
What is Logtail?
Get help
Book a demo
System Status
Searchβ¦
Getting started
βοΈ Sources
JavaScript
Python
Ruby
PHP
.NET
Java
Heroku
Render
Kubernetes
Docker
Dokku
Cloudflare
HTTP REST API
Nginx
Apache2
Redis
MongoDB
PostgreSQL
MySQL
Ubuntu
π
Integrations
Slack
ποΈ Log forwarding
Vector (recommended)
Fluent Bit
Logstash
Fluentd
Syslog
π§
API
Getting Started
Sources API
π
How-to Guides
GeoIP map visualization
AWS S3-compatible archive
String + JSON format
Live Tail Query Language
Tutorials
Powered By
GitBook
HTTP REST API
You can use Logtail even if there's no official library for your programming language by sending your logs to our HTTP API. It's simple to get started.
post
https://in.logtail.com
/
Log an event or an array of events
Example: Single event
cURL (JSON)
cURL (MessagePack)
1
curl -X POST https://in.logtail.com \
2
-H "Authorization: Bearer YOUR_LOGTAIL_SOURCE_TOKEN" \
3
-H "Content-Type: application/json" \
4
-d '{"message":"logtail is ready","nested":{"values":123}}'
Copied!
1
curl -X POST https://in.logtail.com \
2
-H "Authorization: Bearer YOUR_LOGTAIL_SOURCE_TOKEN" \
3
-H "Content-Type: application/msgpack" \
4
-d "\x82\xA7message\xB0logtail is ready\xA6nested\x81\xA6values{"
Copied!
Example: Multiple events
cURL (JSON)
cURL (MessagePack)
1
curl -X POST https://in.logtail.com \
2
-H "Authorization: Bearer YOUR_LOGTAIL_SOURCE_TOKEN" \
3
-H "Content-Type: application/json" \
4
-d '[{"message":"A"},{"message":"B"}]'
Copied!
1
curl -X POST https://in.logtail.com \
2
-H "Authorization: Bearer YOUR_LOGTAIL_SOURCE_TOKEN" \
3
-H "Content-Type: application/json" \
4
-d "\x92\x81\xA7message\xA1A\x81\xA7message\xA1B"
Copied!
βοΈ Sources - Previous
Cloudflare
Next - βοΈ Sources
Nginx
Last modified
9mo ago
Copy link
Contents
post
Log an event or an array of events
Example: Single event
Example: Multiple events