<?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 Split Syslog (UDP:514) from multi hosts to multi indexes. in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Split-Syslog-UDP-514-from-multi-hosts-to-multi-indexes/m-p/33312#M5949</link>
    <description>&lt;P&gt;Hi there,&lt;/P&gt;

&lt;P&gt;I am using syslog on Splunk currently to capture data from a piece of content-keeper hardware on our network that handles internet usage analysis. It's a fairly straight forward input, but, now I wish to capture more data from a firewall again using the standard UDP:514.&lt;/P&gt;

&lt;P&gt;However, I would like for my CK data to go into splunk with the following values:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Host: content-keeper
Index: internet
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And then my firewall to go in as:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Host: foo
Index: firewalls
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Currently my inputs.conf segment looks like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[udp://514]
connection_host = none
host = content-keeper
index = internet
sourcetype = content-keeper
source = content-keeper
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[content-keeper]
LOOKUP-domaingroups = common_domains basedomain AS basedomain OUTPUTNEW domaingroup AS domaingroup
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[common_domains]
filename = group_common_domains.csv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;As you can see with props and transforms, I am just doing some basic lookups.&lt;/P&gt;

&lt;P&gt;Any help would be very very appreciated.&lt;/P&gt;

&lt;P&gt;Aaron.&lt;/P&gt;</description>
    <pubDate>Thu, 14 Feb 2013 21:12:23 GMT</pubDate>
    <dc:creator>aaronnicoli</dc:creator>
    <dc:date>2013-02-14T21:12:23Z</dc:date>
    <item>
      <title>Split Syslog (UDP:514) from multi hosts to multi indexes.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Split-Syslog-UDP-514-from-multi-hosts-to-multi-indexes/m-p/33312#M5949</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;

&lt;P&gt;I am using syslog on Splunk currently to capture data from a piece of content-keeper hardware on our network that handles internet usage analysis. It's a fairly straight forward input, but, now I wish to capture more data from a firewall again using the standard UDP:514.&lt;/P&gt;

&lt;P&gt;However, I would like for my CK data to go into splunk with the following values:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Host: content-keeper
Index: internet
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And then my firewall to go in as:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Host: foo
Index: firewalls
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Currently my inputs.conf segment looks like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[udp://514]
connection_host = none
host = content-keeper
index = internet
sourcetype = content-keeper
source = content-keeper
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[content-keeper]
LOOKUP-domaingroups = common_domains basedomain AS basedomain OUTPUTNEW domaingroup AS domaingroup
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[common_domains]
filename = group_common_domains.csv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;As you can see with props and transforms, I am just doing some basic lookups.&lt;/P&gt;

&lt;P&gt;Any help would be very very appreciated.&lt;/P&gt;

&lt;P&gt;Aaron.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Feb 2013 21:12:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Split-Syslog-UDP-514-from-multi-hosts-to-multi-indexes/m-p/33312#M5949</guid>
      <dc:creator>aaronnicoli</dc:creator>
      <dc:date>2013-02-14T21:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: Split Syslog (UDP:514) from multi hosts to multi indexes.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Split-Syslog-UDP-514-from-multi-hosts-to-multi-indexes/m-p/33313#M5950</link>
      <description>&lt;P&gt;What you're looking for is documented here:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Data/Advancedsourcetypeoverrides"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Data/Advancedsourcetypeoverrides&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;What you'd need to do would be something like this:&lt;/P&gt;

&lt;P&gt;props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[content-keeper]
TRANSFORMS-index = firewalls,hosts
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[firewalls]
REGEX = &amp;lt;MYFIREWALLREGEX&amp;gt;
DEST_KEY = _MetaData:Index
FORMAT = firewalls

[hosts]
REGEX = &amp;lt;(MYFWHOSTREGEX)&amp;gt;
DEST_KEY = MetaData:Host
FORMAT = host::$1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;By the way, at the time you do this, the 'firewalls' index must have already been created.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Feb 2013 22:32:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Split-Syslog-UDP-514-from-multi-hosts-to-multi-indexes/m-p/33313#M5950</guid>
      <dc:creator>jbsplunk</dc:creator>
      <dc:date>2013-02-14T22:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: Split Syslog (UDP:514) from multi hosts to multi indexes.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Split-Syslog-UDP-514-from-multi-hosts-to-multi-indexes/m-p/33314#M5951</link>
      <description>&lt;P&gt;Thanks JB,&lt;/P&gt;

&lt;P&gt;This is pretty much what I have come up with. The issue I am encountering now is with the regex, I cannot seem to find a way of extracting the hostname or some indicator of the orgin host. When I removed the "host=" over-ride from my inputs.conf, the host value simply defaulted to the fqdn of the splunk indexer...&lt;BR /&gt;
I am going to simply have to look more into it.&lt;/P&gt;

&lt;P&gt;Thanks very very much for you well written response!&lt;BR /&gt;
Aaron.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Feb 2013 22:49:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Split-Syslog-UDP-514-from-multi-hosts-to-multi-indexes/m-p/33314#M5951</guid>
      <dc:creator>aaronnicoli</dc:creator>
      <dc:date>2013-02-14T22:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: Split Syslog (UDP:514) from multi hosts to multi indexes.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Split-Syslog-UDP-514-from-multi-hosts-to-multi-indexes/m-p/33315#M5952</link>
      <description>&lt;P&gt;Create multiple DNS entries, assign them to virtual hosts on your system, configure syslog to look for UDP/514 from each of those IPs and write the data to disk, then configure multiple Splunk imports to look at each of the paths syslog writes to and assign them to the index of choice. Probably sounds complicated but isn't bad really depending on what level of access or turn around you have to things like new DNS entries, OS, etc.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Feb 2013 06:36:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Split-Syslog-UDP-514-from-multi-hosts-to-multi-indexes/m-p/33315#M5952</guid>
      <dc:creator>Runals</dc:creator>
      <dc:date>2013-02-15T06:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: Split Syslog (UDP:514) from multi hosts to multi indexes.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Split-Syslog-UDP-514-from-multi-hosts-to-multi-indexes/m-p/33316#M5953</link>
      <description>&lt;P&gt;Solved with a simple regex that can determine which data to perform the change on and which to not perform changes on.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2013 23:25:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Split-Syslog-UDP-514-from-multi-hosts-to-multi-indexes/m-p/33316#M5953</guid>
      <dc:creator>aaronnicoli</dc:creator>
      <dc:date>2013-03-04T23:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: Split Syslog (UDP:514) from multi hosts to multi indexes.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Split-Syslog-UDP-514-from-multi-hosts-to-multi-indexes/m-p/33317#M5954</link>
      <description>&lt;P&gt;I would suggest setting up a syslog server that captures all the incoming syslog messages and stores them into a unique directory or file for each host. This is pretty straightforward of a syslog setup.  I use a directory with the hostname and the hostname-date as the log file for each day. &lt;BR /&gt;
Then create file monitors for each of the directories. You can make all for determination about which index to put things in using your inputs.conf.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Oct 2018 19:11:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Split-Syslog-UDP-514-from-multi-hosts-to-multi-indexes/m-p/33317#M5954</guid>
      <dc:creator>bstimely</dc:creator>
      <dc:date>2018-10-05T19:11:51Z</dc:date>
    </item>
  </channel>
</rss>

