<?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 Unsupported Characters for HEC in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/What-are-the-Unsupported-Characters-for-HEC/m-p/520062#M87924</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/226389"&gt;@teixeie&lt;/a&gt;&amp;nbsp;, I was doing some research about it and I did not find any document or post that makes reference in how to scape those characters.&lt;BR /&gt;I found a document where they mentioned about this error "{“text”:”Invalid data format”,”code”:6,”invalid-event-number”:0} &amp;nbsp;and how it can be fixed. The author is using the json format, and maybe it can be applied to your case, it is worth to try.&lt;/P&gt;&lt;P&gt;&lt;A href="https://medium.com/adarma-tech-blog/splunk-http-event-collectors-explained-2c22e87ab8d2" target="_blank"&gt;https://medium.com/adarma-tech-blog/splunk-http-event-collectors-explained-2c22e87ab8d2&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Top Tips:&lt;/P&gt;&lt;P&gt;Double-quotes in the JSON Collector&lt;BR /&gt;When sending events that contain double-quotes (“”) or nested JSON structures, ie. a stream of text with JSON within “event” key, escape the double-quotes:&lt;BR /&gt;before: {“event”:”{“field1”:”value1"}”}&lt;BR /&gt;after: {“event”:”{\“field1\”:\”value1\"}”}&lt;BR /&gt;OR&lt;BR /&gt;before: {“event”:”[15/11/2019 11:00:00]“field1” ”field2"”}&lt;BR /&gt;after: {“event”:”[15/11/2019 11:00:00] \“field1\” \”field2\"”}&lt;BR /&gt;Otherwise Splunk will reply with:&lt;BR /&gt;{“text”:”Invalid data format”,”code”:6,”invalid-event-number”:0}&lt;/P&gt;&lt;P&gt;If this help, please upvote.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Sep 2020 07:47:31 GMT</pubDate>
    <dc:creator>ivanreis</dc:creator>
    <dc:date>2020-09-17T07:47:31Z</dc:date>
    <item>
      <title>What are the Unsupported Characters for HEC</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/What-are-the-Unsupported-Characters-for-HEC/m-p/520022#M87921</link>
      <description>&lt;P&gt;Hi Splunk,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It seems that sending log messages to Splunk HEC endpoints containing "\n", or "\r" or "\t" causes the Hec endpoint to respond... "&lt;/SPAN&gt;&lt;I&gt;{"text":"Invalid data format","code":6,"invalid-event-number":0}&lt;/I&gt;&lt;SPAN&gt;". Anyone knows where one can find&amp;nbsp; the list of characters that are not permitted ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Eduardo&lt;/P&gt;</description>
      <pubDate>Wed, 16 Sep 2020 21:53:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/What-are-the-Unsupported-Characters-for-HEC/m-p/520022#M87921</guid>
      <dc:creator>teixeie</dc:creator>
      <dc:date>2020-09-16T21:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: What are the Unsupported Characters for HEC</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/What-are-the-Unsupported-Characters-for-HEC/m-p/520062#M87924</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/226389"&gt;@teixeie&lt;/a&gt;&amp;nbsp;, I was doing some research about it and I did not find any document or post that makes reference in how to scape those characters.&lt;BR /&gt;I found a document where they mentioned about this error "{“text”:”Invalid data format”,”code”:6,”invalid-event-number”:0} &amp;nbsp;and how it can be fixed. The author is using the json format, and maybe it can be applied to your case, it is worth to try.&lt;/P&gt;&lt;P&gt;&lt;A href="https://medium.com/adarma-tech-blog/splunk-http-event-collectors-explained-2c22e87ab8d2" target="_blank"&gt;https://medium.com/adarma-tech-blog/splunk-http-event-collectors-explained-2c22e87ab8d2&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Top Tips:&lt;/P&gt;&lt;P&gt;Double-quotes in the JSON Collector&lt;BR /&gt;When sending events that contain double-quotes (“”) or nested JSON structures, ie. a stream of text with JSON within “event” key, escape the double-quotes:&lt;BR /&gt;before: {“event”:”{“field1”:”value1"}”}&lt;BR /&gt;after: {“event”:”{\“field1\”:\”value1\"}”}&lt;BR /&gt;OR&lt;BR /&gt;before: {“event”:”[15/11/2019 11:00:00]“field1” ”field2"”}&lt;BR /&gt;after: {“event”:”[15/11/2019 11:00:00] \“field1\” \”field2\"”}&lt;BR /&gt;Otherwise Splunk will reply with:&lt;BR /&gt;{“text”:”Invalid data format”,”code”:6,”invalid-event-number”:0}&lt;/P&gt;&lt;P&gt;If this help, please upvote.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 07:47:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/What-are-the-Unsupported-Characters-for-HEC/m-p/520062#M87924</guid>
      <dc:creator>ivanreis</dc:creator>
      <dc:date>2020-09-17T07:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: What are the Unsupported Characters for HEC</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/What-are-the-Unsupported-Characters-for-HEC/m-p/520180#M87933</link>
      <description>&lt;P&gt;Thank you Ivanreis!&lt;/P&gt;&lt;P&gt;Escaping those characters indeed resolved the issue. I will add escaping for double quotes as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 16:47:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/What-are-the-Unsupported-Characters-for-HEC/m-p/520180#M87933</guid>
      <dc:creator>teixeie</dc:creator>
      <dc:date>2020-09-17T16:47:06Z</dc:date>
    </item>
  </channel>
</rss>

