<?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: How do you send raw XML event logs to an HTTP event collector? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-send-raw-XML-event-logs-to-an-HTTP-event-collector/m-p/447480#M77824</link>
    <description>&lt;P&gt;See the HEC docs at &lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.1/Data/UsetheHTTPEventCollector#Send_data_to_HTTP_Event_Collector"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.1/Data/UsetheHTTPEventCollector#Send_data_to_HTTP_Event_Collector&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 20 Dec 2018 22:34:53 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2018-12-20T22:34:53Z</dc:date>
    <item>
      <title>How do you send raw XML event logs to an HTTP event collector?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-send-raw-XML-event-logs-to-an-HTTP-event-collector/m-p/447476#M77820</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I have a source that creates raw XML event log data. I'd like to send this directly to the HTTP event collector in a raw format. I've viewed the available documentation here &lt;A href="http://dev.splunk.com/view/event-collector/SP-CAAAE8Y#raw"&gt;http://dev.splunk.com/view/event-collector/SP-CAAAE8Y#raw&lt;/A&gt;. However, I couldn't find the answer I'm looking for. &lt;/P&gt;

&lt;P&gt;Is it possible to send raw XML from the EventLog directly to the HTTP event collector and have it be parsed correctly?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2018 20:03:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-send-raw-XML-event-logs-to-an-HTTP-event-collector/m-p/447476#M77820</guid>
      <dc:creator>cameronharris6</dc:creator>
      <dc:date>2018-12-14T20:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: How do you send raw XML event logs to an HTTP event collector?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-send-raw-XML-event-logs-to-an-HTTP-event-collector/m-p/447477#M77821</link>
      <description>&lt;P&gt;The HTTP Event Collector expects events to arrive in JSON format.  You can send XML, but it has to be in a JSON wrapper.  The wrapper includes meta-fields Splunk needs like timestamp and sourcetype.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2018 20:22:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-send-raw-XML-event-logs-to-an-HTTP-event-collector/m-p/447477#M77821</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2018-12-14T20:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: How do you send raw XML event logs to an HTTP event collector?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-send-raw-XML-event-logs-to-an-HTTP-event-collector/m-p/447478#M77822</link>
      <description>&lt;P&gt;Thanks for the response. Is there documentation available where I can find these meta fields required for Splunk?&lt;/P&gt;</description>
      <pubDate>Sat, 15 Dec 2018 16:47:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-send-raw-XML-event-logs-to-an-HTTP-event-collector/m-p/447478#M77822</guid>
      <dc:creator>cameronharris6</dc:creator>
      <dc:date>2018-12-15T16:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: How do you send raw XML event logs to an HTTP event collector?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-send-raw-XML-event-logs-to-an-HTTP-event-collector/m-p/447479#M77823</link>
      <description>&lt;P&gt;If you use the raw endpoint (/services/collector/raw) you can send data in any format, not just JSON-wrapped.&lt;BR /&gt;
If you use the event endpoint, send the data in a json wrapper and it should get through.&lt;/P&gt;

&lt;P&gt;The metadata fields for the event endpoint are &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/RESTREF/RESTinput#services.2Fcollector"&gt;here&lt;/A&gt; on that same page you can look for services/collector/raw, although the documentation you posted does explain the raw endpoint doesn't expect metadata...&lt;/P&gt;

&lt;P&gt;Note that if using the raw endpoint the standard Splunk data processing rules apply, you will need to use the correct sourcetype to ensure the data works as expected.&lt;BR /&gt;
If you use the event endpoint, then the timestamp parsing (including time offset) is based on the metadata, not the raw data, and the line breaking is also done by the event endpoint, details in &lt;A href="https://wiki.splunk.com/File:Splunk_EventProcessing_v20.0_UF_Indexer.png"&gt;https://wiki.splunk.com/File:Splunk_EventProcessing_v20.0_UF_Indexer.png&lt;/A&gt; look for the dotted line mentioning "JSON" if you use the event endpoint.&lt;/P&gt;</description>
      <pubDate>Sat, 15 Dec 2018 21:29:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-send-raw-XML-event-logs-to-an-HTTP-event-collector/m-p/447479#M77823</guid>
      <dc:creator>gjanders</dc:creator>
      <dc:date>2018-12-15T21:29:58Z</dc:date>
    </item>
    <item>
      <title>Re: How do you send raw XML event logs to an HTTP event collector?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-send-raw-XML-event-logs-to-an-HTTP-event-collector/m-p/447480#M77824</link>
      <description>&lt;P&gt;See the HEC docs at &lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.1/Data/UsetheHTTPEventCollector#Send_data_to_HTTP_Event_Collector"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.1/Data/UsetheHTTPEventCollector#Send_data_to_HTTP_Event_Collector&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Dec 2018 22:34:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-send-raw-XML-event-logs-to-an-HTTP-event-collector/m-p/447480#M77824</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2018-12-20T22:34:53Z</dc:date>
    </item>
  </channel>
</rss>

