<?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: Filtering events from Docker in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-events-from-Docker/m-p/408256#M72385</link>
    <description>&lt;P&gt;Docker Splunk Logging driver sends events to the /event (&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/RESTREF/RESTinput#services.2Fcollector.2Fevent"&gt;https://docs.splunk.com/Documentation/Splunk/latest/RESTREF/RESTinput#services.2Fcollector.2Fevent&lt;/A&gt;) endpoint. And only /raw (&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/RESTREF/RESTinput#services.2Fcollector.2Fraw"&gt;https://docs.splunk.com/Documentation/Splunk/latest/RESTREF/RESTinput#services.2Fcollector.2Fraw&lt;/A&gt;) HEC endpoint supports indexing pipeline (see &lt;A href="http://dev.splunk.com/view/event-collector/SP-CAAAE6P"&gt;http://dev.splunk.com/view/event-collector/SP-CAAAE6P&lt;/A&gt;).&lt;BR /&gt;
Event endpoint expects that you will control the delivery on your end. Unfortunately Splunk Logging Driver does not have support for /raw endpoint.&lt;/P&gt;

&lt;P&gt;With the collectord (Monitoring Docker application &lt;A href="https://splunkbase.splunk.com/app/3723/"&gt;https://splunkbase.splunk.com/app/3723/&lt;/A&gt;) we support filtering out the events base on the specific regexp pattern, see example &lt;A href="https://www.outcoldsolutions.com/docs/monitoring-docker/v5/annotations/#example-2-dropping-messages"&gt;https://www.outcoldsolutions.com/docs/monitoring-docker/v5/annotations/#example-2-dropping-messages&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 05 Jun 2019 17:45:26 GMT</pubDate>
    <dc:creator>outcoldman</dc:creator>
    <dc:date>2019-06-05T17:45:26Z</dc:date>
    <item>
      <title>Filtering events from Docker</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-events-from-Docker/m-p/408255#M72384</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;we are successfully logging events from Docker hosts via Splunk adapter (HEC) into splunk. &lt;BR /&gt;
Problems arise when we try to filter some unwanted events.&lt;BR /&gt;
I tried to send those events to the NULL-Queue&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;props.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[host::&amp;lt;somehost&amp;gt;]
TRANSFORMS-nullQueueFilterSpecificEvents = filter_setNull_4_specific_events
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[filter_setNull_4_specific_events]
REGEX = &amp;lt;someregex&amp;gt;
DEST_KEY = queue
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It doesn't work. Still getting all events unfiltered. One possible reason could be, that depending on the HEC endpoint the events may go through a "structured parsing queue" instead of the normal route and that transformations aren't possible.&lt;BR /&gt;
Is this a possbiel explanation?&lt;BR /&gt;
How can I detemine what endpoint is used?&lt;/P&gt;

&lt;P&gt;Perhaps the log config in the &lt;STRONG&gt;docker-compose.yml&lt;/STRONG&gt; can give some clarification:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;logging:
  driver: splunk
  options:
    tag: "ct={{.Name}}"
    splunk-token: &amp;lt;sometoken&amp;gt;
    splunk-url: &lt;A href="https://&amp;lt;splunkhost-fqdn&amp;gt;:&amp;lt;port&amp;gt;" target="test_blank"&gt;https://&amp;lt;splunkhost-fqdn&amp;gt;:&amp;lt;port&amp;gt;&lt;/A&gt;;
    splunk-format: raw
    splunk-insecureskipverify: "true"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The events are not json but unstructured.&lt;BR /&gt;
Can someone give me a hint or did anyone already successfully filter docker events with transformations in props.conf/transforms.conf.&lt;BR /&gt;
Thanks in advance!&lt;/P&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
Jens&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2019 10:36:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-events-from-Docker/m-p/408255#M72384</guid>
      <dc:creator>JenWun</dc:creator>
      <dc:date>2019-06-05T10:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering events from Docker</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-events-from-Docker/m-p/408256#M72385</link>
      <description>&lt;P&gt;Docker Splunk Logging driver sends events to the /event (&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/RESTREF/RESTinput#services.2Fcollector.2Fevent"&gt;https://docs.splunk.com/Documentation/Splunk/latest/RESTREF/RESTinput#services.2Fcollector.2Fevent&lt;/A&gt;) endpoint. And only /raw (&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/RESTREF/RESTinput#services.2Fcollector.2Fraw"&gt;https://docs.splunk.com/Documentation/Splunk/latest/RESTREF/RESTinput#services.2Fcollector.2Fraw&lt;/A&gt;) HEC endpoint supports indexing pipeline (see &lt;A href="http://dev.splunk.com/view/event-collector/SP-CAAAE6P"&gt;http://dev.splunk.com/view/event-collector/SP-CAAAE6P&lt;/A&gt;).&lt;BR /&gt;
Event endpoint expects that you will control the delivery on your end. Unfortunately Splunk Logging Driver does not have support for /raw endpoint.&lt;/P&gt;

&lt;P&gt;With the collectord (Monitoring Docker application &lt;A href="https://splunkbase.splunk.com/app/3723/"&gt;https://splunkbase.splunk.com/app/3723/&lt;/A&gt;) we support filtering out the events base on the specific regexp pattern, see example &lt;A href="https://www.outcoldsolutions.com/docs/monitoring-docker/v5/annotations/#example-2-dropping-messages"&gt;https://www.outcoldsolutions.com/docs/monitoring-docker/v5/annotations/#example-2-dropping-messages&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2019 17:45:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-events-from-Docker/m-p/408256#M72385</guid>
      <dc:creator>outcoldman</dc:creator>
      <dc:date>2019-06-05T17:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering events from Docker</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-events-from-Docker/m-p/408257#M72386</link>
      <description>&lt;P&gt;Just as I thought. Thank you outcoldman! &lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2019 05:13:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-events-from-Docker/m-p/408257#M72386</guid>
      <dc:creator>JenWun</dc:creator>
      <dc:date>2019-06-06T05:13:36Z</dc:date>
    </item>
  </channel>
</rss>

