# How to parse functionbeat cloudwatch logs

**URL:** <https://discuss.elastic.co/t/how-to-parse-functionbeat-cloudwatch-logs/250765>\
**Category:** Beats\
**Tags:** functionbeat\
**Created:** [October 2, 2020, 8:57am UTC](https://discuss.elastic.co/t/how-to-parse-functionbeat-cloudwatch-logs/250765 "2020-10-02T08:57:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kay\_Khan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kay_khan/32/45028_2.png) [@Kay\_Khan](https://discuss.elastic.co/u/Kay_Khan)\
**Post date:** [October 2, 2020, 8:57am UTC](https://discuss.elastic.co/t/how-to-parse-functionbeat-cloudwatch-logs/250765/1 "2020-10-02T08:57:34Z")

</div>

I have recently setup functionbeat to ship aws cloudwatch logs to elasticsearch.

How do i format the message into multiple fields; timestamp, log\_id, log\_level and the actual message.

I want to parse the message fields. So that it becomes log\_timestamp, log\_id, level and the object thats remaining is the message.

[![enter image description here](https://i.stack.imgur.com/VRVaI.png)](https://i.stack.imgur.com/VRVaI.png)

**expected** :

```
{
...
log_timestamp: "2020-10-02T08:45:37.404Z",
log_id: "77b5e840-0269-4877-99cb-dbdfb4b97094",
level: "INFO",
message: {
  event: 'INSERT',
  payload: {
    person_id: 'd6db17f9-f366-46b1-b5bd-127aebb05c2c',
    game_id: 'a0038f96-b268-415d-bb12-1738f46e377e'
  }
}
}

```

Is there something prebuilt that already does this. i saw this in the documentation [https://www.elastic.co/guide/en/beats/functionbeat/current/functionbeat-installation-configuration.html#setup-assets](https://www.elastic.co/guide/en/beats/functionbeat/current/functionbeat-installation-configuration.html#setup-assets) but not sure what it is and it didint change anyhthing.

---

<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:** [October 30, 2020, 10:57am UTC](https://discuss.elastic.co/t/how-to-parse-functionbeat-cloudwatch-logs/250765/2 "2020-10-30T10:57:46Z")

</div>

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