<?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: How to forward logs from syslog server to splunk so that it is recognizable via their sourcetype? in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-forward-logs-from-syslog-server-to-splunk-so-that-it-is/m-p/502308#M24628</link>
    <description>&lt;P&gt;if it is a normal syslog server, that forward whatever raw logs it receive to splunk, shouldn't have an issue.&lt;/P&gt;

&lt;P&gt;However, if it is a Kiwi syslog server that forward to splunk, there are many headers added that cause Splunk not to recognize the log format.&lt;/P&gt;

&lt;P&gt;YYYY-MM-DD HH:mm:ss Local0.Info xx.xx.xx.xx 1 YYYY-MM-DDThh:mm:ssZ &lt;HOSTNAME&gt; CheckPoint xxxx - [&lt;CONTENT&gt;]&lt;/CONTENT&gt;&lt;/HOSTNAME&gt;&lt;/P&gt;

&lt;P&gt;Any ideas how to solve this issue?&lt;/P&gt;</description>
    <pubDate>Mon, 21 Oct 2019 10:16:10 GMT</pubDate>
    <dc:creator>tan_junyuan</dc:creator>
    <dc:date>2019-10-21T10:16:10Z</dc:date>
    <item>
      <title>How to forward logs from syslog server to splunk so that it is recognizable via their sourcetype?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-forward-logs-from-syslog-server-to-splunk-so-that-it-is/m-p/502306#M24626</link>
      <description>&lt;P&gt;eg. I have many logs forwarded to the syslog server.&lt;/P&gt;

&lt;P&gt;I intend to install a universal forwarder on that syslog server to forward to splunk.&lt;/P&gt;

&lt;P&gt;However once forwarded to Splunk, what will be the sourcetype?&lt;/P&gt;

&lt;P&gt;Can my checkpoint server logs be recognized as sourcetype=cp_log in Splunk or is it syslog?&lt;BR /&gt;
I tried just uploading the log file in splunk with sourcetype=cp_log, it does not recognize the format.&lt;/P&gt;

&lt;P&gt;Log entry format is as follows:&lt;BR /&gt;
 Checkpoint xxxx -[action:" xx",flags:"xxx", ifdir:"xx",etc ]&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:33:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-to-forward-logs-from-syslog-server-to-splunk-so-that-it-is/m-p/502306#M24626</guid>
      <dc:creator>tan_junyuan</dc:creator>
      <dc:date>2020-09-30T02:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to forward logs from syslog server to splunk so that it is recognizable via their sourcetype?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-forward-logs-from-syslog-server-to-splunk-so-that-it-is/m-p/502307#M24627</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
this is a very general question and you are looking at a steep learning curve, be prepared to do some reading, testing and learning yourself and please don't get frustrated! You will find that after a few "ah-ha"-moments it will get a lot easier and suddenly make sense. &lt;/P&gt;

&lt;P&gt;To get you started on your journey:&lt;BR /&gt;
1. Configure your syslog server so that every host will get his own subdirectory: &lt;CODE&gt;/var/log/&amp;lt;hostname&amp;gt;/...&lt;/CODE&gt;&lt;BR /&gt;
2. A &lt;EM&gt;sourcetype&lt;/EM&gt; in Splunk is just a name to a set of parameters in the configurations that help Splunk to tie metadata together. Splunk uses this sourcetype mainly to: Determine event breaking, timestamp and field extraction and transformations of the raw data both at index and at query time. Some well known sourcetypes are "built-in" whereas others need to be defined by you or are predefined inside an app. For Checkpoint logs, please check &lt;A href="https://splunkbase.splunk.com/apps/#/search/checkpoint/"&gt;https://splunkbase.splunk.com/apps/#/search/checkpoint/&lt;/A&gt; There are several apps that define sourcetypes based on CP logs&lt;BR /&gt;
3. After you have a sourcetype defined, you need to create an inputs.conf stanza to monitor the log files and tie this file to a certain sourcetype that is being defined in the app that you installed or that you have defined yourself. There are ways to ingest all logs with a "dummy" sourcetype and do the actual matching afterwards. However, that method has some tremendous drawbacks and should be considered advanced and its use limited to very special use cases. &lt;BR /&gt;
4. Lastly, you need to get that inputs.conf file onto your forwarder by copying it into the right directory or by using a deployment server. There is some great documentation on this topic at: &lt;A href="https://docs.splunk.com/Documentation/Forwarder/7.3.2/Forwarder/Abouttheuniversalforwarder"&gt;https://docs.splunk.com/Documentation/Forwarder/7.3.2/Forwarder/Abouttheuniversalforwarder&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;If you get stuck, please do post a specific question with the error or the problem that you encounter and I am certain, we'll be able to help. - Hope it helps Oliver&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2019 08:57:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-to-forward-logs-from-syslog-server-to-splunk-so-that-it-is/m-p/502307#M24627</guid>
      <dc:creator>ololdach</dc:creator>
      <dc:date>2019-10-16T08:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to forward logs from syslog server to splunk so that it is recognizable via their sourcetype?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-forward-logs-from-syslog-server-to-splunk-so-that-it-is/m-p/502308#M24628</link>
      <description>&lt;P&gt;if it is a normal syslog server, that forward whatever raw logs it receive to splunk, shouldn't have an issue.&lt;/P&gt;

&lt;P&gt;However, if it is a Kiwi syslog server that forward to splunk, there are many headers added that cause Splunk not to recognize the log format.&lt;/P&gt;

&lt;P&gt;YYYY-MM-DD HH:mm:ss Local0.Info xx.xx.xx.xx 1 YYYY-MM-DDThh:mm:ssZ &lt;HOSTNAME&gt; CheckPoint xxxx - [&lt;CONTENT&gt;]&lt;/CONTENT&gt;&lt;/HOSTNAME&gt;&lt;/P&gt;

&lt;P&gt;Any ideas how to solve this issue?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 10:16:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-to-forward-logs-from-syslog-server-to-splunk-so-that-it-is/m-p/502308#M24628</guid>
      <dc:creator>tan_junyuan</dc:creator>
      <dc:date>2019-10-21T10:16:10Z</dc:date>
    </item>
  </channel>
</rss>

