Last active
April 2, 2021 13:39
-
-
Save chasers/1d3f853fd246e460bd92e02a218c3c3a to your computer and use it in GitHub Desktop.
logflare_log_event_ingest_with_message
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=2fd57445-1da3-4f3b-aa29-73da06ed7e67" \ | |
-H 'Content-Type: application/json' \ | |
-H 'X-API-KEY: YOUR_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