<?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: Can not find HTTP Event Collector field events in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Can-not-find-HTTP-Event-Collector-field-events/m-p/452777#M78432</link>
    <description>&lt;P&gt;Thanks a lot for your answer, I must have been fooled by the timestamp !&lt;BR /&gt;
The thing is, I could never find an exemple of sending an event field inside the event object, so I started doubting that might be possible.&lt;BR /&gt;
Thanks again !&lt;/P&gt;</description>
    <pubDate>Mon, 01 Jul 2019 13:13:06 GMT</pubDate>
    <dc:creator>fmathis</dc:creator>
    <dc:date>2019-07-01T13:13:06Z</dc:date>
    <item>
      <title>Can not find HTTP Event Collector field events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-not-find-HTTP-Event-Collector-field-events/m-p/452775#M78430</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I am trying to post events through HEC like so :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;{
  "host": "my_host",
  "sourcetype": "my_source_type",
  "time": 15617254748.888,
  "event": {
    "event": "my_event_name",
    "source": "my_source",
    "message": "My message"
  }
}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Unfortunately, I cannot find these events in my index, and this seems to be due to the presence of the inner field event.&lt;/P&gt;

&lt;P&gt;Is there a way to pass the event name inside the event object?&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2019 07:37:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-not-find-HTTP-Event-Collector-field-events/m-p/452775#M78430</guid>
      <dc:creator>fmathis</dc:creator>
      <dc:date>2019-07-01T07:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: Can not find HTTP Event Collector field events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-not-find-HTTP-Event-Collector-field-events/m-p/452776#M78431</link>
      <description>&lt;P&gt;@fmathis ,&lt;BR /&gt;
It depends on your implementation but I was able to send a json with event in the message programmatically as well as using simple curl.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k -H "Authorization: Splunk my_splunk_token" &lt;A href="https://my_splunk_host:hec_port/services/collector/event" target="test_blank"&gt;https://my_splunk_host:hec_port/services/collector/event&lt;/A&gt; -d '{"sourcetype": "_json", "event": "{\"event\":\"my_event\",\"message\":\"This message has event name\"}"}'
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Result&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/7272i641FD3578DB7522B/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;From your event above, looks like the timestamp is a future one. You may try searching the default index configured with the token and also probably for "All Time"&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2019 12:08:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-not-find-HTTP-Event-Collector-field-events/m-p/452776#M78431</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2019-07-01T12:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: Can not find HTTP Event Collector field events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-not-find-HTTP-Event-Collector-field-events/m-p/452777#M78432</link>
      <description>&lt;P&gt;Thanks a lot for your answer, I must have been fooled by the timestamp !&lt;BR /&gt;
The thing is, I could never find an exemple of sending an event field inside the event object, so I started doubting that might be possible.&lt;BR /&gt;
Thanks again !&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2019 13:13:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-not-find-HTTP-Event-Collector-field-events/m-p/452777#M78432</guid>
      <dc:creator>fmathis</dc:creator>
      <dc:date>2019-07-01T13:13:06Z</dc:date>
    </item>
  </channel>
</rss>

