<div dir="ltr">Thank you! I've got it all set up now, thanks for the pointer to <span style="font-size:12.8px">$</span><span style="font-size:12.8px">EscapeControlCharactersOnRecei</span><span style="font-size:12.8px">ve</span></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 25, 2016 at 6:25 PM, Ekaterina Kukushkina <span dir="ltr"><<a href="mailto:ek@nginx.com" target="_blank">ek@nginx.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello CJ,<br>
<span class=""><br>
<br>
> On 26 Feb 2016, at 00:50, CJ Ess <<a href="mailto:zxcvbn4038@gmail.com">zxcvbn4038@gmail.com</a>> wrote:<br>
><br>
> I would really like to output my nginx access log to syslog in a tab delimited format.<br>
><br>
> I'm using the latest nginx and rsyslogd 7.2.5<br>
><br>
> I haven't found an example of doing this, I'm wondering if/how to add tabs to the format in the log_format directive<br>
<br>
</span>Just use '\t' instead of ' ' in your log_format.<br>
For example:<br>
log_format tabbed '$remote_addr\t-\t$remote_user\t[$time_local]\t"$request"';<br>
<span class=""><br>
><br>
> And also if there is anything I need to do to syslogd to pass through the tab characters.<br>
<br>
</span>By default, rsyslog convert control characters to their ASCII values (#011 in case<br>
of Tab). You may prevent this behavior by setting $EscapeControlCharactersOnReceive<br>
to off.<br>
<br>
><br>
> Any help appreciated!<br>
><br>
<br>
--<br>
Ekaterina Kukushkina<br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" rel="noreferrer" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</blockquote></div><br></div>