<?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: Source vs Sourcetype: What's the difference? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Source-vs-Sourcetype-What-s-the-difference/m-p/347341#M63777</link>
    <description>&lt;P&gt;1) Which are the sources of the event?Simulate me some real situations.&lt;BR /&gt;
event source can be anything. a system log file, an app log files, lookup files, etc..&lt;/P&gt;

&lt;P&gt;2) Which are the sources type of the event? The same question. --- the type of the sources will be the sourcetype. &lt;/P&gt;

&lt;P&gt;for example, you can add data from /var/log/messages to splunk. &lt;BR /&gt;
for this data, &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source=/var/log/messages 
and 
sourcetype=linux_syslog
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Source vs sourcetype - &lt;BR /&gt;
Source and source type are both default fields, but they are entirely different otherwise, and can be easily confused.&lt;/P&gt;

&lt;P&gt;The source is the name of the file, stream, or other input from which a particular event originates.&lt;BR /&gt;
The sourcetype determines how Splunk software processes the incoming data stream into individual events according to the nature of the data.&lt;BR /&gt;
Events with the same source type can come from different sources, for example, if you monitor &lt;CODE&gt;source=/var/log/messages&lt;/CODE&gt; and receive direct syslog input from udp:514. If you search &lt;CODE&gt;sourcetype=linux_syslog&lt;/CODE&gt;, events from both of those sources are returned.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/7.0.0/Data/Aboutdefaultfields"&gt;http://docs.splunk.com/Documentation/Splunk/7.0.0/Data/Aboutdefaultfields&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 01 Nov 2017 06:33:34 GMT</pubDate>
    <dc:creator>inventsekar</dc:creator>
    <dc:date>2017-11-01T06:33:34Z</dc:date>
    <item>
      <title>Source vs Sourcetype: What's the difference?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Source-vs-Sourcetype-What-s-the-difference/m-p/347340#M63776</link>
      <description>&lt;P&gt;Source  - The source of an event is the name of the file, stream, or other input from which the event originates&lt;BR /&gt;
1) Which are the sources of the event?Simulate me some real situations.&lt;/P&gt;

&lt;P&gt;Sourcetype - The source type of an event is the format of the data input from which it originates like for windows .evt files from event viewer&lt;BR /&gt;
1) Which are the sources type of the event? The same question.&lt;/P&gt;

&lt;P&gt;I can not understand what applies to source and to sourcetype.&lt;BR /&gt;
I would be glad if somebody gives examples. Or what should I read to better understand logs? I understand that there are just different logs. Some are responsible for one, the other for the other.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2017 00:58:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Source-vs-Sourcetype-What-s-the-difference/m-p/347340#M63776</guid>
      <dc:creator>test_qweqwe</dc:creator>
      <dc:date>2017-11-01T00:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: Source vs Sourcetype: What's the difference?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Source-vs-Sourcetype-What-s-the-difference/m-p/347341#M63777</link>
      <description>&lt;P&gt;1) Which are the sources of the event?Simulate me some real situations.&lt;BR /&gt;
event source can be anything. a system log file, an app log files, lookup files, etc..&lt;/P&gt;

&lt;P&gt;2) Which are the sources type of the event? The same question. --- the type of the sources will be the sourcetype. &lt;/P&gt;

&lt;P&gt;for example, you can add data from /var/log/messages to splunk. &lt;BR /&gt;
for this data, &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source=/var/log/messages 
and 
sourcetype=linux_syslog
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Source vs sourcetype - &lt;BR /&gt;
Source and source type are both default fields, but they are entirely different otherwise, and can be easily confused.&lt;/P&gt;

&lt;P&gt;The source is the name of the file, stream, or other input from which a particular event originates.&lt;BR /&gt;
The sourcetype determines how Splunk software processes the incoming data stream into individual events according to the nature of the data.&lt;BR /&gt;
Events with the same source type can come from different sources, for example, if you monitor &lt;CODE&gt;source=/var/log/messages&lt;/CODE&gt; and receive direct syslog input from udp:514. If you search &lt;CODE&gt;sourcetype=linux_syslog&lt;/CODE&gt;, events from both of those sources are returned.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/7.0.0/Data/Aboutdefaultfields"&gt;http://docs.splunk.com/Documentation/Splunk/7.0.0/Data/Aboutdefaultfields&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2017 06:33:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Source-vs-Sourcetype-What-s-the-difference/m-p/347341#M63777</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2017-11-01T06:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: Source vs Sourcetype: What's the difference?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Source-vs-Sourcetype-What-s-the-difference/m-p/347342#M63778</link>
      <description>&lt;P&gt;The source is the entity of the log&lt;/P&gt;

&lt;P&gt;Source type is log classification&lt;BR /&gt;
Classification is used variously by users.&lt;BR /&gt;
· Classification by format&lt;BR /&gt;
· Classified by service and system&lt;BR /&gt;
· Classified by character code&lt;BR /&gt;
· etc&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2017 09:18:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Source-vs-Sourcetype-What-s-the-difference/m-p/347342#M63778</guid>
      <dc:creator>HiroshiSatoh</dc:creator>
      <dc:date>2017-11-01T09:18:24Z</dc:date>
    </item>
  </channel>
</rss>

