<?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 Re: UDP:514 and source types in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/UDP-514-and-source-types/m-p/108852#M22894</link>
    <description>&lt;P&gt;Sure that is possible and i do it all the time,,&lt;BR /&gt;
Take a look at &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Data/Advancedsourcetypeoverrides" target="_blank"&gt;this&lt;/A&gt;, we call this sourcetype overriding&lt;/P&gt;

&lt;P&gt;You should end up with something like this : ( replace syslog with your stanza for the syslog input)&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;P&gt;[syslog]&lt;BR /&gt;
TRANSFORMS-sourcetype_and_host_override = sendmail &lt;BR /&gt;
SHOULD_LINEMERGE = false&lt;/P&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;P&gt;[sendmail]&lt;BR /&gt;
DEST_KEY = MetaData:Sourcetype&lt;BR /&gt;
REGEX = (YOURREGEXTOCATCHSENDMAIL)&lt;BR /&gt;
FORMAT = sourcetype::sendmail&lt;/P&gt;

&lt;P&gt;Let me know if you succeed, otherwise paste a sample of your log to get the regex right...&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 10:05:50 GMT</pubDate>
    <dc:creator>Starlette</dc:creator>
    <dc:date>2020-09-28T10:05:50Z</dc:date>
    <item>
      <title>UDP:514 and source types</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/UDP-514-and-source-types/m-p/108851#M22893</link>
      <description>&lt;P&gt;I wonder if someone could please explain to me how to achieve the following - I am running Splunk 4.2.4&lt;/P&gt;

&lt;P&gt;I have a splunk index that I am using to capture logs from a number of Unix platform, I am doing this (for historic reasons) by using syslog to forward log events to the UDP port 514. I have this configured, and it works a treat.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;But&lt;/STRONG&gt; what I want is to be able to assign different source types to the incoming events (specifically I would like all events that look like sendmail to have the sourcetype=sendmail_syslog) so that I can then benefit from the inbuilt field recognition (specifically sendmail-qid).&lt;/P&gt;</description>
      <pubDate>Sun, 13 Nov 2011 14:57:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/UDP-514-and-source-types/m-p/108851#M22893</guid>
      <dc:creator>beano500</dc:creator>
      <dc:date>2011-11-13T14:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: UDP:514 and source types</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/UDP-514-and-source-types/m-p/108852#M22894</link>
      <description>&lt;P&gt;Sure that is possible and i do it all the time,,&lt;BR /&gt;
Take a look at &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Data/Advancedsourcetypeoverrides" target="_blank"&gt;this&lt;/A&gt;, we call this sourcetype overriding&lt;/P&gt;

&lt;P&gt;You should end up with something like this : ( replace syslog with your stanza for the syslog input)&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;P&gt;[syslog]&lt;BR /&gt;
TRANSFORMS-sourcetype_and_host_override = sendmail &lt;BR /&gt;
SHOULD_LINEMERGE = false&lt;/P&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;P&gt;[sendmail]&lt;BR /&gt;
DEST_KEY = MetaData:Sourcetype&lt;BR /&gt;
REGEX = (YOURREGEXTOCATCHSENDMAIL)&lt;BR /&gt;
FORMAT = sourcetype::sendmail&lt;/P&gt;

&lt;P&gt;Let me know if you succeed, otherwise paste a sample of your log to get the regex right...&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 10:05:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/UDP-514-and-source-types/m-p/108852#M22894</guid>
      <dc:creator>Starlette</dc:creator>
      <dc:date>2020-09-28T10:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: UDP:514 and source types</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/UDP-514-and-source-types/m-p/108853#M22895</link>
      <description>&lt;P&gt;Thanks for this - I am able to set the sourcetype to be sendmail_syslog - but this raises a couple of other questions&lt;BR /&gt;
(1) - this still does not appear to cause splunk to use the 'sendmail-qid' and 'sendmail-pid' defined in system/default/transforms.conf&lt;BR /&gt;
(2) - as this change affects indexed data, is there an easy way to get splunk to re-index existing data to apply the changes retrospectively&lt;BR /&gt;
Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 13 Nov 2011 18:47:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/UDP-514-and-source-types/m-p/108853#M22895</guid>
      <dc:creator>beano500</dc:creator>
      <dc:date>2011-11-13T18:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: UDP:514 and source types</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/UDP-514-and-source-types/m-p/108854#M22896</link>
      <description>&lt;P&gt;But is the data after this config picked up (split) correctly?&lt;BR /&gt;
If this was already sourcetyped data then you could use a sourcetype alias ( &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Data/Renamesourcetypes"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Data/Renamesourcetypes&lt;/A&gt; ), but thats not the case here.&lt;/P&gt;

&lt;P&gt;I assume the data you mean already indexed is just a part of the syslogdata...the only way is to re-index is after clean your index. ( so from the source,,,syslog files maybee)&lt;BR /&gt;
I played with indexed data forwarded as cloned data to a VM an reroute that back,,,but thats hard to explain here....&lt;/P&gt;</description>
      <pubDate>Sun, 13 Nov 2011 19:12:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/UDP-514-and-source-types/m-p/108854#M22896</guid>
      <dc:creator>Starlette</dc:creator>
      <dc:date>2011-11-13T19:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: UDP:514 and source types</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/UDP-514-and-source-types/m-p/108855#M22897</link>
      <description>&lt;P&gt;Starlette - I made the configuration changed that you suggested, and newly indexed data has sourcetype=sendmail_syslog. As "sendmail_syslog" has mention in default/sourcetypes.conf and there are transforms (sendmail-pid and sendmail-qid) in default/transforms.conf - I was sort of hoping that splunk would then start pulling those fields.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 10:06:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/UDP-514-and-source-types/m-p/108855#M22897</guid>
      <dc:creator>beano500</dc:creator>
      <dc:date>2020-09-28T10:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: UDP:514 and source types</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/UDP-514-and-source-types/m-p/108856#M22898</link>
      <description>&lt;P&gt;The default is not picked anymore so you have to put them in local or under your app...&lt;BR /&gt;
Arent those Field exactions not very high level btw?, and you want to add you own stuff as well?&lt;/P&gt;

&lt;P&gt;So you better add those entries under you custom configs&lt;/P&gt;

&lt;P&gt;system\local&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;P&gt;[sendmail]&lt;BR /&gt;
MAX_TIMESTAMP_LOOKAHEAD = 32&lt;BR /&gt;
SHOULD_LINEMERGE = False&lt;BR /&gt;
TIME_FORMAT = %b %d %H:%M:%S&lt;BR /&gt;
TRANSFORMS = syslog-host&lt;BR /&gt;
REPORT-syslog = sendmail-extractions&lt;/P&gt;

&lt;P&gt;transforms.conf&lt;BR /&gt;
[sendmail-extractions]&lt;BR /&gt;
REGEX = sendmail[(\d+)]: (\w+):&lt;BR /&gt;
FORMAT = process::sendmail pid::$1 qid::$2&lt;/P&gt;

&lt;P&gt;and your own extracts as well,,&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 10:06:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/UDP-514-and-source-types/m-p/108856#M22898</guid>
      <dc:creator>Starlette</dc:creator>
      <dc:date>2020-09-28T10:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: UDP:514 and source types</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/UDP-514-and-source-types/m-p/108857#M22899</link>
      <description>&lt;P&gt;OK - having done a lot of reading, and messing about - I now understand where I have been going wrong. Starlette - thanks for the original answer - it got me 90% of the way (I will explain the last 10% in the next comment). Though having read about field precedence, I do not understand why I need the 'SHOULD_LINEMERGE' in the props.conf/syslog stanza - and in my implementation I have left it out and it works fine.&lt;/P&gt;</description>
      <pubDate>Sat, 26 Nov 2011 21:33:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/UDP-514-and-source-types/m-p/108857#M22899</guid>
      <dc:creator>beano500</dc:creator>
      <dc:date>2011-11-26T21:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: UDP:514 and source types</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/UDP-514-and-source-types/m-p/108858#M22900</link>
      <description>&lt;P&gt;The 10% was the fact that the regex in the default/transforms.conf was not right for the log events I was receiving - so when I added a local (transforms.conf) stanza for [sendmail-extractions] with a REGEX and FORMAT that matched the actual log events being received, it all started to work.&lt;/P&gt;</description>
      <pubDate>Sat, 26 Nov 2011 21:33:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/UDP-514-and-source-types/m-p/108858#M22900</guid>
      <dc:creator>beano500</dc:creator>
      <dc:date>2011-11-26T21:33:57Z</dc:date>
    </item>
  </channel>
</rss>

