# How to add a filter name to cloudWatchLog using the serverless framework?

**URL:** <https://forum.serverless.com/t/how-to-add-a-filter-name-to-cloudwatchlog-using-the-serverless-framework/13873>\
**Category:** Serverless Framework\
**Tags:** aws, lambda\
**Created:** [January 27, 2021, 2:57am UTC](https://forum.serverless.com/t/how-to-add-a-filter-name-to-cloudwatchlog-using-the-serverless-framework/13873 "2021-01-27T02:57:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gautham](https://avatars.discourse-cdn.com/v4/letter/g/ac91a4/32.png) [@gautham](https://forum.serverless.com/u/gautham)\
**Post date:** [January 27, 2021, 2:57am UTC](https://forum.serverless.com/t/how-to-add-a-filter-name-to-cloudwatchlog-using-the-serverless-framework/13873/1 "2021-01-27T02:57:50Z")

</div>

The cloudWatch filter name picks it by its random name on the deployment.

- cloudwatchLog:  
logGroup: ‘/aws/lambda/hello-world’  
filterName: ‘hello-world’
- cloudwatchLog:  
logGroup: ‘/aws/lambda/hello-world-python’  
filterName: ‘hello-world-python’

 ![Screen Shot 2021-01-26 at 9.45.16 PM](https://canada1.discourse-cdn.com/flex036/uploads/serverless/original/2X/c/cb53514ecb5d04cf49e9d87675bba03db24c5de0.png)

---

<div class="post-metadata">

**Author:** ![gautham](https://avatars.discourse-cdn.com/v4/letter/g/ac91a4/32.png) [@gautham](https://forum.serverless.com/u/gautham)\
**Post date:** [January 27, 2021, 3:00am UTC](https://forum.serverless.com/t/how-to-add-a-filter-name-to-cloudwatchlog-using-the-serverless-framework/13873/2 "2021-01-27T03:00:02Z")

</div>

Another screenshot

![Screen Shot 2021-01-26 at 9.44.09 PM](https://canada1.discourse-cdn.com/flex036/uploads/serverless/original/2X/8/8aad949634244db50ebfbec9219240b12e5c1897.png)
