# Searching Logs for SNMP trap content

**URL:** <https://community.dynatrace.com/t/searching-logs-for-snmp-trap-content/40968>\
**Category:** Logs\
**Tags:** snmp, log-monitoring-class\
**Created:** [August 1, 2023, 2:44pm UTC](https://community.dynatrace.com/t/searching-logs-for-snmp-trap-content/40968 "2023-08-01T14:44:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [August 1, 2023, 2:44pm UTC](https://community.dynatrace.com/t/searching-logs-for-snmp-trap-content/40968/1 "2023-08-01T14:44:21Z")

</div>

SNMP traps are available as LOGs in Dynatrace. Searching SNMP traps seems to be an issue, as searching in content doesn’t match a lot of strings I’m seeing in OIDs.

How have you been able to search for specific content inside SNMP traps? BTW, this is in Managed, a non Grail environment.

---

<div class="post-metadata">

**Author:** ![jegron](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/jegron/32/12797_2.png) [@jegron](https://community.dynatrace.com/u/jegron)\
**Post date:** [August 8, 2023, 8:29am UTC](https://community.dynatrace.com/t/searching-logs-for-snmp-trap-content/40968/2 "2023-08-08T08:29:43Z")

</div>

Hi&nbsp;[@AntonioSousa](https://community.dynatrace.com/user/17213)&nbsp;! Here are my tips for the “Log monitoring classic” that works with Managed :

- First you can rename your field if it contains “::” :

 ![jegron_4-1691483233583.png](https://global.discourse-cdn.com/dynatrace/original/3X/6/6/66a7f366567cdf5ea2a26898ca863842d52ebb16.png)

- Then you can to add your field in a custom log attribute :

 ![jegron_0-1691483043056.png](https://global.discourse-cdn.com/dynatrace/original/2X/d/ddb6c7e024d65ea28d62fd2f6c980f8a543f942b.png)

> **[Log custom attributes](https://docs.dynatrace.com/docs/analyze-explore-automate/log-monitoring/analyze-log-data/log-custom-attributes-classic)**
>
> Create and use custom attributes during log data ingestion.

- Finally you can search into it :

 ![jegron_1-1691483083129.png](https://global.discourse-cdn.com/dynatrace/original/2X/1/18fed40dda16a93f817c787e3334234074bbe1f7.png)

 ![jegron_2-1691483105842.png](https://global.discourse-cdn.com/dynatrace/original/3X/3/c/3c660324fcc962797fb63936d3160b5692838a59.png)

Hope it helps.

---

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [September 20, 2023, 7:56pm UTC](https://community.dynatrace.com/t/searching-logs-for-snmp-trap-content/40968/3 "2023-09-20T19:56:31Z")

</div>

[@jegron](https://community.dynatrace.com/user/47129),

This is an exceptional tip!I hadn’t had the time to try it out, but worked flawlessly!

I believe you should post it in the Tips & Tricks zone, so other Community users might benefit.

BTW, I was intrigued about the first step: it might be because “::” are not permitted as keys, or even caps letters being present. Do you have a confirmation why it is needed? Because if it is, I believe it is structural, and not even a Product Idea would be applicable here.
