jtorjo / logwizard

Log Wizard - a Log Viewer that is easy and fun to use!
GNU General Public License v3.0
248 stars 32 forks source link

Using tabulator as a field separator #92

Open emeied opened 8 years ago

emeied commented 8 years ago

I try to analyze files from a syslog daemon. It uses tab characters to separate some fields. I got no success to use '\t' as end marker in the log syntax definition.

Here is a sample: Syslog_2016-05-13_rtr.txt

jtorjo commented 8 years ago

Hi, Sorry for the very late reply. Yes, I will look into it ASAP

smygarn commented 8 years ago

Hi, i'm also curious about this. Any headups?

LukeOwlclaw commented 7 years ago

$date[0,'-'] $time['','\t'] $ctx1['','\t'] $ctx2['','\t'] $level['','\t'] $func['','\t'] $msg

I had the same problem. Here my quick hack:

Add on line 40 in inmem_text_reader.cs:

        syntax = syntax.Replace("\\t", "\t");

And on line 118 in text_file_line_by_line.cs:

        syntax_str = syntax_str.Replace("\\t", "\t");