# Logstash / Enrich processor event sample rate

**URL:** <https://discuss.elastic.co/t/logstash-enrich-processor-event-sample-rate/257635>\
**Category:** Logstash\
**Created:** [December 4, 2020, 9:18am UTC](https://discuss.elastic.co/t/logstash-enrich-processor-event-sample-rate/257635 "2020-12-04T09:18:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fran6ssl](https://avatars.discourse-cdn.com/v4/letter/f/ce7236/32.png) [@fran6ssl](https://discuss.elastic.co/u/fran6ssl)\
**Post date:** [December 4, 2020, 9:18am UTC](https://discuss.elastic.co/t/logstash-enrich-processor-event-sample-rate/257635/1 "2020-12-04T09:18:14Z")

</div>

Hi,

I have multiple CSVs files with sensors data. Each data file holds the timestamp and the numeric value of the sensor at that time. Each sensor has a different sample rate.

For a exemple we have a temperature sensor sampling at 1 event per second:

timestamp;value  
1607073048000;13.3  
1607073049000;13.5  
1607073050000;13.2  
....

I am looking for the way to ingest data at a given sample rate. Let's say 2 event per second.  
With the data shown above I would need to "duplicate" data in order to have 2 events per second.  
Is there a way to do that with logstash or with enrich processors ?

How can I decide when to do interpolation or not ?

Thank you for your help

---

<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:** [January 1, 2021, 9:18am UTC](https://discuss.elastic.co/t/logstash-enrich-processor-event-sample-rate/257635/2 "2021-01-01T09:18:27Z")

</div>

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