# How to filter out security scans from OneAgent data

**URL:** <https://community.dynatrace.com/t/how-to-filter-out-security-scans-from-oneagent-data/21194>\
**Category:** Open Q&A\
**Tags:** data-privacy-and-product-security, oneagent, request-attributes\
**Created:** [January 13, 2021, 11:25am UTC](https://community.dynatrace.com/t/how-to-filter-out-security-scans-from-oneagent-data/21194 "2021-01-13T11:25:25Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![kalle\_lahtinen](https://avatars.discourse-cdn.com/v4/letter/k/bb73d2/32.png) [@kalle\_lahtinen](https://community.dynatrace.com/u/kalle_lahtinen)\
**Post date:** [January 13, 2021, 11:25am UTC](https://community.dynatrace.com/t/how-to-filter-out-security-scans-from-oneagent-data/21194/1 "2021-01-13T11:25:25Z")

</div>

Hi,

“We scan our site with several security tool such as Whitehat. Since these tool are sending bad request it causes our error rate to spike. I would like to either segment this traffic (based on IP address) or filter it out completely. What’s the best approach to acomplish this segmentation/filtering?”

The response was for AppMon & Business Transactions, but I wonder what would be the best approach for OneAgent? What I’ve done so far is create a request attribute based on the UserAgent string and save it if it ends with WhiteHat Security. However this just allows me to easily filter the “bad” data, but not really get rid of it. Is there anything more I could do with this - I suppose we can’t just drop requests with a certain UserAgent and/or request attribute value?

To handle the false positive alerts, I’ve muted those malformed requests, which appears to initially help. Of course it’s a chore to do manually, and it’s also not a future-proof solution because it looks like the request sets are changing in time. So it’s basically a game of cat and mouse, trying to keep muting those security scans. The best option would be if I can just drop that data altogether.

---

_[View the full topic](https://community.dynatrace.com/t/how-to-filter-out-security-scans-from-oneagent-data/21194)._
