ayush choudhary
ayush choudhary

Reputation: 51

LogParser in C# Job

I have written one job in c# to read through iislogs and push the data to DB. We are reading the logs incrementally but we ran into performance issue.

Our log files had more than 300k of lines and job kept on running. I installed Log parser and we can push the Data to DB via Logparser very quickly but is there a way by which we can call the logparser from C# Job to push iis logs to DB directly.

Upvotes: 2

Views: 591

Answers (1)

PhilS
PhilS

Reputation: 624

You can call LogParser from you code by calling Process.Start()

See Run an exe from C# code

Upvotes: 1

Related Questions