<?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: HEC Sourcetype in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/HEC-Sourcetype/m-p/411464#M72851</link>
    <description>&lt;P&gt;Thanks for your answer! I'm concerned that the applications that send to our deployment may not attempt to setup a JSON dictionary; however, I would want them to be able to extract _time from their logs if they chose to send it through HTTPS. It seems like the only clear way of doing this is using the KV value of "time" in the _json sourcetype? Correct?&lt;/P&gt;</description>
    <pubDate>Mon, 20 Aug 2018 12:50:44 GMT</pubDate>
    <dc:creator>thomastaylor</dc:creator>
    <dc:date>2018-08-20T12:50:44Z</dc:date>
    <item>
      <title>HEC Sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HEC-Sourcetype/m-p/411462#M72849</link>
      <description>&lt;P&gt;Hello everyone! I just have a brief question regarding the HEC input. Our primary data input is the HEC. For new applications that want to forward through our deployed Heavy Forwarder, we must first configure an token for them, and set a sourcetype.&lt;/P&gt;

&lt;P&gt;We're advocating for our applications to send data via a JSON format; however, if I were to select the _json sourcetype, this would not be correct. To provide an example of how their logs would look here's a JSON object:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;{
    "time": 1426279439, // epoch time
    "host": "localhost",
    "source": "datasource",
    "sourcetype": "txt",
    "event":  "xx.xxx.xxx.xx /web/link/goes/here error 404"
}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I realize that the "event" attribute can be broken down into more key/value pairs, but most applications that want to integrate with our service may not want to separate out everything from their log in key/value pairs since some applications will not have a clear way of doing that. &lt;/P&gt;

&lt;P&gt;If we were to provide additional extractions to the "event", it would modify the &lt;STRONG&gt;_json&lt;/STRONG&gt; sourcetype (which we wouldn't want). We're assuming the best way around this problem is to duplicate the _json sourcetype and rename it so that we can add additional extractions?&lt;/P&gt;

&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Fri, 17 Aug 2018 15:09:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HEC-Sourcetype/m-p/411462#M72849</guid>
      <dc:creator>thomastaylor</dc:creator>
      <dc:date>2018-08-17T15:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: HEC Sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HEC-Sourcetype/m-p/411463#M72850</link>
      <description>&lt;P&gt;_json has index time field extractions which  you may or may not want depending on the data your sending in.&lt;/P&gt;

&lt;P&gt;Also that event would not work as it's not JSON format inside the event info:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;xx.xxx.xxx.xx /web/link/goes/here error 404
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Would likely be rejected at parsing time as it's not true JSON style data.&lt;BR /&gt;
That said, JSON data is auto-KV'ed at search time so if you didn't want field indexed extractions then you could use any sourcetype you wish and it would work at search time anyway...it's rare to need to extract fields from JSON manually since Splunk can do it out of the box&lt;/P&gt;</description>
      <pubDate>Sun, 19 Aug 2018 23:02:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HEC-Sourcetype/m-p/411463#M72850</guid>
      <dc:creator>gjanders</dc:creator>
      <dc:date>2018-08-19T23:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: HEC Sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HEC-Sourcetype/m-p/411464#M72851</link>
      <description>&lt;P&gt;Thanks for your answer! I'm concerned that the applications that send to our deployment may not attempt to setup a JSON dictionary; however, I would want them to be able to extract _time from their logs if they chose to send it through HTTPS. It seems like the only clear way of doing this is using the KV value of "time" in the _json sourcetype? Correct?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Aug 2018 12:50:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HEC-Sourcetype/m-p/411464#M72851</guid>
      <dc:creator>thomastaylor</dc:creator>
      <dc:date>2018-08-20T12:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: HEC Sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HEC-Sourcetype/m-p/411465#M72852</link>
      <description>&lt;P&gt;If you refer to the &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Data/UsetheHTTPEventCollector"&gt;HTTP event collector documentation&lt;/A&gt; &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;endpoint&amp;gt; is the HEC endpoint you want to use. In many cases, you use the /services/collector endpoint for JavaScript Object Notation (JSON)-formatted events or the services/collector/raw endpoint for raw events
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you want to send JSON-style data than you can refer to &lt;A href="http://dev.splunk.com/view/event-collector/SP-CAAAE6P"&gt;Format events&lt;/A&gt; if you choose the JSON-style and don't pass in a time field then it will use the current system time on the heavy forwarder/indexer and it will not parse the time data from the raw data...&lt;/P&gt;</description>
      <pubDate>Mon, 20 Aug 2018 21:39:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HEC-Sourcetype/m-p/411465#M72852</guid>
      <dc:creator>gjanders</dc:creator>
      <dc:date>2018-08-20T21:39:34Z</dc:date>
    </item>
    <item>
      <title>Re: HEC Sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HEC-Sourcetype/m-p/411466#M72853</link>
      <description>&lt;P&gt;I found exactly what I was looking for going through some documentation. The endpoint that I was looking for was &lt;BR /&gt;
&lt;STRONG&gt;/services/collector/raw&lt;/STRONG&gt; to send raw data with JSON formatting.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Aug 2018 17:28:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HEC-Sourcetype/m-p/411466#M72853</guid>
      <dc:creator>thomastaylor</dc:creator>
      <dc:date>2018-08-21T17:28:02Z</dc:date>
    </item>
  </channel>
</rss>

