<?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 Data Gateway Splunk Output - No host in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Data-Gateway-Splunk-Output-No-host/m-p/66331#M18936</link>
    <description>We have integrated data gateway with Splunk, however, we are noticing the output is being sent and the Blue Prism server that sends it is not being identified as the host.&amp;nbsp; The Splunk HEC API allows for additional fields to be sent with the API request, one being host.&amp;nbsp; Without the host field in the request, Splunk will default to the HEC aggregator host.&amp;nbsp; This causes a problem if you have multiple servers writing to Splunk because you can't identify where it is coming from.&lt;BR /&gt;&lt;BR /&gt;Is there a way to customize the output&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;It looks like what is being sent is as a payload to Splunk is&lt;BR /&gt;&lt;BR /&gt;{"event":&lt;BR /&gt;&amp;nbsp; {"EventType": 1 ...}&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;What should be sent is:&lt;BR /&gt;&lt;BR /&gt;{"host": &amp;lt;&amp;lt;ServerHostName&amp;gt;&amp;gt;,&lt;BR /&gt;&amp;nbsp;"event":{&lt;BR /&gt;&amp;nbsp; &amp;nbsp;{"EventType": 1...}&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;I have seen in the configuration guide that you can filter the output, but I haven't seen anything specifying you can customize the actual JSON being sent to the Splunk or HTTP servers.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Zach F&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Thu, 08 Oct 2020 13:28:00 GMT</pubDate>
    <dc:creator>ZachF</dc:creator>
    <dc:date>2020-10-08T13:28:00Z</dc:date>
    <item>
      <title>Data Gateway Splunk Output - No host</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Data-Gateway-Splunk-Output-No-host/m-p/66331#M18936</link>
      <description>We have integrated data gateway with Splunk, however, we are noticing the output is being sent and the Blue Prism server that sends it is not being identified as the host.&amp;nbsp; The Splunk HEC API allows for additional fields to be sent with the API request, one being host.&amp;nbsp; Without the host field in the request, Splunk will default to the HEC aggregator host.&amp;nbsp; This causes a problem if you have multiple servers writing to Splunk because you can't identify where it is coming from.&lt;BR /&gt;&lt;BR /&gt;Is there a way to customize the output&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;It looks like what is being sent is as a payload to Splunk is&lt;BR /&gt;&lt;BR /&gt;{"event":&lt;BR /&gt;&amp;nbsp; {"EventType": 1 ...}&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;What should be sent is:&lt;BR /&gt;&lt;BR /&gt;{"host": &amp;lt;&amp;lt;ServerHostName&amp;gt;&amp;gt;,&lt;BR /&gt;&amp;nbsp;"event":{&lt;BR /&gt;&amp;nbsp; &amp;nbsp;{"EventType": 1...}&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;I have seen in the configuration guide that you can filter the output, but I haven't seen anything specifying you can customize the actual JSON being sent to the Splunk or HTTP servers.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Zach F&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 08 Oct 2020 13:28:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Data-Gateway-Splunk-Output-No-host/m-p/66331#M18936</guid>
      <dc:creator>ZachF</dc:creator>
      <dc:date>2020-10-08T13:28:00Z</dc:date>
    </item>
    <item>
      <title>RE: Data Gateway Splunk Output - No host</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Data-Gateway-Splunk-Output-No-host/m-p/66332#M18937</link>
      <description>I was able to solve this.&amp;nbsp; Posting the solution in case it helps anyone else out.&lt;BR /&gt;&lt;BR /&gt;The logstash output can be configured.&amp;nbsp; An update to the mapping can add the hostname, whether static or variable.&lt;BR /&gt;&lt;BR /&gt;mapping =&amp;gt; ["host", "${COMPUTERNAME}","source", "bp:datagateway, "event", "%{event}"]&lt;BR /&gt;&lt;BR /&gt;This example will use the environment variable (ComputerName) in windows and sets it as host.&amp;nbsp; A static value could have been used instead&lt;BR /&gt;&lt;BR /&gt;mapping =&amp;gt; ["host", "example.com", "source", "bp:datagateway, "event", "%{event}"]&lt;BR /&gt;&lt;BR /&gt;This will format the outbound JSON message&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;{"host": &amp;lt;&amp;lt;ServerHostName&amp;gt;&amp;gt;,&amp;nbsp; &amp;nbsp; &amp;lt;-- variable (COMPUTERNAME) or static value&lt;BR /&gt;&lt;/SPAN&gt;&amp;nbsp;"source": "bp:datagateway",&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;"event":{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;{"EventType": 1...}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;Additional values can be sent using the mapping, these are just an example.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Zach F&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 08 Oct 2020 16:39:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Data-Gateway-Splunk-Output-No-host/m-p/66332#M18937</guid>
      <dc:creator>ZachF</dc:creator>
      <dc:date>2020-10-08T16:39:00Z</dc:date>
    </item>
    <item>
      <title>RE: Data Gateway Splunk Output - No host</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Data-Gateway-Splunk-Output-No-host/m-p/66333#M18938</link>
      <description>Zach,&lt;BR /&gt;&lt;BR /&gt;Glad to hear you have a working solution! I want to echo a couple of points for others that may be also be looking at similar problems/solutions.&lt;BR /&gt;&lt;BR /&gt;The engine behind Data Gateways is Logstash, so the Data Gateways configuration file is really a Logstash config. That means the Logstash documentation is a good resource for expanding what Data Gateways can do.&lt;BR /&gt;&lt;BR /&gt;Two important points:&lt;BR /&gt;1. The config file can reference environment variables (i.e. computer name, ports, folder paths, etc.): &lt;BR /&gt;&lt;A href="https://www.elastic.co/guide/en/logstash/current/environment-variables.html" target="test_blank"&gt;https://www.elastic.co/guide/en/logstash/current/environment-variables.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;2. Blue Prism event data is written in JSON format. For each output type (file, database, HTTP, Splunk), you can edit the &lt;CODE&gt;output&lt;/CODE&gt; section in the config file to add more info in the JSON body than what is included by default. In Zach's example, it's the &lt;CODE&gt;mapping&lt;/CODE&gt; parameter in the &lt;CODE&gt;HTTP Output Plugin&lt;/CODE&gt; that can be added onto: &lt;BR /&gt;&lt;A href="https://www.elastic.co/guide/en/logstash/current/plugins-outputs-http.html#plugins-outputs-http-mapping" target="test_blank"&gt;https://www.elastic.co/guide/en/logstash/current/plugins-outputs-http.html#plugins-outputs-http-mapping&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Charles Kovacs&lt;BR /&gt;Developer Consultant&lt;BR /&gt;Blue Prism&lt;BR /&gt;America/Chicago&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 08 Oct 2020 18:34:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Data-Gateway-Splunk-Output-No-host/m-p/66333#M18938</guid>
      <dc:creator>charliekovacs</dc:creator>
      <dc:date>2020-10-08T18:34:00Z</dc:date>
    </item>
  </channel>
</rss>

