<?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: Sending data to Splunk using HEC in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Sending-data-to-Splunk-using-HEC/m-p/560123#M92599</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/236562"&gt;@deepasha1989&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Splunk HEC is one of the interface to ingest logs to Splunk. Having said that it doesn't do any pre-process of payload that you send. What you send via HEC is exactly what you will find in Splunk search.&lt;/P&gt;&lt;P&gt;If you want in a format that you are expecting you shall pre-process payload the format you want and send it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Other approach is to ingest the original payload with single attribute message: , data: etc and post-process it during the search-time. However that would be a complex process and extra overhead in Search UI depends on size of payload and logic that you will apply, you can test upfront in search UI using | makeresults command if the logic you intent to write really works then decide.&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;DIV class="lia-message-body lia-component-message-view-widget-body lia-component-body-signature-highlight-escalation lia-component-message-view-widget-body-signature-highlight-escalation"&gt;&lt;DIV class="lia-message-body-content"&gt;&lt;P&gt;An upvote would be appreciated and Accept solution if this reply helps!&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 19 Jul 2021 21:07:40 GMT</pubDate>
    <dc:creator>venkatasri</dc:creator>
    <dc:date>2021-07-19T21:07:40Z</dc:date>
    <item>
      <title>Sending data to Splunk using HEC</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Sending-data-to-Splunk-using-HEC/m-p/560031#M92592</link>
      <description>&lt;P&gt;I am sending data to Splunk using HEC but after trying all the methods exposed by Splunk API , I am getting all the custom properties nested under a single "message" or "data" attribute. Is there a way so that all my properties are logged in original format and not under a single head.&lt;/P&gt;&lt;P&gt;Actual : { ID: 123,&lt;/P&gt;&lt;P&gt;message: src : "abcd", category: "list" , user: "tchsavy" &lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Expected : { ID : 123 ,&lt;/P&gt;&lt;P&gt;message : "Hello" ,&lt;/P&gt;&lt;P&gt;src : "abcd",&lt;/P&gt;&lt;P&gt;category: "list" ,&lt;/P&gt;&lt;P&gt;user: "tchsavy" }&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jul 2021 11:48:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Sending-data-to-Splunk-using-HEC/m-p/560031#M92592</guid>
      <dc:creator>deepasha1989</dc:creator>
      <dc:date>2021-07-19T11:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: Sending data to Splunk using HEC</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Sending-data-to-Splunk-using-HEC/m-p/560123#M92599</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/236562"&gt;@deepasha1989&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Splunk HEC is one of the interface to ingest logs to Splunk. Having said that it doesn't do any pre-process of payload that you send. What you send via HEC is exactly what you will find in Splunk search.&lt;/P&gt;&lt;P&gt;If you want in a format that you are expecting you shall pre-process payload the format you want and send it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Other approach is to ingest the original payload with single attribute message: , data: etc and post-process it during the search-time. However that would be a complex process and extra overhead in Search UI depends on size of payload and logic that you will apply, you can test upfront in search UI using | makeresults command if the logic you intent to write really works then decide.&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;DIV class="lia-message-body lia-component-message-view-widget-body lia-component-body-signature-highlight-escalation lia-component-message-view-widget-body-signature-highlight-escalation"&gt;&lt;DIV class="lia-message-body-content"&gt;&lt;P&gt;An upvote would be appreciated and Accept solution if this reply helps!&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 19 Jul 2021 21:07:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Sending-data-to-Splunk-using-HEC/m-p/560123#M92599</guid>
      <dc:creator>venkatasri</dc:creator>
      <dc:date>2021-07-19T21:07:40Z</dc:date>
    </item>
  </channel>
</rss>

