I tested inserting one document manually and it works.
Still lot of testing needs to be done.
so far connection to es done, pulling out record from es done, insert to es done, update to es done.
Alright here is what I have so far working. incase someone else is looking for
es = Elasticsearch('elktst01', http_auth=('xxxx', 'xxxx'), port=9200)
p=es.ping()
print(p)
res=es.index(index="sachin_quick_test", id=doc['num'], body=doc, doc_type='_doc')
res=es.delete(index="sachin_quick_test", id='2', doc_type='_doc')
res=es.create(index="sachin_quick_test", id=doc['num'], body=doc, doc_type='_doc')
res = es.search(index="sachin_quick_test", body={"query": {"match_all": {}}})
print("Got %d Hits:" % res['hits']['total']['value'])
for hit in res['hits']['hits']:
print("%(@timestamp)s: %(field1)s: %(num)s" % hit["_source"])
problem is any date field I insert via python ELK thinks it is local time and converts it to UTC.
I have some date that I would like ELK to convert
but I have some date field that are already converted to UTC and would like to save it. but it does not do that and moves the time.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.