Last active
June 27, 2021 14:51
-
-
Save chasers/c5eeeb0b674bb3b261c1f8e10ce704aa to your computer and use it in GitHub Desktop.
logflare_event_ingest_batch_curl
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -X "POST" "https://api.logflare.app/logs?source=YOUR_SOURCE_UUID" \ | |
-H 'Content-Type: application/json' \ | |
-H 'X-Api-Key: YOUR_INGEST_KEY' \ | |
-d $'{ | |
"batch": [ | |
{ | |
"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": { | |
"st": "NY", | |
"street": "123 W Main St", | |
"zip": "11111", | |
"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