<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" 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=us-ascii">
<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:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
code
        {mso-style-priority:99;
        font-family:"Courier New";}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Consolas",serif;}
span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">Thanks a lot Seth, it worked out.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">v/r<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">Jawad<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif"> Seth Hall [mailto:seth@corelight.com]
<br>
<b>Sent:</b> Thursday, January 24, 2019 1:11 PM<br>
<b>To:</b> Rajput, Jawad (CONTR) &lt;Jawad.Rajput@hq.doe.gov&gt;<br>
<b>Cc:</b> bro-dev@bro.org<br>
<b>Subject:</b> [EXTERNAL] Re: [Zeek-Dev] Bro 2.5.4<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<div>
<p><span style="font-family:&quot;Arial&quot;,sans-serif">On 3 Jan 2019, at 11:01, Rajput, Jawad (CONTR) wrote:<o:p></o:p></span></p>
</div>
<div>
<blockquote style="border:none;border-left:solid #777777 1.5pt;padding:0in 0in 0in 4.0pt;margin-left:0in;margin-right:0in;margin-bottom:3.75pt">
<p><span style="font-family:&quot;Arial&quot;,sans-serif;color:#777777">Is there a way to add Bro server hostname field into all the Bro log types? We have 5 Bro servers capturing traffic on different network nodes, we are trying to add each server/sensor hostname into
 all the log types so analyst can identify where the logs are coming from.<o:p></o:p></span></p>
</blockquote>
</div>
<div>
<p><span style="font-family:&quot;Arial&quot;,sans-serif">Yes!<o:p></o:p></span></p>
<p><span style="font-family:&quot;Arial&quot;,sans-serif">We added a log extension mecahnism a while ago. Here's a snippet you could start from...<o:p></o:p></span></p>
<pre style="mso-margin-top-alt:0in;margin-right:11.25pt;margin-bottom:0in;margin-left:11.25pt;margin-bottom:.0001pt;background:#F7F7F7;border-radius:5px 5px 5px 5px;max-width:90vw;overflow-x:auto"><code><span style="color:black;background:#F7F7F7">option my_server_name </span><span style="color:#333333;background:#F7F7F7">=</span><span style="color:black;background:#F7F7F7"> </span><span style="color:black;background:#FFF0F0">&quot;&quot;</span><span style="color:black;background:#F7F7F7">;<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0in;margin-right:11.25pt;margin-bottom:0in;margin-left:11.25pt;margin-bottom:.0001pt;background:#F7F7F7"><code><span style="color:black;background:#F7F7F7"><o:p>&nbsp;</o:p></span></code></pre>
<pre style="mso-margin-top-alt:0in;margin-right:11.25pt;margin-bottom:0in;margin-left:11.25pt;margin-bottom:.0001pt;background:#F7F7F7"><code><b><span style="color:#008800;background:#F7F7F7">type</span></b><span style="color:black;background:#F7F7F7"> MyLogExtension</span><span style="color:#333333;background:#F7F7F7">:</span><span style="color:black;background:#F7F7F7"> </span><b><span style="color:#333399;background:#F7F7F7">record</span></b><span style="color:black;background:#F7F7F7"> {<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0in;margin-right:11.25pt;margin-bottom:0in;margin-left:11.25pt;margin-bottom:.0001pt;background:#F7F7F7"><code><span style="color:black;background:#F7F7F7">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; server_name</span><span style="color:#333333;background:#F7F7F7">:</span><span style="color:black;background:#F7F7F7">&nbsp;&nbsp; </span><b><span style="color:#333399;background:#F7F7F7">string</span></b><span style="color:black;background:#F7F7F7"> &amp;</span><b><span style="color:#008800;background:#F7F7F7">log</span></b><span style="color:black;background:#F7F7F7">;<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0in;margin-right:11.25pt;margin-bottom:0in;margin-left:11.25pt;margin-bottom:.0001pt;background:#F7F7F7"><code><span style="color:black;background:#F7F7F7">};<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0in;margin-right:11.25pt;margin-bottom:0in;margin-left:11.25pt;margin-bottom:.0001pt;background:#F7F7F7"><code><span style="color:black;background:#F7F7F7"><o:p>&nbsp;</o:p></span></code></pre>
<pre style="mso-margin-top-alt:0in;margin-right:11.25pt;margin-bottom:0in;margin-left:11.25pt;margin-bottom:.0001pt;background:#F7F7F7"><code><b><span style="color:#008800;background:#F7F7F7">function</span></b><span style="color:black;background:#F7F7F7"> add_my_log_extension(path</span><span style="color:#333333;background:#F7F7F7">:</span><span style="color:black;background:#F7F7F7"> </span><b><span style="color:#333399;background:#F7F7F7">string</span></b><span style="color:black;background:#F7F7F7">)</span><span style="color:#333333;background:#F7F7F7">:</span><span style="color:black;background:#F7F7F7"> MyLogExtension<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0in;margin-right:11.25pt;margin-bottom:0in;margin-left:11.25pt;margin-bottom:.0001pt;background:#F7F7F7"><code><span style="color:black;background:#F7F7F7">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0in;margin-right:11.25pt;margin-bottom:0in;margin-left:11.25pt;margin-bottom:.0001pt;background:#F7F7F7"><code><span style="color:black;background:#F7F7F7">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><b><span style="color:#008800;background:#F7F7F7">return</span></b><span style="color:black;background:#F7F7F7"> MyLogExtension($server_name </span><span style="color:#333333;background:#F7F7F7">=</span><span style="color:black;background:#F7F7F7"> my_server_name);<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0in;margin-right:11.25pt;margin-bottom:0in;margin-left:11.25pt;margin-bottom:.0001pt;background:#F7F7F7"><code><span style="color:black;background:#F7F7F7">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<o:p></o:p></span></code></pre>
<pre style="mso-margin-top-alt:0in;margin-right:11.25pt;margin-bottom:0in;margin-left:11.25pt;margin-bottom:.0001pt;background:#F7F7F7"><code><span style="color:black;background:#F7F7F7"><o:p>&nbsp;</o:p></span></code></pre>
<pre style="mso-margin-top-alt:0in;margin-right:11.25pt;margin-bottom:0in;margin-left:11.25pt;margin-bottom:.0001pt;background:#F7F7F7"><code><span style="color:black;background:#F7F7F7"><o:p>&nbsp;</o:p></span></code></pre>
<pre style="mso-margin-top-alt:0in;margin-right:11.25pt;margin-bottom:0in;margin-left:11.25pt;margin-bottom:.0001pt;background:#F7F7F7"><code><b><span style="color:#008800;background:#F7F7F7">redef</span></b><span style="color:black;background:#F7F7F7"> Log</span><b><span style="color:#0E84B5;background:#F7F7F7">::</span></b><span style="color:black;background:#F7F7F7">default_ext_func </span><span style="color:#333333;background:#F7F7F7">=</span><span style="color:black;background:#F7F7F7"> add_my_log_extension;<o:p></o:p></span></code></pre>
<p><span style="font-family:&quot;Arial&quot;,sans-serif">.Seth<o:p></o:p></span></p>
<p><span style="font-family:&quot;Arial&quot;,sans-serif">--<br>
Seth Hall * Corelight, Inc * <a href="http://www.corelight.com"><span style="color:#3983C4">www.corelight.com</span></a><o:p></o:p></span></p>
</div>
</div>
<p><br>
********************************************************************<br>
This message does not originate from a known Department of Energy email system.<br>
Use caution if this message contains attachments, links or requests for information.
<br>
<br>
********************************************************************<o:p></o:p></p>
</div>
</body>
</html>