Skip to content

Instantly share code, notes, and snippets.

@chasers
Last active December 22, 2021 13:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chasers/ebc0a63adc2ddcd8f9d6f7ab45044f20 to your computer and use it in GitHub Desktop.
Save chasers/ebc0a63adc2ddcd8f9d6f7ab45044f20 to your computer and use it in GitHub Desktop.
Logflare custom ingest POST request example
curl -X "POST" "https://api.logflare.app/api/logs?source=SOURCE_UUID" \
-H 'Content-Type: application/json' \
-H 'X-API-KEY: API_KEY' \
-d $'{
"message": "This is another log message.",
"metadata": {
"ip_address": "100.100.100.100",
"request_method": "POST",
"custom_user_data": {
"vip": true,
"id": 38,
"login_count": 154,
"company": "Apple",
"address": {
"zip": "11111",
"st": "NY",
"street": "123 W Main St",
"city": "New York"
}
},
"datacenter": "aws",
"request_headers": {
"connection": "close",
"user_agent": "chrome"
}
}
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment