From ca5e5bb65a7a2a60d5103fdd6bbd99075f03c1b1 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Thu, 1 Nov 2018 18:15:12 +0100 Subject: [PATCH] initial --- ts/request.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/ts/request.sh b/ts/request.sh index e69de29..0b7e826 100644 --- a/ts/request.sh +++ b/ts/request.sh @@ -0,0 +1,19 @@ +curl "https://logs.logdna.com/logs/ingest?hostname=EXAMPLE_HOST&mac=C0:FF:EE:C0:FF:EE&ip=10.0.1.101&now=$(date +%s)" \ +-u INSERT_INGESTION_KEY: \ +-H "Content-Type: application/json; charset=UTF-8" \ +-d \ +'{ + "lines": [ + { + "line":"This is an awesome log statement", + "app":"myapp", + "level": "INFO", + "env": "production", + "meta": { + "customfield": { + "nestedfield": "nestedvalue" + } + } + } + ] +}' \ No newline at end of file