2020-04-21 05:42:35
@Clueless I need a bit of python that reads in a single json file from stdin. Adds an ISO8601 timestamp to the top level of the json and then outputs the resulting json to stdout.

Fireduck
2020-04-21 05:42:55
Also, elastic search is kinda terrible

Fireduck
2020-04-21 05:43:02
Can do easy.

Clueless
2020-04-21 05:43:14
However I have company right now.

Clueless
2020-04-21 05:43:29
no worries

Fireduck
2020-04-21 17:15:02
@Clueless worked it out: https://github.com/fireduck64/es-stats/commit/49e265f71edf98c588122326621b506259edd6d0

Fireduck
2020-04-21 19:30:33
Yup, that's what I had in mind.

Clueless
2020-04-21 19:40:05
if you must make it run via shebangs, at least do a `#!/usr/bin/env python3`

Rotonen
2020-04-21 19:40:18
also what's up with the semicolons? :smile:

Rotonen
2020-04-21 19:46:10
I'm not going to stop typing semicolons

Fireduck
2020-04-21 19:46:18
;

Fireduck
2020-04-21 19:58:24
Python is good for this since it is everywhere I want to run this thing.

Fireduck