In the past we've always logged all of our applications to SQL. We've used a variety of ways to do that, including home-grown and now Microsoft Enterprise Library Logging Application Block (LAB). Log4Net is also in the picture. We have LAB set to crank out files to a rolling file appender. So, pretty standard, each day, new file. The entries look like this currently:
-----
Timestamp: 9/22/2009 4:50:04 PM Message: MPP LAB says the app is starting. Category: General Priority: -1 EventId: 1 Severity: Information Title: Machine: VDEVAPP2 Application Domain: /LM/W3SVC/1/ROOT-4-128981118015194687 Process Id: 2724 Process Name: c:\windows\system32\inetsrv\w3wp.exe Win32 Thread Id: 4052 Thread Name: Extended Properties:
-----
Easy enough to have Splunk read these files, but obviously we want to have every line (Fieldname:value) parsed as fields in Splunk. A complete entry is bracketed by the ----- lines. How do I go about this?
... View more