File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -71,15 +71,22 @@ If your payload exceeds this size, you will need to split it into pieces:
71
71
72
72
< https://github.com/newrelic/aws-log-ingestion/blob/1430a247f1fb5feb844f0707838a6ef48d21fc41/src/function.py#L292-L306 >
73
73
74
- The payload should be gzipped before sending:
74
+ The payload should be utf-8 encoded and then gzipped before sending:
75
75
76
76
< https://github.com/newrelic/aws-log-ingestion/blob/1430a247f1fb5feb844f0707838a6ef48d21fc41/src/function.py#L298 >
77
77
78
+ The following GNU coreutils Bash command will reproduce the desired payload encoding and compression:
79
+
80
+ ``` sh
81
+ xclip -sel clip -o | iconv -cf utf-8 | gzip > payload.gz
82
+ ```
83
+
78
84
Required headers include:
79
85
80
86
* < https://github.com/newrelic/aws-log-ingestion/blob/1430a247f1fb5feb844f0707838a6ef48d21fc41/src/function.py#L360-L361 >
81
- * ` Content-Length `
82
- * ` Host `
87
+ * ` Accept-Encoding: gzip `
88
+ * ` Content-Length: <calculated when request is sent> `
89
+ * ` Host: <calculated when request is sent> `
83
90
84
91
The payload should include the following (properly escaped) elements[ ^ 1 ] :
85
92
You can’t perform that action at this time.
0 commit comments