Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
7a45f829fc | |||
d95d2705b0 |
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@mojoio/logdna",
|
"name": "@mojoio/logdna",
|
||||||
"version": "1.0.4",
|
"version": "1.0.5",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@mojoio/logdna",
|
"name": "@mojoio/logdna",
|
||||||
"version": "1.0.4",
|
"version": "1.0.5",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "anunoffical package for the logdna api",
|
"description": "anunoffical package for the logdna api",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
|
@ -55,7 +55,7 @@ export class LogdnaAccount {
|
|||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
|
||||||
console.log(requestBodyObject);
|
// console.log(requestBodyObject);
|
||||||
|
|
||||||
// lets post the message to logdna
|
// lets post the message to logdna
|
||||||
await plugins.smartrequest.postJson(requestUrlWithParams, {
|
await plugins.smartrequest.postJson(requestUrlWithParams, {
|
||||||
|
@ -1,19 +0,0 @@
|
|||||||
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"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}'
|
|
Reference in New Issue
Block a user