diff --git a/bulk_index.sh b/bulk_index.sh index e39f480..50ead1e 100644 --- a/bulk_index.sh +++ b/bulk_index.sh @@ -6,5 +6,5 @@ while read LINE; do echo '{"index": {"_index":"cowrie","_type":"cowrieevents"}}' >> /tmp/cowrieevents.json echo $LINE >> /tmp/cowrieevents.json done <"$1" -curl -s XPOST --data-binary @/tmp/cowrieevents.json localhost:9200/_bulk +curl -s XPOST -H'Content-Type: application/json' --data-binary @/tmp/cowrieevents.json localhost:9200/_bulk rm /tmp/cowrieevents.json