# Log Processing CASE WHEN THEN ELSE END Documentation

**URL:** <https://community.dynatrace.com/t/log-processing-case-when-then-else-end-documentation/48187>\
**Category:** Logs\
**Tags:** log-processing, dpl, logs\
**Created:** [October 7, 2024, 2:49pm UTC](https://community.dynatrace.com/t/log-processing-case-when-then-else-end-documentation/48187 "2024-10-07T14:49:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![36Krazyfists](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/36krazyfists/32/37434_2.png) [@36Krazyfists](https://community.dynatrace.com/u/36Krazyfists)\
**Post date:** [October 7, 2024, 2:49pm UTC](https://community.dynatrace.com/t/log-processing-case-when-then-else-end-documentation/48187/1 "2024-10-07T14:49:42Z")

</div>

If you install the F5 Extension it creates a Log Processing rule called **F5 Traps Processing** and in this rule it has **CASE** statements.&nbsp; A lot of them…

The problem is, how’d they know how to use those?

I’ve searched and searched and nowhere in the documentation can I find any reference to CASE statements as being a valid function to use.

Even the **IF** ,&nbsp; **IF\_THEN** , **IF\_THEN\_ELSE** statements on the **Log processing functions** documentation is kind of hidden under an obscure term known as “ **Flow-control** ” (despite nearly every other single function being clearly listed in the right-hand bookmarks list).

 ![36Krazyfists_0-1728308496069.png](https://global.discourse-cdn.com/dynatrace/original/3X/9/4/946a6f9beb79487c113ea5aeebd1a10e91a1fe56.png)

But I digress…

As you can see in this screenshot:

 ![36Krazyfists_3-1728308667311.png](https://global.discourse-cdn.com/dynatrace/original/2X/2/27df84e3d8a5bf7aee77a4ed628e909e036851c1.png)

This rule extensively utilizes the **CASE** statement yet I don’t know how they knew to do that nor can I find any documentation on it myself…

Anybody got a link to the docs for this, or is this just some old deprecated function that is going away but still works?

---

<div class="post-metadata">

**Author:** ![jaume\_reverte](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/jaume_reverte/32/1479_2.png) [@jaume\_reverte](https://community.dynatrace.com/u/jaume_reverte)\
**Post date:** [October 8, 2024, 3:15pm UTC](https://community.dynatrace.com/t/log-processing-case-when-then-else-end-documentation/48187/2 "2024-10-08T15:15:26Z")

</div>

Hello&nbsp;36Krazyfists,

It’s true that it is not documented. I informed internally about it, and I’ll let you know when I have an update.

Thank you for the spot!

Hope you a good monitoring!

---

<div class="post-metadata">

**Author:** ![SG88](https://avatars.discourse-cdn.com/v4/letter/s/eada6e/32.png) [@SG88](https://community.dynatrace.com/u/SG88)\
**Post date:** [October 10, 2024, 3:39am UTC](https://community.dynatrace.com/t/log-processing-case-when-then-else-end-documentation/48187/3 "2024-10-10T03:39:35Z")

</div>

Thanks for posting this up - just reconfigured some of my processing rules to make them a bit easier to follow.

Updated documentation would be great for future reference, and there might be other functions we can use too!
