# Splitting Data

**URL:** <https://discuss.elastic.co/t/splitting-data/270965>\
**Category:** Logstash\
**Created:** [April 22, 2021, 1:40pm UTC](https://discuss.elastic.co/t/splitting-data/270965 "2021-04-22T13:40:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![spike83](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spike83/32/47036_2.png) [@spike83](https://discuss.elastic.co/u/spike83)\
**Post date:** [April 22, 2021, 1:40pm UTC](https://discuss.elastic.co/t/splitting-data/270965/1 "2021-04-22T13:40:33Z")

</div>

Hi,

I'm consuming yum.log with filebeat, this is great but I want to be able to manipulate the data as it comes in to allow me to filter better and visulise the data.

At the moment a message looks like this

`"message": "Apr 19 15:13:42 Updated: ec2-utils-0.7-43.5.amzn1.noarch",`

I would liek to be able to pull out the date (as a timestamp), whether it was Updated/Installed and the package name.

Is this possible?

Thanks

---

<div class="post-metadata">

**Author:** ![spike83](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spike83/32/47036_2.png) [@spike83](https://discuss.elastic.co/u/spike83)\
**Post date:** [April 22, 2021, 2:17pm UTC](https://discuss.elastic.co/t/splitting-data/270965/2 "2021-04-22T14:17:48Z")

</div>

Ok, im new to grok patterns.

`%{YUMTIMESTAMP:timestamp} %{NOTSPACE:state} %{NOTSPACE:package}`

YUMTIMESTAMP being a customer pattern `YUMTIMESTAMP %{MONTH} +%{MONTHDAY} %{TIME}`

gave me the result I was looking for:

```auto
{
  "package": "ec2-utils-0.7-43.5.amzn1.noarch",
  "state": "Updated:",
  "timestamp": "Apr 19 15:13:42"
}

```

---

<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:** [May 20, 2021, 2:17pm UTC](https://discuss.elastic.co/t/splitting-data/270965/3 "2021-05-20T14:17:56Z")

</div>

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