# Search logs for sensitive data

**URL:** <https://discuss.elastic.co/t/search-logs-for-sensitive-data/329734>\
**Category:** Elastic Observability\
**Created:** [April 11, 2023, 10:43am UTC](https://discuss.elastic.co/t/search-logs-for-sensitive-data/329734 "2023-04-11T10:43:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cejs](https://avatars.discourse-cdn.com/v4/letter/c/45deac/32.png) [@Cejs](https://discuss.elastic.co/u/Cejs)\
**Post date:** [April 11, 2023, 10:43am UTC](https://discuss.elastic.co/t/search-logs-for-sensitive-data/329734/1 "2023-04-11T10:43:22Z")

</div>

Hi,

I am working on finding logs with potentially sensitive content like personal data and I would like to ask for your experience.

Do you guys have some source I can use to define patterns for regexes? I have only some simple ones like: personal info, account and card numbers (banking environment).

I am implementing those as regexp querry within Watcher, is there any advice or good practice?

Thank you!
