# How to generate a metric index from a Nginx log(or similar) index?

**URL:** <https://discuss.elastic.co/t/how-to-generate-a-metric-index-from-a-nginx-log-or-similar-index/361769>\
**Category:** Elasticsearch\
**Created:** [June 20, 2024, 5:27am UTC](https://discuss.elastic.co/t/how-to-generate-a-metric-index-from-a-nginx-log-or-similar-index/361769 "2024-06-20T05:27:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gzOne2Free](https://avatars.discourse-cdn.com/v4/letter/g/f07891/32.png) [@gzOne2Free](https://discuss.elastic.co/u/gzOne2Free)\
**Post date:** [June 20, 2024, 5:27am UTC](https://discuss.elastic.co/t/how-to-generate-a-metric-index-from-a-nginx-log-or-similar-index/361769/1 "2024-06-20T05:27:11Z")

</div>

Hi there,  
I have an index which store Nginx access log. I am able to create a Kibana dashboard to visualize the response time, 4XX, 5XX and other KPIs for a website. A dashboard visualization can do the aggregation like count/sum/avg on an index field such as response status code. It's fine for monitoring.

My need is to generate multi new index to store each aggregated data(metrics) from origin access log index, thus I can config alert rule from Grafana(our company standard) by using ES datasource. How can I achieve this?  
In another word, how can I store a dashboard visualization's data into an index?  
Does any native function, module, plugins or 3rd party component can do that? Or must needs Java, Python or any other code development?

---

<div class="post-metadata">

**Author:** ![nfeekery](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nfeekery/32/117349_2.png) [@nfeekery](https://discuss.elastic.co/u/nfeekery)\
**Post date:** [June 20, 2024, 8:12am UTC](https://discuss.elastic.co/t/how-to-generate-a-metric-index-from-a-nginx-log-or-similar-index/361769/2 "2024-06-20T08:12:19Z")

</div>

From #Elastic Search to #Elasticsearch

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 18, 2024, 8:13am UTC](https://discuss.elastic.co/t/how-to-generate-a-metric-index-from-a-nginx-log-or-similar-index/361769/3 "2024-07-18T08:13:18Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
