<?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 XSIAM HTTP Log Collector  Testing in Cortex XSIAM Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xsiam-discussions/xsiam-http-log-collector-testing/m-p/1262933#M475</link>
    <description>&lt;P&gt;Hello everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We are currently considering to us a HTTP Log Collector.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, before this can be started, I wanted to test the collection.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now, in theory, this should not be hard, due to the examples provided after setting up the integration.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Nonetheless, either the Python Example is faulty in some way, or I am being exceedingly stupid.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Currently, my code looks like this, very close to the provided example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;def test_http_collector(api_key: str) -&amp;gt; requests.Response:
    headers = {
        "Authorization": api_key,
        "Content-Type": "text/plain"
    }
    # Note: the logs must be separated by a new line
    body = "{'example1': 'test', 'timestamp': 1609100113039}\n{'example2': [12321,546456,45687,1]}"
    res = requests.post(url="https://api-&amp;lt;name&amp;gt;.xdr.de.paloaltonetworks.com/logs/v1/event",
                        headers=headers,
                        data=body,
                        timeout=600
                        )
    return res&lt;/LI-CODE&gt;
&lt;P&gt;I've only added a timeout and changed the linebreak (which would not add a newline) to a \n.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This consistently seems to return HTTP 500 for me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The best I've managed in trying multiple ways for hours is HTTP 400 and I cannot even replicate it right now.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does someone who is running a working HTTP log collector have any idea?&lt;/P&gt;
&lt;P&gt;Or maybe a tested and proven, minimal working example?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there anywhere I can check what actually happened in XSIAM?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 26 Aug 2026 16:40:22 GMT</pubDate>
    <dc:creator>J.Huchtktter</dc:creator>
    <dc:date>2026-08-26T16:40:22Z</dc:date>
    <item>
      <title>XSIAM HTTP Log Collector  Testing</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsiam-discussions/xsiam-http-log-collector-testing/m-p/1262933#M475</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We are currently considering to us a HTTP Log Collector.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, before this can be started, I wanted to test the collection.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now, in theory, this should not be hard, due to the examples provided after setting up the integration.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Nonetheless, either the Python Example is faulty in some way, or I am being exceedingly stupid.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Currently, my code looks like this, very close to the provided example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;def test_http_collector(api_key: str) -&amp;gt; requests.Response:
    headers = {
        "Authorization": api_key,
        "Content-Type": "text/plain"
    }
    # Note: the logs must be separated by a new line
    body = "{'example1': 'test', 'timestamp': 1609100113039}\n{'example2': [12321,546456,45687,1]}"
    res = requests.post(url="https://api-&amp;lt;name&amp;gt;.xdr.de.paloaltonetworks.com/logs/v1/event",
                        headers=headers,
                        data=body,
                        timeout=600
                        )
    return res&lt;/LI-CODE&gt;
&lt;P&gt;I've only added a timeout and changed the linebreak (which would not add a newline) to a \n.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This consistently seems to return HTTP 500 for me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The best I've managed in trying multiple ways for hours is HTTP 400 and I cannot even replicate it right now.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does someone who is running a working HTTP log collector have any idea?&lt;/P&gt;
&lt;P&gt;Or maybe a tested and proven, minimal working example?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there anywhere I can check what actually happened in XSIAM?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2026 16:40:22 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsiam-discussions/xsiam-http-log-collector-testing/m-p/1262933#M475</guid>
      <dc:creator>J.Huchtktter</dc:creator>
      <dc:date>2026-08-26T16:40:22Z</dc:date>
    </item>
  </channel>
</rss>

