# Fourier Transform

**URL:** <https://discuss.elastic.co/t/fourier-transform/95619>\
**Category:** Kibana\
**Created:** [August 2, 2017, 9:28pm UTC](https://discuss.elastic.co/t/fourier-transform/95619 "2017-08-02T21:28:50Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nithin\_Devang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nithin_devang/32/25023_2.png) [@Nithin\_Devang](https://discuss.elastic.co/u/Nithin_Devang)\
**Post date:** [August 2, 2017, 9:28pm UTC](https://discuss.elastic.co/t/fourier-transform/95619/1 "2017-08-02T21:28:50Z")

</div>

Previously I was using mysql and php/google charts to store data and I shifted to elasticsearch. I was using custom php function for fourier transform and display spectral data (chart). Is there anyway I can build a spectral analysis (Fast Fourier Transform) chart using Kibana for data present in Elastic Search?

---

<div class="post-metadata">

**Author:** ![Brandon\_Kobel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brandon_kobel/32/14829_2.png) [@Brandon\_Kobel](https://discuss.elastic.co/u/Brandon_Kobel)\
**Post date:** [August 3, 2017, 1:38pm UTC](https://discuss.elastic.co/t/fourier-transform/95619/2 "2017-08-03T13:38:49Z")

</div>

@Nithin_Devang all the visualizations in Kibana operate off of Elasticsearch aggregates, and from my understanding Fourier Transforms the discrete underlying data point so Kibana's visualizations likely aren't going to help you.

It'd be theoretically possible for you to store and retrieve the raw data in Elasticsearch, apply the Fourier Transform and then 're-index' your results in Elasticsearch for display in Kibana.

---

<div class="post-metadata">

**Author:** ![Nithin\_Devang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nithin_devang/32/25023_2.png) [@Nithin\_Devang](https://discuss.elastic.co/u/Nithin_Devang)\
**Post date:** [August 3, 2017, 8:01pm UTC](https://discuss.elastic.co/t/fourier-transform/95619/3 "2017-08-03T20:01:13Z")

</div>

To create a Fourier transform I need set of historical data and I may not be able to convert it in real time.

---

<div class="post-metadata">

**Author:** ![Brandon\_Kobel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brandon_kobel/32/14829_2.png) [@Brandon\_Kobel](https://discuss.elastic.co/u/Brandon_Kobel)\
**Post date:** [August 3, 2017, 8:27pm UTC](https://discuss.elastic.co/t/fourier-transform/95619/4 "2017-08-03T20:27:11Z")

</div>

> To create a Fourier transform I need set of historical data and I may not be able to convert it in real time.

Sorry, I'm not following.

---

<div class="post-metadata">

**Author:** ![Nithin\_Devang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nithin_devang/32/25023_2.png) [@Nithin\_Devang](https://discuss.elastic.co/u/Nithin_Devang)\
**Post date:** [August 5, 2017, 7:56am UTC](https://discuss.elastic.co/t/fourier-transform/95619/5 "2017-08-05T07:56:42Z")

</div>

Ok. The thing is I am getting real time data from sensors and adding that to Elasticsearch index. This is a time series data and you can plot across x axis as time series and values and y axis and this graph look good and one value is not dependent on previous value for any calculation.  
But when it comes to Fast Fourier transform I cannot read a live sensor data and do a Fourier transform on that and add to Elasticsearch. Fourier transform formula takes a set of all historical data to calculate Frequency. So I am not sure how can I store and retrieve by applying Fourier transform on individual values.

---

<div class="post-metadata">

**Author:** ![Brandon\_Kobel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brandon_kobel/32/14829_2.png) [@Brandon\_Kobel](https://discuss.elastic.co/u/Brandon_Kobel)\
**Post date:** [August 11, 2017, 12:27pm UTC](https://discuss.elastic.co/t/fourier-transform/95619/6 "2017-08-11T12:27:07Z")

</div>

I think I'm following now, the point that I was trying to make earlier is that Kibana's current visualizations utilize aggregations, so you won't be able to get all historical data to perform the fourier transform with any of the existing visualizations. It's possible that you could write your own plugin/visualization for Kibana that does so, but we don't have any built-in capabilities that will make this possible.

---

<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:** [September 8, 2017, 12:27pm UTC](https://discuss.elastic.co/t/fourier-transform/95619/7 "2017-09-08T12:27:26Z")

</div>

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