Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using tabulator as a field separator #92

Open
emeied opened this issue Jun 21, 2016 · 3 comments
Open

Using tabulator as a field separator #92

emeied opened this issue Jun 21, 2016 · 3 comments

Comments

@emeied
Copy link

emeied commented Jun 21, 2016

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
Copy link
Owner

jtorjo commented Jul 18, 2016

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

@smygarn
Copy link

smygarn commented Aug 26, 2016

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

@LukeOwlclaw
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants