Re: Parsing log file using C#
- From: rossum <rossum48@xxxxxxxxxxxx>
- Date: Tue, 08 Apr 2008 21:49:31 +0100
On Tue, 08 Apr 2008 12:10:52 -0700, Prem Parekh wrote:
I need code that can parse data from log file.Have a look at String.Split()
The log is pipe delimited and in following format:
time=2006-11-03 13:13:56| fw=199.23.48.120| user=tjolen| realm=EMEA| roles=Network Connect| src=24.141.197.139| dstname=| duration=| msg=AUT22670: Login succeeded for tjolen/EMEA.
time=2006-11-03 13:14:07| fw=199.23.48.120| user=tjolen| realm=EMEA| roles=Network Connect| src=63.131.197.139| dstname=TUN-VPN| duration=| msg=JAV20021: Connected to EPN port 443
time=2006-11-03 13:16:10| fw=199.23.38.120| user=tjolen| realm=EMEA| roles=Network Connect| src=34.131.127.139| dstname=| duration=| msg=AUT22673: Logout from 24.131.127.139
Purpose is to read from text file and store in sql server database.
Please help!
rossum
.
- References:
- Parsing log file using C#
- From: Prem Parekh
- Parsing log file using C#
- Prev by Date: Re: ListView MouseUp Event
- Next by Date: Re: Design: Custom Exception Usage
- Previous by thread: RE: Parsing log file using C#
- Next by thread: Re: Parsing log file using C#
- Index(es):
Relevant Pages
|