Last active
December 22, 2021 13:07
-
-
Save chasers/ebc0a63adc2ddcd8f9d6f7ab45044f20 to your computer and use it in GitHub Desktop.
Logflare custom ingest POST request example
This file contains 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/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