Error parsing query: The specified FROM-ENTITY "<1>" is invalid [The filename, directory name, or volume label syntax is incorrect.]
<1>
is working when use in sql in Log Parser 2.2, the folder is exist.
Query is working if i following article - LogParser DataProvider for ADO.NE
try
{
ILogRecord rowLP = null;
ILogRecordset rsLP = null;
LogQueryClass logQuery = new LogQueryClass();
COMW3CInputContextClass comW3CInputContext = new COMW3CInputContextClass();
string strSQL = @"SELECT " +
@"COUNT(*) AS [Requests], " +
@"DIV(DIV(SUM(cs-bytes), 1024), 1024) AS [MBytes received], " +
@"DIV(DIV(SUM(sc-bytes), 1024), 1024) AS [MBytes sent], " +
@"c-ip AS [IP Address], cs(User-Agent) AS [User agent], " +
@"MAX(date) AS [Last visit] " +
@"FROM <1> " +
@"GROUP BY [IP Address], [User agent] " +
@"ORDER BY [Requests] DESC";
// run the query against W3C log
rsLP = logQuery.Execute(strSQL, comW3CInputContext);
rowLP = rsLP.getRecord();
}
catch (System.Runtime.InteropServices.COMException exc)
{
Console.WriteLine("Unexpected error: " + exc.Message);
}