# DPL Helping with parsing (Locked User, windows event ID 4740)

**URL:** <https://community.dynatrace.com/t/dpl-helping-with-parsing-locked-user-windows-event-id-4740/49515>\
**Category:** Open Q&A\
**Tags:** dql, dpl\
**Created:** [December 30, 2024, 10:50am UTC](https://community.dynatrace.com/t/dpl-helping-with-parsing-locked-user-windows-event-id-4740/49515 "2024-12-30T10:50:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Etienne1](https://avatars.discourse-cdn.com/v4/letter/e/278dde/32.png) [@Etienne1](https://community.dynatrace.com/u/Etienne1)\
**Post date:** [December 30, 2024, 10:50am UTC](https://community.dynatrace.com/t/dpl-helping-with-parsing-locked-user-windows-event-id-4740/49515/1 "2024-12-30T10:50:27Z")

</div>

Hello,

I’m having trouble with my DPL analysis, I would like to obtain these lines only:

(In Account That Was Locked Out)  
**Security ID:**  
**Account Name:**

(In Additional Information)  
**Caller Computer Name:**

Here is the content of the log:

A user account was locked out.

Subject:  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Security ID:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Example1  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Account Name: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Example2$  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Account Domain: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Example3  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Logon ID: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Example4

Account That Was Locked Out:  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Security ID: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Example5  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Account Name:&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Example6

Additional Information:  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Caller Computer Name:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Example7

 ![Content of the log.png](https://global.discourse-cdn.com/dynatrace/original/3X/1/f/1f7c8a6ad901e46e8523c966bcca9eaac835ae8c.png)

Thanks in advance

---

<div class="post-metadata">

**Author:** ![Etienne1](https://avatars.discourse-cdn.com/v4/letter/e/278dde/32.png) [@Etienne1](https://community.dynatrace.com/u/Etienne1)\
**Post date:** [December 30, 2024, 3:54pm UTC](https://community.dynatrace.com/t/dpl-helping-with-parsing-locked-user-windows-event-id-4740/49515/2 "2024-12-30T15:54:15Z")

</div>

I managed to solve the problem, if that helps some people.

**In DPL Architect :**  
DATA “Account That Was Locked Out:” SPACE “Security ID:” LD:Security\_ID EOL SPACE “Account Name:” LD:Account\_Name EOL SPACE “Additional Information:” SPACE “Caller Computer Name:” LD:Caller\_Computer\_Name

**In DQL :**

```auto
fetch logs
| filter matchesValue(winlog.eventid, "4740")
| parse content, """DATA "Account That Was Locked Out:" SPACE "Security ID:" LD:Security_ID EOL SPACE "Account Name:" LD:Account_Name EOL SPACE "Additional Information:" SPACE "Caller Computer Name:" LD:Caller_Computer_Name"""
| fields Security_ID, Account_Name, Caller_Computer_Name

```

 ![Capture d’écran 2024-12-30 165325.png](https://global.discourse-cdn.com/dynatrace/original/2X/2/2e3f3d022cd4f32fdd37fcbf7c347db7b2951c02.png)
