<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Insert text into certain logs going to a 3rd party? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Insert-text-into-certain-logs-going-to-a-3rd-party/m-p/537313#M90058</link>
    <description>&lt;P&gt;I'm looking to insert some text at our heavy forwarder into certain sourcetypes that a 3rd party running syslog-ng will see and be able to better identify what the logs are. For example, "IISLog", or "DHCPLog". Does anyone have any experience doing this?&lt;/P&gt;&lt;P&gt;Here's a sample log:&lt;/P&gt;&lt;DIV class="raw-event normal  wrap "&gt;&lt;SPAN class="t"&gt;&lt;SPAN class="t h"&gt;2021&lt;/SPAN&gt;-01-26&lt;/SPAN&gt; &lt;SPAN class="t"&gt;20:12:28&lt;/SPAN&gt; &lt;SPAN class="t"&gt;192.168.58.11&lt;/SPAN&gt; &lt;SPAN class="t"&gt;POST&lt;/SPAN&gt; &lt;SPAN class="t"&gt;/PerspectiveServices/SecureService.asmx&lt;/SPAN&gt; &lt;SPAN class="t"&gt;-&lt;/SPAN&gt; &lt;SPAN class="t"&gt;443&lt;/SPAN&gt; &lt;SPAN class="t"&gt;-&lt;/SPAN&gt; &lt;SPAN class="t"&gt;192.168.49.24&lt;/SPAN&gt; &lt;SPAN class="t"&gt;Mozilla/4.0&lt;/SPAN&gt;+(&lt;SPAN class="t"&gt;compatible&lt;/SPAN&gt;;+&lt;SPAN class="t"&gt;MSIE&lt;/SPAN&gt;+&lt;SPAN class="t"&gt;6.0&lt;/SPAN&gt;;+&lt;SPAN class="t"&gt;SV1&lt;/SPAN&gt;;+&lt;SPAN class="t"&gt;MS&lt;/SPAN&gt;+&lt;SPAN class="t"&gt;Web&lt;/SPAN&gt;+&lt;SPAN class="t"&gt;Services&lt;/SPAN&gt;+&lt;SPAN class="t"&gt;Client&lt;/SPAN&gt;+&lt;SPAN class="t"&gt;Protocol&lt;/SPAN&gt;+&lt;SPAN class="t"&gt;4.0.30319.42000&lt;/SPAN&gt;) &lt;SPAN class="t"&gt;-&lt;/SPAN&gt; &lt;SPAN class="t"&gt;200&lt;/SPAN&gt; &lt;SPAN class="t"&gt;0&lt;/SPAN&gt; &lt;SPAN class="t"&gt;0&lt;/SPAN&gt; &lt;SPAN class="t"&gt;26&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="raw-event normal  wrap "&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="raw-event normal  wrap "&gt;&lt;SPAN class="t"&gt;This is an IIS log. I'd like to add the text somewhere (anywhere) into these logs. If it works, I'll do the same with some other sourcetypes. So the end result might be:&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="raw-event normal  wrap "&gt;&lt;SPAN class="t"&gt;&lt;SPAN class="t h"&gt;2021&lt;/SPAN&gt;-01-26 20:12:28 192.168.58.11 &lt;STRONG&gt;IISLog&lt;/STRONG&gt; POST /PerspectiveServices/SecureService.asmx - 443 - 192.168.49.24 Mozilla/4.0+(compatible;+MSIE+6.0;+SV1;+MS+Web+Services+Client+Protocol+4.0.30319.42000) - 200 0 0 26&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="raw-event normal  wrap "&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="raw-event normal  wrap "&gt;&lt;SPAN class="t"&gt;We are sending them the logs from a heavy forwarder using syslog output. I was looking into potentially using SEDCMD within a props.conf file, but I'm not too experienced with doing this, and just getting started with RegEx.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="raw-event normal  wrap "&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="raw-event normal  wrap "&gt;&amp;nbsp;&lt;/DIV&gt;</description>
    <pubDate>Tue, 26 Jan 2021 21:23:29 GMT</pubDate>
    <dc:creator>eblackburn</dc:creator>
    <dc:date>2021-01-26T21:23:29Z</dc:date>
    <item>
      <title>Insert text into certain logs going to a 3rd party?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Insert-text-into-certain-logs-going-to-a-3rd-party/m-p/537313#M90058</link>
      <description>&lt;P&gt;I'm looking to insert some text at our heavy forwarder into certain sourcetypes that a 3rd party running syslog-ng will see and be able to better identify what the logs are. For example, "IISLog", or "DHCPLog". Does anyone have any experience doing this?&lt;/P&gt;&lt;P&gt;Here's a sample log:&lt;/P&gt;&lt;DIV class="raw-event normal  wrap "&gt;&lt;SPAN class="t"&gt;&lt;SPAN class="t h"&gt;2021&lt;/SPAN&gt;-01-26&lt;/SPAN&gt; &lt;SPAN class="t"&gt;20:12:28&lt;/SPAN&gt; &lt;SPAN class="t"&gt;192.168.58.11&lt;/SPAN&gt; &lt;SPAN class="t"&gt;POST&lt;/SPAN&gt; &lt;SPAN class="t"&gt;/PerspectiveServices/SecureService.asmx&lt;/SPAN&gt; &lt;SPAN class="t"&gt;-&lt;/SPAN&gt; &lt;SPAN class="t"&gt;443&lt;/SPAN&gt; &lt;SPAN class="t"&gt;-&lt;/SPAN&gt; &lt;SPAN class="t"&gt;192.168.49.24&lt;/SPAN&gt; &lt;SPAN class="t"&gt;Mozilla/4.0&lt;/SPAN&gt;+(&lt;SPAN class="t"&gt;compatible&lt;/SPAN&gt;;+&lt;SPAN class="t"&gt;MSIE&lt;/SPAN&gt;+&lt;SPAN class="t"&gt;6.0&lt;/SPAN&gt;;+&lt;SPAN class="t"&gt;SV1&lt;/SPAN&gt;;+&lt;SPAN class="t"&gt;MS&lt;/SPAN&gt;+&lt;SPAN class="t"&gt;Web&lt;/SPAN&gt;+&lt;SPAN class="t"&gt;Services&lt;/SPAN&gt;+&lt;SPAN class="t"&gt;Client&lt;/SPAN&gt;+&lt;SPAN class="t"&gt;Protocol&lt;/SPAN&gt;+&lt;SPAN class="t"&gt;4.0.30319.42000&lt;/SPAN&gt;) &lt;SPAN class="t"&gt;-&lt;/SPAN&gt; &lt;SPAN class="t"&gt;200&lt;/SPAN&gt; &lt;SPAN class="t"&gt;0&lt;/SPAN&gt; &lt;SPAN class="t"&gt;0&lt;/SPAN&gt; &lt;SPAN class="t"&gt;26&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="raw-event normal  wrap "&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="raw-event normal  wrap "&gt;&lt;SPAN class="t"&gt;This is an IIS log. I'd like to add the text somewhere (anywhere) into these logs. If it works, I'll do the same with some other sourcetypes. So the end result might be:&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="raw-event normal  wrap "&gt;&lt;SPAN class="t"&gt;&lt;SPAN class="t h"&gt;2021&lt;/SPAN&gt;-01-26 20:12:28 192.168.58.11 &lt;STRONG&gt;IISLog&lt;/STRONG&gt; POST /PerspectiveServices/SecureService.asmx - 443 - 192.168.49.24 Mozilla/4.0+(compatible;+MSIE+6.0;+SV1;+MS+Web+Services+Client+Protocol+4.0.30319.42000) - 200 0 0 26&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="raw-event normal  wrap "&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="raw-event normal  wrap "&gt;&lt;SPAN class="t"&gt;We are sending them the logs from a heavy forwarder using syslog output. I was looking into potentially using SEDCMD within a props.conf file, but I'm not too experienced with doing this, and just getting started with RegEx.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="raw-event normal  wrap "&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="raw-event normal  wrap "&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Tue, 26 Jan 2021 21:23:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Insert-text-into-certain-logs-going-to-a-3rd-party/m-p/537313#M90058</guid>
      <dc:creator>eblackburn</dc:creator>
      <dc:date>2021-01-26T21:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: Insert text into certain logs going to a 3rd party?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Insert-text-into-certain-logs-going-to-a-3rd-party/m-p/537336#M90062</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/193388"&gt;@eblackburn&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;You use below sample. It is adding some text to end of the log since it is safer and easier.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;props.conf
[iis_log]
TRANSFORMS-logtype = append_logtype

transforms.conf
[append_logtype]
REGEX = (?m)^(.*)$
FORMAT = $1 IISLog
DEST_KEY = _raw&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 27 Jan 2021 03:43:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Insert-text-into-certain-logs-going-to-a-3rd-party/m-p/537336#M90062</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2021-01-27T03:43:39Z</dc:date>
    </item>
  </channel>
</rss>

