aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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