Answers for "get data from elasticsearch to jupyter"

1

get data from elasticsearch to jupyter

from datetime import datetime
from elasticsearch import Elasticsearch
from pandas import DataFrame, Series
import pandas as pd
import matplotlib.pyplot as plt
es = Elasticsearch(host="192.168.121.252")
res = es.search(index="_all", doc_type='logs', body={"query": {"match_all": {}}}, size=2, fields=('path','@timestamp'))
Posted by: Guest on September-15-2020

Code answers related to "get data from elasticsearch to jupyter"

Browse Popular Code Answers by Language