# Elastic Search output piping similar to splunk

**URL:** <https://discuss.elastic.co/t/elastic-search-output-piping-similar-to-splunk/121898>\
**Category:** Elasticsearch\
**Created:** [February 28, 2018, 4:47pm UTC](https://discuss.elastic.co/t/elastic-search-output-piping-similar-to-splunk/121898 "2018-02-28T16:47:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sklein](https://avatars.discourse-cdn.com/v4/letter/s/e495f1/32.png) [@sklein](https://discuss.elastic.co/u/sklein)\
**Post date:** [February 28, 2018, 4:47pm UTC](https://discuss.elastic.co/t/elastic-search-output-piping-similar-to-splunk/121898/1 "2018-02-28T16:47:09Z")

</div>

Hi,

We Need to extract a Duration value from the message field (e.g. Duration="10.400")  
We Need to summarize this value for a Special time period and we need to multiply the total summ for example with 0,3. How can a value be extracted, added to the new field (e.g. Conference\_duration) and this value be used for other operations like multiplying it with a number to get for example a Price for the Duration

Any idea? I am Looking for a good Training to learn the filtering language

For Example in Splunk this would look like  
onference has been stopped. | eval total\_hours=round(Duration/3600, 3) | eval cost=round(total\_hours\*$kostenfaktor$,3) | chart sum(cost) as Cost by Service\_tag

---

<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:** [March 28, 2018, 4:47pm UTC](https://discuss.elastic.co/t/elastic-search-output-piping-similar-to-splunk/121898/2 "2018-03-28T16:47:16Z")

</div>

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