- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How to extract password field in the events?
I need to extract " 123456-222245-666565-151063-123456-222365-333111-110110" from below sample event. Any ideas?
==========================
BitLocker Drive Encryption: Configuration Tool version 10.0.15063
Copyright (C) 2013 Microsoft Corporation. All rights reserved.
Computer Name: abcde
Volume C: [dfdf]
All Key Protectors
Numerical Password:
ID: {fjkfjsdfsdjfsj,fhndhg}
Password:
123456-222245-666565-151063-123456-222365-333111-110110
TPM:
ID: {vgdsfsdf3D-33dfdsf44F0-A1EBf9A4B88FFF9A8}
PCR Validation Profile:
0, 2, 4, 11
abcde
Thanks
Kiran
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content


Hi kiran331,
try this:
(?ms)\}\s+Password:\s+(?<Password>.*)TPM
or
| rex "(?ms)\}\s+Password:\s+(?<Password>.*)TPM"
you can test it at https://regex101.com/r/5Wp6Tw/1
Bye.
Giuseppe
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content


Hi kiran331,
try this:
(?ms)\}\s+Password:\s+(?<Password>.*)TPM
or
| rex "(?ms)\}\s+Password:\s+(?<Password>.*)TPM"
you can test it at https://regex101.com/r/5Wp6Tw/1
Bye.
Giuseppe
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@kiran331
your search | rex field=_raw "Password:\s+(?P<password>.+)\s+TPM:
