logwizard icon indicating copy to clipboard operation
logwizard copied to clipboard

Using tabulator as a field separator

Open emeied opened this issue 9 years ago • 3 comments

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

emeied avatar Jun 21 '16 15:06 emeied

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

jtorjo avatar Jul 18 '16 09:07 jtorjo

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

smygarn avatar Aug 26 '16 06:08 smygarn

$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");

LukeOwlclaw avatar Dec 20 '16 08:12 LukeOwlclaw