Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试图在我的 IIS 日志中使用 LogParser.exe 查找 LONG UserAgent 字符串。此示例搜索其中包含字符串“poo”的条目。
LogParser.exe -i:IISW3C "SELECT COUNT(cs(User-Agent)) AS Client FROM *.log WHERE cs(User-Agent) LIKE '%poo%'"
我想说“有多少条目的用户代理比'x'长”。
好吧,看起来我回答了我自己的问题。
LogParser.exe -i:IISW3C "SELECT COUNT(cs(User-Agent)) AS Client FROM *.log WHERE STRLEN(cs(User-Agent)) > 100"