# Include logs with custom logs

**URL:** <https://discuss.elastic.co/t/include-logs-with-custom-logs/340231>\
**Category:** Elastic Agent\
**Created:** [August 7, 2023, 7:01am UTC](https://discuss.elastic.co/t/include-logs-with-custom-logs/340231 "2023-08-07T07:01:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shubham.s](https://avatars.discourse-cdn.com/v4/letter/s/ac91a4/32.png) [@shubham.s](https://discuss.elastic.co/u/shubham.s)\
**Post date:** [August 7, 2023, 7:01am UTC](https://discuss.elastic.co/t/include-logs-with-custom-logs/340231/1 "2023-08-07T07:01:33Z")

</div>

Hi,

I have successfully integrated logs with the help of elastic-agent and integrated custom logs. Now I want elastic agent to process only logs from the file which contains specific keyword. I want elastic agent to exclude all logs except which contains the keyword.

Thanks

---

<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:** [September 4, 2023, 7:02am UTC](https://discuss.elastic.co/t/include-logs-with-custom-logs/340231/2 "2023-09-04T07:02:01Z")

</div>

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