Logparser uses OWC (only 2003 and earlier...)which is a blessing and a curse. It is a curse since not much is out there on OWC but a blessing in that OWC has a lot of charts! Having said this, logparser has OWC built in, but that should not stop any developer from sending output to a jquery or flash charting application and charting it that way. It is just easier with OWC. After you install the OWC on your server, here is a quick script to see if it works:
COMTSVInputContextClassClass inputFormat = new COMTSVInputContextClassClass();The above code is hacked up and I did not really test it, but should do the trick. I'll start posting more detailed helper classes this week.
chartOuputFormat = new COMChartOutputContextClassClass();
chartOuputFormat.chartType = "ColumnStacked";
string query = "select * from abc.log"
LogQueryClass logQuery = new LogQueryClassClass();
logQuery.ExecuteBatch(query, inputFormat, chartOuputFormat);
No comments:
Post a Comment