kibana: Adapt tools to retrieve logs
- Update to be more resilient
- Permit to use loader-svn errors retrieval
Use case sample:
$ ./kibana_fetch_logs.py \ --indexes "logstash-2017.09.18,logstash-2017.09.19,logstash-2017.09.2*,logstash-2017.09.30,logstash-2017.10.01,logstash-2017.10.02" \ | tee svn-loader-error-logs-from-kibana.txt
Then:
$ cat svn-loader-error-logs-from-kibana.txt \ | ./group_by_exception.py \ | jq ".googlecode" { "errors": { "OSError(12, 'Cannot allocate memory')": 608 }, "total": 608 }
Related T676