diff options
author | Petter Reinholdtsen <pere@hungry.com> | 2015-02-13 09:11:39 +0100 |
---|---|---|
committer | Petter Reinholdtsen <pere@hungry.com> | 2015-02-13 09:11:39 +0100 |
commit | 25a9d6e90cd6b2f99e916594690f8746976436ac (patch) | |
tree | 9f8aca0970da20043fcb119e1176750bdb893387 | |
parent | 67496ee0e926089ef8a2dd937f8dfcfa9e86cdaa (diff) |
New tool to push data to elasticsearch.
-rwxr-xr-x | push-har2es | 8 |
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 |