I was wondering if is it possible map those json fields from my logs to a kibana indexes, in order to be possible select the visualization of specific fields.
For example, in the image below, I can select message as a field of my log, I would like to filter the information inside of my log
es = Elasticsearch([{'host': 'localhost', 'port': 9200}]) # Update host/port if needed
log_data = {"levelname": "INFO", "message": "REQUEST STARTED
, "name": "middleware"}
es.index(index="logs", body=log_data) # Index named "logs"]
Create an index pattern (optional but recommended): logs-*
Go to Discover tab.
Select index pattern (if created).
Visualize/filter using the Kibana interface:
Visualize fields (Terms, Histogram, etc.)
Filter logs by fields (search bar)
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.