26 Aug 2025
03:51 PM
- last edited on
28 Aug 2025
01:29 PM
by
Ana_Kuzmenchuk
Log content:
"A user account was locked out.
"
--------------------------------------------
I'm using this DQL but not getting the expected results:
fetch logs
| filter contains(content, "A user account was locked out")
| parse content, "LD 'Account That Was Locked Out:' LD 'Account Name:' LD:locked_out_account_name"
| fields timestamp, locked_out_account_name, content
----------------------------------------------
Solved! Go to Solution.
26 Aug 2025 04:17 PM - edited 26 Aug 2025 04:17 PM
Hi,
I was testing your DPL and I think the solution would be to replace the first two 'LD' with 'DATA', so it would look like this:
DATA 'Account That Was Locked Out:' DATA 'Account Name:' LD:locked_out_account_name
Here’s documentation explaining why 'DATA' should be used in this case: https://docs.dynatrace.com/docs/shortlink/dpl-lines-strings#multiline-data
26 Aug 2025 04:18 PM
It worked! Thank you.
29 Aug 2025 07:23 PM
Thanks a lot! 🙂 Until now I thought that DATA and LD were the same (that’s why I was only using LD—it’s shorter). Also, whenever I needed a new line, I was always adding \n ... 😀