# Mutate or grok product/price that keep changing everyday

**URL:** <https://discuss.elastic.co/t/mutate-or-grok-product-price-that-keep-changing-everyday/300134>\
**Category:** Logstash\
**Created:** [March 20, 2022, 3:02pm UTC](https://discuss.elastic.co/t/mutate-or-grok-product-price-that-keep-changing-everyday/300134 "2022-03-20T15:02:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![travlest](https://avatars.discourse-cdn.com/v4/letter/t/e274bd/32.png) [@travlest](https://discuss.elastic.co/u/travlest)\
**Post date:** [March 20, 2022, 3:02pm UTC](https://discuss.elastic.co/t/mutate-or-grok-product-price-that-keep-changing-everyday/300134/1 "2022-03-20T15:02:01Z")

</div>

Hi, I have a question about logstash for CSV.

My situation is, I have multiple CSV files being uploaded into logstash. the log will continue to update for product or price but the domain will remain the same. my question is, how can I filter, mutate or add something to show on kibana what is the **product or IP** that **have been changing for the last 24hours** for _the metrics lens_ or any others _related lens._

I have tried to add new files like "date\_added" and filter it by that field, but it doesn't seem to work. Any idea or suggestion on how can I make it happen?

```auto
  mutate {
    add_field => { "Date_Insert" => "%{@timestamp}" }
 }

```

> day 1  
> domain,product,ip  
> [url.com](http://url.com),ball,192.168.1.1  
> [url2.com](http://url2.com),laptop192.168.1.2  
> [url3.com](http://url3.com),chair,192.168.1.3
> 
> day 2  
> domain,product,price  
> [url.com](http://url.com),ball,192.168.1.5  
> [url2.com](http://url2.com),laptop,192.168.1.6  
> [url3.com](http://url3.com),chair,192.168.1.7
> 
> day 2  
> domain,product,price  
> [url.com](http://url.com),laptop,192.168.1.2  
> [url2.com](http://url2.com),chair,192.168.1.3  
> [url3.com](http://url3.com),ball,removed

p/s: I got 2 different CSV files being uploaded into logstash.

Thank you

---

<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:** [April 17, 2022, 3:03pm UTC](https://discuss.elastic.co/t/mutate-or-grok-product-price-that-keep-changing-everyday/300134/2 "2022-04-17T15:03:00Z")

</div>

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