<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Menlo;
        panose-1:2 11 6 9 3 8 4 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt">Hi, I’m trying to get a valid json formatted log file. I’ve tried several options but none of them seem to work or parse out the data correctly.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Here’s what the syslog-ng config looks like.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:#1E1E1E"><span style="font-size:9.0pt;font-family:Menlo;color:#D4D4D4">@version:3.14<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:#1E1E1E"><span style="font-size:9.0pt;font-family:Menlo;color:#D4D4D4">@include
</span><span style="font-size:9.0pt;font-family:Menlo;color:#CE9178">"scl.conf"</span><span style="font-size:9.0pt;font-family:Menlo;color:#D4D4D4"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:#1E1E1E"><span style="font-size:9.0pt;font-family:Menlo;color:#D4D4D4"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:#1E1E1E"><span style="font-size:9.0pt;font-family:Menlo;color:#6A9955"># syslog-ng configuration file.</span><span style="font-size:9.0pt;font-family:Menlo;color:#D4D4D4"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:#1E1E1E"><span style="font-size:9.0pt;font-family:Menlo;color:#6A9955">#</span><span style="font-size:9.0pt;font-family:Menlo;color:#D4D4D4"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:#1E1E1E"><span style="font-size:9.0pt;font-family:Menlo;color:#6A9955"># See syslog-ng(8) and syslog-ng.conf(5) for more information.</span><span style="font-size:9.0pt;font-family:Menlo;color:#D4D4D4"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:#1E1E1E"><span style="font-size:9.0pt;font-family:Menlo;color:#6A9955">#</span><span style="font-size:9.0pt;font-family:Menlo;color:#D4D4D4"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:#1E1E1E"><span style="font-size:9.0pt;font-family:Menlo;color:#6A9955"># Note: it also sources additional configuration files (*.conf)</span><span style="font-size:9.0pt;font-family:Menlo;color:#D4D4D4"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:#1E1E1E"><span style="font-size:9.0pt;font-family:Menlo;color:#6A9955">#       located in /etc/syslog-ng/conf.d/</span><span style="font-size:9.0pt;font-family:Menlo;color:#D4D4D4"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:#1E1E1E"><span style="font-size:9.0pt;font-family:Menlo;color:#D4D4D4"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:#1E1E1E"><span style="font-size:9.0pt;font-family:Menlo;color:#6A9955">######################################</span><span style="font-size:9.0pt;font-family:Menlo;color:#D4D4D4"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:#1E1E1E"><span style="font-size:9.0pt;font-family:Menlo;color:#6A9955">#Sources</span><span style="font-size:9.0pt;font-family:Menlo;color:#D4D4D4"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:#1E1E1E"><span style="font-size:9.0pt;font-family:Menlo;color:#6A9955">######################################</span><span style="font-size:9.0pt;font-family:Menlo;color:#D4D4D4"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:13.5pt;background:#1E1E1E">
<span style="font-size:9.0pt;font-family:Menlo;color:#D4D4D4"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:#1E1E1E"><span style="font-size:9.0pt;font-family:Menlo;color:#D4D4D4">source s_netskope {<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:#1E1E1E"><span style="font-size:9.0pt;font-family:Menlo;color:#D4D4D4">tcp(ip(0.0.0.0) port(51410))</span><span style="font-size:9.0pt;font-family:Menlo;color:#6A9955">;</span><span style="font-size:9.0pt;font-family:Menlo;color:#D4D4D4"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:#1E1E1E"><span style="font-size:9.0pt;font-family:Menlo;color:#D4D4D4">}</span><span style="font-size:9.0pt;font-family:Menlo;color:#6A9955">;</span><span style="font-size:9.0pt;font-family:Menlo;color:#D4D4D4"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:13.5pt;background:#1E1E1E">
<span style="font-size:9.0pt;font-family:Menlo;color:#D4D4D4"><br>
<br>
<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:#1E1E1E"><span style="font-size:9.0pt;font-family:Menlo;color:#6A9955">######################################</span><span style="font-size:9.0pt;font-family:Menlo;color:#D4D4D4"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:#1E1E1E"><span style="font-size:9.0pt;font-family:Menlo;color:#6A9955">#Destinations</span><span style="font-size:9.0pt;font-family:Menlo;color:#D4D4D4"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:#1E1E1E"><span style="font-size:9.0pt;font-family:Menlo;color:#6A9955">######################################</span><span style="font-size:9.0pt;font-family:Menlo;color:#D4D4D4"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:13.5pt;background:#1E1E1E">
<span style="font-size:9.0pt;font-family:Menlo;color:#D4D4D4"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:#1E1E1E"><span style="font-size:9.0pt;font-family:Menlo;color:#D4D4D4">destination d_netskope { file(</span><span style="font-size:9.0pt;font-family:Menlo;color:#CE9178">"/data/log/syslog/netskope/$HOST/$YEAR-$MONTH-$DAY-netskope.log"</span><span style="font-size:9.0pt;font-family:Menlo;color:#D4D4D4">
 create_dirs(yes))</span><span style="font-size:9.0pt;font-family:Menlo;color:#6A9955">; };</span><span style="font-size:9.0pt;font-family:Menlo;color:#D4D4D4"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:13.5pt;background:#1E1E1E">
<span style="font-size:9.0pt;font-family:Menlo;color:#D4D4D4"><br>
<br>
<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:#1E1E1E"><span style="font-size:9.0pt;font-family:Menlo;color:#6A9955">######################################</span><span style="font-size:9.0pt;font-family:Menlo;color:#D4D4D4"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:#1E1E1E"><span style="font-size:9.0pt;font-family:Menlo;color:#6A9955"># Filters</span><span style="font-size:9.0pt;font-family:Menlo;color:#D4D4D4"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:#1E1E1E"><span style="font-size:9.0pt;font-family:Menlo;color:#6A9955">######################################</span><span style="font-size:9.0pt;font-family:Menlo;color:#D4D4D4"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:#1E1E1E"><span style="font-size:9.0pt;font-family:Menlo;color:#D4D4D4"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:#1E1E1E"><span style="font-size:9.0pt;font-family:Menlo;color:#6A9955">######################################</span><span style="font-size:9.0pt;font-family:Menlo;color:#D4D4D4"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:#1E1E1E"><span style="font-size:9.0pt;font-family:Menlo;color:#6A9955"># Log</span><span style="font-size:9.0pt;font-family:Menlo;color:#D4D4D4"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:#1E1E1E"><span style="font-size:9.0pt;font-family:Menlo;color:#6A9955">######################################</span><span style="font-size:9.0pt;font-family:Menlo;color:#D4D4D4"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:#1E1E1E"><span style="font-size:9.0pt;font-family:Menlo;color:#D4D4D4"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:#1E1E1E"><span style="font-size:9.0pt;font-family:Menlo;color:#D4D4D4">log { source( s_netskope)</span><span style="font-size:9.0pt;font-family:Menlo;color:#6A9955">; destination(d_netskope); };</span><span style="font-size:9.0pt;font-family:Menlo;color:#D4D4D4"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:13.5pt;background:#1E1E1E">
<span style="font-size:9.0pt;font-family:Menlo;color:#D4D4D4"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:#1E1E1E"><span style="font-size:9.0pt;font-family:Menlo;color:#D4D4D4">options {<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:#1E1E1E"><span style="font-size:9.0pt;font-family:Menlo;color:#D4D4D4">   flush_lines (0)</span><span style="font-size:9.0pt;font-family:Menlo;color:#6A9955">;</span><span style="font-size:9.0pt;font-family:Menlo;color:#D4D4D4"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:#1E1E1E"><span style="font-size:9.0pt;font-family:Menlo;color:#D4D4D4">   time_reopen (10)</span><span style="font-size:9.0pt;font-family:Menlo;color:#6A9955">;</span><span style="font-size:9.0pt;font-family:Menlo;color:#D4D4D4"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:#1E1E1E"><span style="font-size:9.0pt;font-family:Menlo;color:#D4D4D4">   log_fifo_size (1000)</span><span style="font-size:9.0pt;font-family:Menlo;color:#6A9955">;</span><span style="font-size:9.0pt;font-family:Menlo;color:#D4D4D4"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:#1E1E1E"><span style="font-size:9.0pt;font-family:Menlo;color:#D4D4D4">   chain_hostnames (off)</span><span style="font-size:9.0pt;font-family:Menlo;color:#6A9955">;</span><span style="font-size:9.0pt;font-family:Menlo;color:#D4D4D4"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:#1E1E1E"><span style="font-size:9.0pt;font-family:Menlo;color:#D4D4D4">   use_dns (no)</span><span style="font-size:9.0pt;font-family:Menlo;color:#6A9955">;</span><span style="font-size:9.0pt;font-family:Menlo;color:#D4D4D4"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:#1E1E1E"><span style="font-size:9.0pt;font-family:Menlo;color:#D4D4D4">   use_fqdn (no)</span><span style="font-size:9.0pt;font-family:Menlo;color:#6A9955">;</span><span style="font-size:9.0pt;font-family:Menlo;color:#D4D4D4"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:#1E1E1E"><span style="font-size:9.0pt;font-family:Menlo;color:#D4D4D4">   create_dirs (no)</span><span style="font-size:9.0pt;font-family:Menlo;color:#6A9955">;</span><span style="font-size:9.0pt;font-family:Menlo;color:#D4D4D4"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:#1E1E1E"><span style="font-size:9.0pt;font-family:Menlo;color:#D4D4D4">   keep_hostname (yes)</span><span style="font-size:9.0pt;font-family:Menlo;color:#6A9955">;</span><span style="font-size:9.0pt;font-family:Menlo;color:#D4D4D4"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:#1E1E1E"><span style="font-size:9.0pt;font-family:Menlo;color:#D4D4D4">   owner(</span><span style="font-size:9.0pt;font-family:Menlo;color:#CE9178">"user01"</span><span style="font-size:9.0pt;font-family:Menlo;color:#D4D4D4">)</span><span style="font-size:9.0pt;font-family:Menlo;color:#6A9955">;</span><span style="font-size:9.0pt;font-family:Menlo;color:#D4D4D4"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:#1E1E1E"><span style="font-size:9.0pt;font-family:Menlo;color:#D4D4D4">   group(</span><span style="font-size:9.0pt;font-family:Menlo;color:#CE9178">"user01"</span><span style="font-size:9.0pt;font-family:Menlo;color:#D4D4D4">)</span><span style="font-size:9.0pt;font-family:Menlo;color:#6A9955">;</span><span style="font-size:9.0pt;font-family:Menlo;color:#D4D4D4"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:#1E1E1E"><span style="font-size:9.0pt;font-family:Menlo;color:#D4D4D4">   dir-owner(</span><span style="font-size:9.0pt;font-family:Menlo;color:#CE9178">"user01"</span><span style="font-size:9.0pt;font-family:Menlo;color:#D4D4D4">)</span><span style="font-size:9.0pt;font-family:Menlo;color:#6A9955">;</span><span style="font-size:9.0pt;font-family:Menlo;color:#D4D4D4"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:#1E1E1E"><span style="font-size:9.0pt;font-family:Menlo;color:#D4D4D4">   dir-group(</span><span style="font-size:9.0pt;font-family:Menlo;color:#CE9178">"user01"</span><span style="font-size:9.0pt;font-family:Menlo;color:#D4D4D4">)</span><span style="font-size:9.0pt;font-family:Menlo;color:#6A9955">;</span><span style="font-size:9.0pt;font-family:Menlo;color:#D4D4D4"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:#1E1E1E"><span style="font-size:9.0pt;font-family:Menlo;color:#D4D4D4">   dir-perm(0755)</span><span style="font-size:9.0pt;font-family:Menlo;color:#6A9955">;</span><span style="font-size:9.0pt;font-family:Menlo;color:#D4D4D4"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:#1E1E1E"><span style="font-size:9.0pt;font-family:Menlo;color:#D4D4D4">   perm(0755)</span><span style="font-size:9.0pt;font-family:Menlo;color:#6A9955">;</span><span style="font-size:9.0pt;font-family:Menlo;color:#D4D4D4"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:#1E1E1E"><span style="font-size:9.0pt;font-family:Menlo;color:#D4D4D4">}</span><span style="font-size:9.0pt;font-family:Menlo;color:#6A9955">;</span><span style="font-size:9.0pt;font-family:Menlo;color:#D4D4D4"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Any help is greatly appreciated.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Thank you,  <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black;background:white">Julio Garcia</span></b><span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:#474747"><br>
</span><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black;background:white">Pro, Information Security Engineer</span><span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:#474747"><br>
</span><b><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black;background:white">CoreLogic</span></b><span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:#474747"><br>
<br>
</span><b><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black;background:white">Direct</span></b><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black;background:white"> (949) 214-1284<br>
<b>Mobile</b> (714) 474-5254<br>
</span><u><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#E03C31;background:white"><a href="mailto:julgarcia@corelogic.com"><span style="color:#E03C31">julgarcia@corelogic.com</span></a> </span></u><span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:#474747"><br>
<br>
</span><span style="font-size:11.0pt;font-family:"Times New Roman",serif"><a href="http://www.corelogic.com/"><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#006699;background:white">corelogic.com</span></a></span><span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:#474747;background:white"> |  </span><span style="font-size:11.0pt;font-family:"Times New Roman",serif"><a href="http://www.corelogic.com/blog/default.aspx"><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#006699;background:white">Blog</span></a></span><span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:#474747;background:white"> </span><span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:#474747"><br>
</span><span style="font-size:11.0pt;font-family:"Times New Roman",serif"><a href="http://www.linkedin.com/company/corelogic"><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#006699;background:white">LinkedIn</span></a></span><span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:#474747;background:white"> 
 |  </span><span style="font-size:11.0pt;font-family:"Times New Roman",serif"><a href="http://twitter.com/corelogicinc"><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#006699;background:white">Twitter</span></a></span><span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:#474747;background:white"> |  </span><span style="font-size:11.0pt;font-family:"Times New Roman",serif"><a href="http://www.facebook.com/CoreLogic"><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#006699;background:white">Facebook</span></a></span><span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:#474747;background:white"> 
 |  </span><span style="font-size:11.0pt;font-family:"Times New Roman",serif"><a href="https://plus.google.com/114618839782139347829"><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#006699;background:white">Google+</span></a></span><span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:#474747;background:white"> </span><span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:#474747"><br>
<br>
</span><b><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#E03C31;background:white">Our Vision: </span></b><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black;background:white">Deliver unique property-level insights that
 power the global real estate economy</span><span style="font-family:"Times New Roman",serif"><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p>****************************************************************************************** <br>
This message may contain confidential or proprietary information intended only for the use of the <br>
addressee(s) named above or may contain information that is legally privileged. If you are <br>
not the intended addressee, or the person responsible for delivering it to the intended addressee, <br>
you are hereby notified that reading, disseminating, distributing or copying this message is strictly <br>
prohibited. If you have received this message by mistake, please immediately notify us by  <br>
replying to the message and delete the original message and any copies immediately thereafter. </p>

<p>Thank you. <br>
****************************************************************************************** <br>
CLLD</p></body>
</html>