Regular Expression or Grok to extract value

I need Regex or Grok to extract number of miliseconds in below event/message (i.e i need to extract 762 from in [762] Millies ):

2019-07-02 16:56:44.824 [SUBSCRIBER_PROFILE-1115501650-9f7a9309-6bd7-44fb-83ea-2ee0ff37a50d] Response [<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<subscriberProfileResponse>
    <errorCode>99999</errorCode>
    <responseStatus>FAILED</responseStatus>
</subscriberProfileResponse>
] in [762] Millies.

Would something like ^.*in\s\[(.*?)\].*$ work?

Appears to get the expected results when testing on RegExr: https://regexr.com/4hfde

Working properly.Thanks!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.