xros / jsonpyes

The tool which imports raw JSON to ElasticSearch in one line of commands
Other
67 stars 21 forks source link

Reading from Stdin instead of a file #28

Open quixote911 opened 7 years ago

quixote911 commented 7 years ago

Is it possible for me to get jsonpyes to read from stdin instead of a file?

My dataset is a json.gz file. It's a bit wasteful to un-gzip it before uploading to ES. I'd prefer if I could zcat myfile.json.gz | jsonpyes ....

xros commented 7 years ago

@ankitarora121 it would be possible. I haven't added this feature in this program. But this is a nice feature.