# Renaming log field entry that starts with a certain prefix (Logs Classic)

**URL:** <https://community.dynatrace.com/t/renaming-log-field-entry-that-starts-with-a-certain-prefix-logs-classic/48878>\
**Category:** Logs\
**Tags:** log-processing, snmp, log-monitoring-class\
**Created:** [November 13, 2024, 11:02pm UTC](https://community.dynatrace.com/t/renaming-log-field-entry-that-starts-with-a-certain-prefix-logs-classic/48878 "2024-11-13T23:02:38Z")\
**Posts on this page:** 2\
**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:** [November 13, 2024, 11:02pm UTC](https://community.dynatrace.com/t/renaming-log-field-entry-that-starts-with-a-certain-prefix-logs-classic/48878/1 "2024-11-13T23:02:38Z")

</div>

I have SNMP traps in logs. In this case, they are in a Managed environment.

A sample log contains for instance:

```markup
"CISCO-SMI::ciscoMgmt.41.1.2.3.1.3.300109": "5",

```

Now, the “300109” part is variable. I want to obtain the “5” in this case.

How would the processing definition be made in this case?

---

<div class="post-metadata">

**Author:** ![DwayneWhite](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/dwaynewhite/32/30210_2.png) [@DwayneWhite](https://community.dynatrace.com/u/DwayneWhite)\
**Post date:** [December 6, 2024, 12:21pm UTC](https://community.dynatrace.com/t/renaming-log-field-entry-that-starts-with-a-certain-prefix-logs-classic/48878/2 "2024-12-06T12:21:57Z")

</div>

You can try this

data record(content=“”““CISCO-SMI::ciscoMgmt.41.1.2.3.1.3.300109”: “5”,”“”)  
| parse content, “”"  
DQS:dq\_string LD  
DQS:magicnumber  
“”"

 ![DwayneWhite_0-1733487656985.png](https://global.discourse-cdn.com/dynatrace/original/2X/2/2f81362b1e8b540967d1bc789e24fdde913705c8.png)
