jsonpyes
jsonpyes copied to clipboard
The tool which imports raw JSON to ElasticSearch in one line of commands
i received this warning : ElasticsearchDeprecationWarning: [types removal] Specifying types in document index requests is deprecated, use the typeless endpoints instead (/{index}/_doc/{id}, /{index}/_doc, or /{index}/_create/{id}). body=json.loads(line) ElasticSearch version : 7.7.1...
Sample raw_data.json {"_id": "valueA", "key2": {"sub_key1": "value2A", "sub_key2": ["Good", "Morning"]}} {"_id": "valueB", "key2": {"sub_key1": "value2B", "sub_key2": ["Good", "Afternoon"]}} jsonpyes --data ../temp/raw_data.json --bulk http://localhost:9200 --import --index myindex --type mytype2 Error: elasticsearch.exceptions.RequestError:...
[root@SZX1000522574 data]# python -V Python 3.6.8 [root@SZX1000522574 data]# jsonpyes --data 2019-04-19.json --check Traceback (most recent call last): File "/usr/local/bin/jsonpyes", line 588, in run() File "/usr/local/bin/jsonpyes", line 411, in run if...
How to bulk with user auth? username & password from x-pack plugins ? which is arguments paramater?
Warning: WARNING:root:Expecting value: line 1 column 1 (char 0) Issue: Data doesn't get uploaded. Note: Once I faced this issue with 2 GB file, and found out the after releasing...
From your code I have seen that you call thread.join after calling thread.start() and inside the same loop.But from [here](https://stackoverflow.com/questions/21486105/when-why-and-how-to-call-thread-join-in-python) you can see that the idiomatic way is to call...
``` Traceback (most recent call last): File "/usr/local/bin/jsonpyes", line 588, in run() File "/usr/local/bin/jsonpyes", line 446, in run body=json.loads(line) File "/usr/local/lib/python2.7/dist-packages/elasticsearch/client/utils.py", line 73, in _wrapped return func(*args, params=params, **kwargs) File...
My elasticsearch is installed in a server with ip 10.0.109.124:9200 Command I am using : jsonpyes --data public_food_entities__20180404.json --bulk http://10.0.109.124:9200 --index foodentites --type public --import --check --thread 8 Error: elasticsearch.exceptions.ConnectionTimeout:...
Hello!I have a json file and each line of it seems like the folowing line **{"ip":"74.63.161.124","timestamp":"2015-10-16T14:00:13-04:00","data":{},"error":"EOF","error_component":"banner","location":[17.3753, 78.4744]}** The program exports that is an invalid file and the reason of that...