1、python入es时间转换为datetime格式

datetime.strptime( 'March 25 2020, 16:26:00', '%Y-%m-%d %H:%M:%s.000Z')


2、批量插入

from elasticsearch import helpers

helpers.bulk(es, action, request_timeout=100)


3、 java api

queryBuilder=QueryBuilders.boolQuery().must(QueryBuilders.termQuery('node', '1.1.1.1')).must(QueryBuilder.rangeQuery('timestamp').gte(11111).lte(22222))


client.prepareSearch('inbound').setTypes('logs').setSize(10000).setQuery(queryBuilder).execute().actionGet()


3、kibana无法启动

-- kibana版本与elasticsearch不一致

-- curl -XDELETE http://localhost:9200/.kibana