Skip to content

Commit

Permalink
use nginx ndjson instead of json
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhail Fedorov committed Oct 28, 2020
1 parent a1413d6 commit 3598549
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,13 @@ $ docker-compose -f docker-compose.yaml up -d
Import dashboards to kibana through UI (Kibana->Management->Saved Objects) or use API calls below.
```
KIBANA_URL=https://your.kibana:5601
source helpers.sh
cat kibana/overview-dashboard.json | code2ndjson | jq -s . | jq '{"objects": . }' | \
jq -s . kibana/overview-dashboard.ndjson | jq '{"objects": . }' | \
curl -k --location --request POST "$KIBANA_URL/api/kibana/dashboards/import" \
--header 'kbn-xsrf: true' \
--header 'Content-Type: text/plain' -d @- \
| jq
cat kibana/false-positives-dashboards.json | code2ndjson | jq -s . | jq '{"objects": . }' | \
jq -s . kibana/false-positives-dashboards.ndjson | jq '{"objects": . }' | \
curl -k --location --request POST "$KIBANA_URL/api/kibana/dashboards/import" \
--header 'kbn-xsrf: true' \
--header 'Content-Type: text/plain' -d @- \
Expand Down

0 comments on commit 3598549

Please sign in to comment.