Monday, 15 July 2013

c# - Extract data from Log Files of different nature -



c# - Extract data from Log Files of different nature -

i not looking code in specific thought or head start. trying design application user interface in log files can loaded.

these log files of different formats , types. info extracted may vary different files. want have 1 generic application extract info them. thinking of using ai. neural nets, kalman, etc.

sample1

a, b, c, d, e 1, 2, 3, 4, 5 6, 7, 8, 9,10 ,11,12,13,14

in above illustration want extract column d , a. , column d should extracted when column value exists.

basically log files machine generated there no command on formatting.

i have thought of creating application in log file can loaded. required areas highlighted , based on other similar types of log files processed.

any suggestions?

when comes doing "generic" things, best bet utilize interfaces. want utilize design principle ddd. so, want create ilogfile interface. have different implementers of ilogfile interface (an implementer class per log type, format or file). have service (an application or domain service) can work on ilogfile interface extract info , apply rules it.

although cant command format, assuming log file's format predictable.

c# c#-4.0

No comments:

Post a Comment