# What Grok pattern will be?

**URL:** https://discuss.elastic.co/t/what-grok-pattern-will-be/252340
**Category:** Logstash
**Created:** [October 16, 2020, 11:40am UTC](https://discuss.elastic.co/t/what-grok-pattern-will-be/252340 "2020-10-16T11:40:15Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Bhavin\_Varsur](https://avatars.discourse-cdn.com/v4/letter/b/ecccb3/32.png) [@Bhavin\_Varsur](https://discuss.elastic.co/u/Bhavin_Varsur)
#### Post date: [October 16, 2020, 11:40am UTC](https://discuss.elastic.co/t/what-grok-pattern-will-be/252340/1 "2020-10-16T11:40:15Z")

</div>

what should grok pattern will be of this log?

**log sample**  
`2020-10-16 16:53:17.4009 [57244] ERROR Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware 192.168.43.244 bvarsur@gmail.com http://localhost/Transactions POST 1dfae3d2-258d-42d4-802e-c39a751574e3 An unhandled exception has occurred while executing the request.FinanceAPI.Execptions.InvalidDataException`

**log layout**  
`${longdate} [${processid}] ${uppercase:${level}} ${logger} ${aspnet-Request-Ip} ${aspnet-item-variable=userEmail} ${aspnet-request-url} ${aspnet-request-method} ${aspnet-item:variable=UserId} ${message}${exception:format=tostring,Stacktrace}"`

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [November 13, 2020, 11:40am UTC](https://discuss.elastic.co/t/what-grok-pattern-will-be/252340/2 "2020-11-13T11:40:24Z")

</div>

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