This article shows an example how to collect performance data from a Natural Ajax application, pushing that data to an Elasticsearch database and visualizing and analyzing the data with Kibana.
![](logo_s.png)
##### Thomas Schwade - January 12, 2018
## Natural Ajax performance analysis with Elasticsearch and Kibana
### What do we want to achieve?
In the follwing we see an example how to collect performance data from an Natural Ajax application, pushing that data to an Elasticsearch database and visualizing and analyzing the data with Kibana.
The example measures the elapsed time of each Ajax request on the server side, including both the processing time on the Tomcat server and on the Natural server. The collected data can be analyzed in real time with the powerful filtering and aggregation features of Kibana.
### How it works
On the Tomcat server we install a **servlet filter** that measures the execution time of each Ajax request and writes for each request a record to the Tomcat log file.
The tool **Filebeat** is running in parallel, watching the log file, filtering the relevant records and writing them to an **Elasticsearch** database.
**Kibana** is used to filter and aggregate the recorded data and helps detecting the long-running requests on the server, so that candidates for performance improvement can be identified.
This file has been truncated. show original