aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetter Reinholdtsen <pere@hungry.com>2015-02-13 09:11:39 +0100
committerPetter Reinholdtsen <pere@hungry.com>2015-02-13 09:11:39 +0100
commit25a9d6e90cd6b2f99e916594690f8746976436ac (patch)
tree9f8aca0970da20043fcb119e1176750bdb893387
parent67496ee0e926089ef8a2dd937f8dfcfa9e86cdaa (diff)
New tool to push data to elasticsearch.
-rwxr-xr-xpush-har2es8
1 files changed, 8 insertions, 0 deletions
diff --git a/push-har2es b/push-har2es
new file mode 100755
index 0000000..df2eec7
--- /dev/null
+++ b/push-har2es
@@ -0,0 +1,8 @@
+#!/bin/sh
+set -e
+for f in har-data/*.har; do
+ if curl -s -XPUT "http://localhost:9200/har-data/uri/$(basename $f|sed s/%/%%/g)" -d@$f 2>&1 |
+ grep -q error; then
+ echo problem with $f
+ fi
+done