<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.iis.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:cs="http://blogs.iis.net/"><channel><title>Input Formats</title><link>http://forums.iis.net/1141.aspx</link><description>Discussion of input formats such as ADS, BIN, COM, CSV, TSV, ETW, EVT, FS, HTTPERR, IIS, IISODBC, IISW3C, NCSA, NETMON, REG, TEXTWORD, TEXTLINE, URLSCAN, and W3C</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: TEXTLINE: &lt;CR&gt;&lt;LF&gt; and just plain &lt;CR&gt;</title><link>http://forums.iis.net/thread/1882611.aspx</link><pubDate>Wed, 22 Oct 2008 10:05:44 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1882611</guid><dc:creator>yellowdog.dave</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1882611.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1141&amp;PostID=1882611</wfw:commentRss><description>Hi Brink 

Then you may want to just do the replace_str I described in my previous post as a pre-process and then take that as input to another logparser. 

Cheers, Dave</description></item><item><title>Re: TEXTLINE: &lt;CR&gt;&lt;LF&gt; and just plain &lt;CR&gt;</title><link>http://forums.iis.net/thread/1882531.aspx</link><pubDate>Tue, 21 Oct 2008 14:05:38 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1882531</guid><dc:creator>brinkcm</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1882531.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1141&amp;PostID=1882531</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Any thoughts? If need be I can pre-process the logs before parsing them.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: TEXTLINE: &lt;CR&gt;&lt;LF&gt; and just plain &lt;CR&gt;</title><link>http://forums.iis.net/thread/1881983.aspx</link><pubDate>Tue, 14 Oct 2008 12:01:18 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1881983</guid><dc:creator>yellowdog.dave</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1881983.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1141&amp;PostID=1881983</wfw:commentRss><description>&lt;p&gt;Hi Brink,&amp;nbsp;&lt;/p&gt;&lt;p&gt;I&amp;#39;ve just been relooking this and sorry, I messed that one up, I inverted my CR and LF, which then worked for me. The post above will not solve your problem - I am still trying to see what I can do. &lt;/p&gt;&lt;p&gt;Cheers, Dave&amp;nbsp; &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: TEXTLINE: &lt;CR&gt;&lt;LF&gt; and just plain &lt;CR&gt;</title><link>http://forums.iis.net/thread/1881959.aspx</link><pubDate>Tue, 14 Oct 2008 07:12:33 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1881959</guid><dc:creator>yellowdog.dave</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1881959.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1141&amp;PostID=1881959</wfw:commentRss><description>&lt;p&gt;Hi Brink,&amp;nbsp;&lt;/p&gt;&lt;p&gt;I cannot replicate this behaviour on my system, I created a file exactly as you described and I get all the lines in a straight select from it. &lt;/p&gt;&lt;p&gt;My file looks like this - below if you copy and paste this in a HEX editor you will note the setup;&lt;/p&gt;&lt;p&gt;Text&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Text1&lt;br /&gt;&lt;br /&gt;A straight forward select returns as follows;&lt;/p&gt;&lt;p&gt;C:\projects\logparser&amp;gt;logparser &amp;quot;select * from crlf.txt&amp;quot;&lt;br /&gt;WARNING: Input format not specified - using TEXTLINE input format.&lt;br /&gt;LogFilename&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Index Text&lt;br /&gt;------------------------------ ----- -----&lt;br /&gt;C:\projects\logparser\crlf.txt 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Text&lt;br /&gt;C:\projects\logparser\crlf.txt 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&lt;br /&gt;C:\projects\logparser\crlf.txt 3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&lt;br /&gt;C:\projects\logparser\crlf.txt 4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&lt;br /&gt;C:\projects\logparser\crlf.txt 5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Text1&lt;br /&gt;&lt;br /&gt;Statistics:&lt;br /&gt;-----------&lt;br /&gt;Elements processed: 5&lt;br /&gt;Elements output:&amp;nbsp;&amp;nbsp;&amp;nbsp; 5&lt;br /&gt;Execution time:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.06 seconds&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;I did in another post note that I had similar different behaviour on a TSV file to someone else with the TAB characters - maybe something to do with my O/S or locale etc? I will look further into this. &lt;/p&gt;&lt;p&gt;You may want to try this as a workaround at the moment and see if it works for you.This does an inline manipulation of the unicode characters for you - although you will have to deal with
the fact that logparser represents null lines with a - character.&lt;/p&gt;&lt;p&gt;logparser &amp;quot;select replace_str(replace_str(text,&amp;#39;\u000d&amp;#39;,&amp;#39;&amp;#39;),&amp;#39;\u000a&amp;#39;,&amp;#39;\u000a\000d&amp;#39;) as Tex from crlf.txt&amp;quot; -q:on -i:textline&lt;br /&gt;&lt;/p&gt;&lt;p&gt;This does an inline replace - although you will have to deal with the fact that logparser represents null lines with a - character.&lt;/p&gt;&lt;p&gt;If you can give an actual snippet from your log and what exactly you are trying to achieve, we will look into it.&amp;nbsp;&lt;/p&gt;&lt;p&gt;Hope this helps.&amp;nbsp;&lt;/p&gt;&lt;p&gt;Cheers, Dave&amp;nbsp; &lt;br /&gt;&lt;/p&gt;</description></item><item><title>TEXTLINE: &lt;CR&gt;&lt;LF&gt; and just plain &lt;CR&gt;</title><link>http://forums.iis.net/thread/1881914.aspx</link><pubDate>Mon, 13 Oct 2008 18:10:29 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1881914</guid><dc:creator>brinkcm</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1881914.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1141&amp;PostID=1881914</wfw:commentRss><description>&lt;p&gt;Sorry if this comes across odd, I can&amp;#39;t figure out this text editor.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Is there any way to change the delimiting character using TEXTLINE? For instance, the text file has:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Text&amp;lt;CR&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;CR&amp;gt;&amp;lt;LF&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;CR&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;CR&amp;gt;&amp;lt;LF&amp;gt;&lt;/p&gt;&lt;p&gt;More text&amp;lt;CR&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Notepad and Logparser show one blank line between the two lines, but a few editors I use show them as three. I don&amp;#39;t think Logparser&amp;#39;s doing it wrong, but I&amp;#39;d like to be able to change how it treats those characters. Should I run the text file through some utility that converts CR/LFs to something else? Or just the CRs? I proudly label myself a geek, but I have to admit I&amp;#39;ve never played with CR/LF much beyond stripping or inserting them en masse via text editor. I can&amp;#39;t alter what&amp;#39;s in the log file so I need to work around it. I&amp;#39;m comparing one line to another (ie, if X then return the line 6 lines above).&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks all.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;EDIT: Found this in the patent submission. Yay for Google!&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;br /&gt;http://www.freepatentsonline.com/y2004/0254919.html&amp;nbsp;&lt;/p&gt;&lt;p&gt;[0137] TEXTLINE: The Text field of this input data format is
represented by any single line (separated by CRLF or CR) in the text
file.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;If I have CRLF, CR, CRLF it should by this web page be processing them as three blank lines. Bug? Misinterpretation?&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>