<?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: What are the advantages of using the Splunk HEC JSON endpoint versus the HEC raw endpoint? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/What-are-the-advantages-of-using-the-Splunk-HEC-JSON-endpoint/m-p/653010#M110798</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231884"&gt;@PickleRick&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thanks very much for your reply.&lt;/P&gt;&lt;P&gt;You wrote:&lt;/P&gt;&lt;BLOCKQUOTE&gt;Have you considered that maybe people simply missed your question?&lt;/BLOCKQUOTE&gt;&lt;P&gt;Yes.&lt;/P&gt;&lt;P&gt;After waiting a few days for a reply, I thought I'd keep this question alive by adding my own, deliberately attempting to encourage (goad?&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;) others.&lt;/P&gt;&lt;BLOCKQUOTE&gt;People spend their own spare time here so it's their choice which questions they answer and when.&lt;/BLOCKQUOTE&gt;&lt;P&gt;Yes, understood.&lt;/P&gt;&lt;BLOCKQUOTE&gt;Drawing any conclusiin from the single fact of existence or not pf an answer is a bit... unwise.&lt;/BLOCKQUOTE&gt;&lt;P&gt;Yes, I agree. As I wrote: "wrong, unsafe".&lt;/P&gt;&lt;BLOCKQUOTE&gt;the /event endpoint lets you specify metadata field values explicitly.&lt;/BLOCKQUOTE&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;I'd completely overlooked the HEC services/collector/&lt;STRONG&gt;event&lt;/STRONG&gt; endpoint; I'd only looked at the "raw" (services/collector/raw) and "JSON" (services/collector) endpoints.&lt;/P&gt;&lt;P&gt;From the &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Data/FormateventsforHTTPEventCollector" target="_self"&gt;Splunk docs&lt;/A&gt; (not news to you):&lt;/P&gt;&lt;BLOCKQUOTE&gt;Requests containing the "fields" property must be sent to the /collector/event endpoint, or else they aren't indexed.&lt;/BLOCKQUOTE&gt;&lt;P&gt;Interesting. I need to do more reading, think about this.&lt;/P&gt;&lt;BLOCKQUOTE&gt;It means that you can skip time parsing; no, that's not just moving processing upstream&lt;/BLOCKQUOTE&gt;&lt;P&gt;Yes, you have a point.&lt;/P&gt;&lt;P&gt;As you say, It means I can skip this (props.conf stanza from my current configuration):&lt;/P&gt;&lt;PRE&gt;TIME_PREFIX = \"time\":\"&lt;BR /&gt;TIME_FORMAT = %Y-%m-%dT%H:%M:%S.%6N%:z&lt;/PRE&gt;&lt;P&gt;Some more detail. In my case, the current JSON contains timestamps as strings in this ISO 8601 format:&lt;/P&gt;&lt;PRE&gt;"2021-10-13T08:00:13.999999001-04:00"&lt;/PRE&gt;&lt;P&gt;I acknowledge this is my problem, but I'd need to do work to represent these timestamps in "UNIX time format" (e.g. 1634126413.999). That's what I meant here by "upstream processing": yes, I can skip time parsing in Splunk, but I'd need to do that work upstream.&lt;/P&gt;&lt;P&gt;Thanks again for your reply, much appreciated.&lt;/P&gt;</description>
    <pubDate>Thu, 03 Aug 2023 08:33:47 GMT</pubDate>
    <dc:creator>Graham_Hanningt</dc:creator>
    <dc:date>2023-08-03T08:33:47Z</dc:date>
    <item>
      <title>What are the advantages of using the Splunk HEC JSON endpoint versus the HEC raw endpoint?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/What-are-the-advantages-of-using-the-Splunk-HEC-JSON-endpoint/m-p/652647#M110773</link>
      <description>&lt;P&gt;More specifically: when the incoming events are already in JSON format; just, not the &lt;EM&gt;HEC-specific&lt;/EM&gt; JSON structure?&lt;/P&gt;&lt;P&gt;In my case,&amp;nbsp;each event is represented by a JSON object with a "flat" structure (no nesting): just a collection of sibling key/value pairs. This "generic" JSON can&amp;nbsp;be ingested by numerous analytics platforms with minimal configuration.&lt;/P&gt;&lt;P&gt;I've configured a sourcetype in props.conf and transforms.conf to ingest events in this JSON structure, including timestamp recognition and per-event sourcetype mapping (that is, dynamically mapping each event to a more specific sourcetype based on two values in the event).&lt;/P&gt;&lt;P&gt;I use that sourcetype configuration for the following Splunk inputs:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;TCP&lt;/LI&gt;&lt;LI&gt;HEC raw endpoint (services/collector/raw)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I &lt;EM&gt;could&lt;/EM&gt; modify this JSON to meet the HEC-specific structure required by the HEC JSON endpoint (services/collector). I understand the HEC-specific structure and the changes that I need to make.&lt;/P&gt;&lt;P&gt;However, before I do that, I thought I'd ask: what are the advantages of using the HEC JSON endpoint versus the HEC raw endpoint?&lt;/P&gt;&lt;P&gt;I anticipate that answers will make the point that Splunk ingestion is more streamlined, because you don't need to configure, for example:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Timestamp recognition: you specify time as a metadata key&lt;/LI&gt;&lt;LI&gt;Per-event sourcetype mapping: you can specify sourcetype as a metadata key&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;However, from my perspective, this is simply shifting compute costs upstream. That is, I would have to perform additional upstream processing to modify the existing "generic" JSON.&lt;/P&gt;&lt;P&gt;Given this context, what do I gain by using the HEC &lt;EM&gt;JSON&lt;/EM&gt; endpoint?&lt;/P&gt;&lt;P&gt;I understand that HEC indexer acknowledgment is available via both endpoints. Am I missing something?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2023 01:20:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/What-are-the-advantages-of-using-the-Splunk-HEC-JSON-endpoint/m-p/652647#M110773</guid>
      <dc:creator>Graham_Hanningt</dc:creator>
      <dc:date>2023-08-02T01:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: What are the advantages of using the Splunk HEC JSON endpoint versus the HEC raw endpoint?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/What-are-the-advantages-of-using-the-Splunk-HEC-JSON-endpoint/m-p/652983#M110795</link>
      <description>&lt;H3&gt;In brief&lt;/H3&gt;&lt;P&gt;The answer seems to be "None".&lt;/P&gt;&lt;H3&gt;In detail&lt;/H3&gt;&lt;P&gt;If, given the context I describe in my question, there &lt;EM&gt;are&lt;/EM&gt; advantages (of using the Splunk HEC JSON endpoint versus the HEC raw endpoint), then I'd have expected experienced Splunk users, or the developers of Splunk, to reply.&lt;/P&gt;&lt;P&gt;While I acknowledge it would be wrong, unsafe, to assume that the absence of such replies reflects the absence of advantages, this does inform my thoughts about whether to invest effort in supporting the HEC &lt;EM&gt;JSON&lt;/EM&gt; endpoint.&lt;/P&gt;&lt;P&gt;If someone asks me about supporting that endpoint, I'll ask them the question I've asked here ("What are the advantages... ?") and point them to this page.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 02:54:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/What-are-the-advantages-of-using-the-Splunk-HEC-JSON-endpoint/m-p/652983#M110795</guid>
      <dc:creator>Graham_Hanningt</dc:creator>
      <dc:date>2023-08-03T02:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: What are the advantages of using the Splunk HEC JSON endpoint versus the HEC raw endpoint?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/What-are-the-advantages-of-using-the-Splunk-HEC-JSON-endpoint/m-p/652986#M110796</link>
      <description>&lt;P&gt;Have you considered that maybe people simply missed your question? Or didn't find the time to answer it at this point? People spend their own spare time here so it's their choice which questions they answer and when. Drawing any conclusiin from the single fact of existence or not pf an answer is a bit... unwise.&lt;/P&gt;&lt;P&gt;Anyway. While the /raw endpoint doesn't differ really from pushing the events via tcp:// input, the /event endpoint lets you specify metadata field values explicitly. It means that you can skip time parsing (no, that's not just moving processing upstream; it's also making sure that you don't have to fool aroind with badly formated timestamps). You can also set specific source/sourcetype/index values explicitly and you can add more indexed fields to the data.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 04:59:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/What-are-the-advantages-of-using-the-Splunk-HEC-JSON-endpoint/m-p/652986#M110796</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2023-08-03T04:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: What are the advantages of using the Splunk HEC JSON endpoint versus the HEC raw endpoint?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/What-are-the-advantages-of-using-the-Splunk-HEC-JSON-endpoint/m-p/653010#M110798</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231884"&gt;@PickleRick&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thanks very much for your reply.&lt;/P&gt;&lt;P&gt;You wrote:&lt;/P&gt;&lt;BLOCKQUOTE&gt;Have you considered that maybe people simply missed your question?&lt;/BLOCKQUOTE&gt;&lt;P&gt;Yes.&lt;/P&gt;&lt;P&gt;After waiting a few days for a reply, I thought I'd keep this question alive by adding my own, deliberately attempting to encourage (goad?&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;) others.&lt;/P&gt;&lt;BLOCKQUOTE&gt;People spend their own spare time here so it's their choice which questions they answer and when.&lt;/BLOCKQUOTE&gt;&lt;P&gt;Yes, understood.&lt;/P&gt;&lt;BLOCKQUOTE&gt;Drawing any conclusiin from the single fact of existence or not pf an answer is a bit... unwise.&lt;/BLOCKQUOTE&gt;&lt;P&gt;Yes, I agree. As I wrote: "wrong, unsafe".&lt;/P&gt;&lt;BLOCKQUOTE&gt;the /event endpoint lets you specify metadata field values explicitly.&lt;/BLOCKQUOTE&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;I'd completely overlooked the HEC services/collector/&lt;STRONG&gt;event&lt;/STRONG&gt; endpoint; I'd only looked at the "raw" (services/collector/raw) and "JSON" (services/collector) endpoints.&lt;/P&gt;&lt;P&gt;From the &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Data/FormateventsforHTTPEventCollector" target="_self"&gt;Splunk docs&lt;/A&gt; (not news to you):&lt;/P&gt;&lt;BLOCKQUOTE&gt;Requests containing the "fields" property must be sent to the /collector/event endpoint, or else they aren't indexed.&lt;/BLOCKQUOTE&gt;&lt;P&gt;Interesting. I need to do more reading, think about this.&lt;/P&gt;&lt;BLOCKQUOTE&gt;It means that you can skip time parsing; no, that's not just moving processing upstream&lt;/BLOCKQUOTE&gt;&lt;P&gt;Yes, you have a point.&lt;/P&gt;&lt;P&gt;As you say, It means I can skip this (props.conf stanza from my current configuration):&lt;/P&gt;&lt;PRE&gt;TIME_PREFIX = \"time\":\"&lt;BR /&gt;TIME_FORMAT = %Y-%m-%dT%H:%M:%S.%6N%:z&lt;/PRE&gt;&lt;P&gt;Some more detail. In my case, the current JSON contains timestamps as strings in this ISO 8601 format:&lt;/P&gt;&lt;PRE&gt;"2021-10-13T08:00:13.999999001-04:00"&lt;/PRE&gt;&lt;P&gt;I acknowledge this is my problem, but I'd need to do work to represent these timestamps in "UNIX time format" (e.g. 1634126413.999). That's what I meant here by "upstream processing": yes, I can skip time parsing in Splunk, but I'd need to do that work upstream.&lt;/P&gt;&lt;P&gt;Thanks again for your reply, much appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 08:33:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/What-are-the-advantages-of-using-the-Splunk-HEC-JSON-endpoint/m-p/653010#M110798</guid>
      <dc:creator>Graham_Hanningt</dc:creator>
      <dc:date>2023-08-03T08:33:47Z</dc:date>
    </item>
  </channel>
</rss>

