<?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 event field in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/HEC-event-field/m-p/686165#M114408</link>
    <description>&lt;P&gt;There are several ways to send data to HEC and not all of them use that format.&amp;nbsp; The raw endpoint should accept events in your desired format.&amp;nbsp; See &lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.5/Data/FormateventsforHTTPEventCollector#Format_events_for_HTTP_Event_Collector" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.5/Data/FormateventsforHTTPEventCollector#Format_events_for_HTTP_Event_Collector&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 02 May 2024 12:21:02 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2024-05-02T12:21:02Z</dc:date>
    <item>
      <title>HEC event field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HEC-event-field/m-p/686150#M114407</link>
      <description>&lt;P&gt;I need to connect data from a third party application via HEC to Splunk. It sends data in this format 1 event per request:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
"field1":"value",
"field2":"value"
}&lt;/LI-CODE&gt;&lt;P&gt;After looking at the documentation for HEC, I discovered that for events to work correctly, they must have the following format:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
"event":{
    "field1":"value",
    "field2":"value"
    }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Otherwise I receive an error:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{"text":"No data","code":5}&lt;/LI-CODE&gt;&lt;P&gt;I don't have the ability to change the event format on the third-party application side.&amp;nbsp;How can this problem be solved?&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2024 10:21:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HEC-event-field/m-p/686150#M114407</guid>
      <dc:creator>Haleb</dc:creator>
      <dc:date>2024-05-02T10:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: HEC event field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HEC-event-field/m-p/686165#M114408</link>
      <description>&lt;P&gt;There are several ways to send data to HEC and not all of them use that format.&amp;nbsp; The raw endpoint should accept events in your desired format.&amp;nbsp; See &lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.5/Data/FormateventsforHTTPEventCollector#Format_events_for_HTTP_Event_Collector" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.5/Data/FormateventsforHTTPEventCollector#Format_events_for_HTTP_Event_Collector&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2024 12:21:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HEC-event-field/m-p/686165#M114408</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2024-05-02T12:21:02Z</dc:date>
    </item>
  </channel>
</rss>

