# Log4net parsing in cent os 7

**URL:** <https://discuss.elastic.co/t/log4net-parsing-in-cent-os-7/64178>\
**Category:** Logstash\
**Created:** [October 27, 2016, 6:08pm UTC](https://discuss.elastic.co/t/log4net-parsing-in-cent-os-7/64178 "2016-10-27T18:08:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mmehraban](https://avatars.discourse-cdn.com/v4/letter/m/258eb7/32.png) [@mmehraban](https://discuss.elastic.co/u/mmehraban)\
**Post date:** [October 27, 2016, 6:08pm UTC](https://discuss.elastic.co/t/log4net-parsing-in-cent-os-7/64178/1 "2016-10-27T18:08:21Z")

</div>

Hey guys,I have a log file like this:

2016-10-17 03:20:37,690 [319299] ERROR Global - Unhandled application error  
System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.  
Parameter name: count  
at System.Web.HttpRequest.BinaryRead(Int32 count)  
at Telmetrics.Madison.Core.Helper.WebHelper.ReadRequestDataAsByteArray() in C:\BuildAgent\work\c32ad01eae0d37ff\src\OrderingAndReports\Telmetrics.Madison.Core\Helper\WebHelper.cs:line 27  
at Telmetrics.Madison.Core.Helper.WebHelper.ReadRequestDataAsString() in C:\BuildAgent\work\c32ad01eae0d37ff\src\OrderingAndReports\Telmetrics.Madison.Core\Helper\WebHelper.cs:line 42  
at Telmetrics.Madison.WebApiService.Middleware.Logging.LoggingMiddleware.LogHttpRequest(IOwinRequest request) in C:\BuildAgent\work\c32ad01eae0d37ff\src\OrderingAndReports\Telmetrics.Madison.WebApiService\Middleware\Logging\LoggingMiddleware.cs:line 71  
at Telmetrics.Madison.WebApiService.Middleware.Logging.LoggingMiddleware.d\_\_5.MoveNext() in C:\BuildAgent\work\c32ad01eae0d37ff\src\OrderingAndReports\Telmetrics.Madison.WebApiService\Middleware\Logging\LoggingMiddleware.cs:line 46  
--- End of stack trace from previous location where exception was thrown ---  
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)  
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)  
at Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.IntegratedPipelineContextStage.d\_\_5.MoveNext()  
--- End of stack trace from previous location where exception was thrown ---  
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)  
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)  
at Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.IntegratedPipelineContext.d\_\_2.MoveNext()  
--- End of stack trace from previous location where exception was thrown ---  
at Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.StageAsyncResult.End(IAsyncResult ar)  
at System.Web.HttpApplication.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()  
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Which is log4net log type is this.How can I send this file whit filebeat to logstash and how can I pars this?  
Already I have ELK analyzing syslog files but I don't know how to pars this kind of files.  
any help or suggestion would be appreciated.

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [October 31, 2016, 8:21pm UTC](https://discuss.elastic.co/t/log4net-parsing-in-cent-os-7/64178/2 "2016-10-31T20:21:21Z")

</div>

Log4net has come up in at least one other thread in the past couple of days and I believe some pointers were given.

---

<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:** [July 6, 2017, 4:31am UTC](https://discuss.elastic.co/t/log4net-parsing-in-cent-os-7/64178/3 "2017-07-06T04:31:52Z")

</div>


