<?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: Sending HEC data to Nullqueue in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Sending-HEC-data-to-Nullqueue/m-p/552832#M91684</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/158577"&gt;@sun1000&lt;/a&gt;&amp;nbsp;Did you ever figure this out? I am running into the same issue with nullqueue not working with HEC.&lt;/P&gt;</description>
    <pubDate>Mon, 24 May 2021 21:22:38 GMT</pubDate>
    <dc:creator>robert_miller</dc:creator>
    <dc:date>2021-05-24T21:22:38Z</dc:date>
    <item>
      <title>Sending HEC data to Nullqueue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Sending-HEC-data-to-Nullqueue/m-p/489407#M83676</link>
      <description>&lt;P&gt;We are using HEC collector endpoint to consume logs from FluentD, we recently identified filtering opportunity and trying to apply props/transforms to send data to null queue which is not working.&lt;/P&gt;

&lt;P&gt;Source field is sent by Fluentd, so we are using that field to create sourcetype as below&lt;/P&gt;

&lt;P&gt;props.conf&lt;BR /&gt;
[source::*.journald]&lt;BR /&gt;
TRANSFORMS-override = override_st_journald,override_host_journald&lt;BR /&gt;
SHOULD_LINEMERGE = false&lt;BR /&gt;
TIME_PREFIX = SOURCE_REALTIME_TIMESTAMP\":\"&lt;BR /&gt;
TIME_FORMAT = %s%6Q&lt;/P&gt;

&lt;P&gt;transforms.conf&lt;BR /&gt;
[override_st_journald]&lt;BR /&gt;
SOURCE_KEY = _raw&lt;BR /&gt;
REGEX = SYSTEMD_UNIT\":\"([^.\s\"0-9]+)&lt;BR /&gt;
FORMAT = sourcetype::$1&lt;BR /&gt;
DEST_KEY = MetaData:Sourcetype&lt;/P&gt;

&lt;P&gt;[override_host_journald]&lt;BR /&gt;
SOURCE_KEY = _raw&lt;BR /&gt;
REGEX = instance_id\":\"([^\"]+)&lt;BR /&gt;
FORMAT = host::$1&lt;BR /&gt;
DEST_KEY = MetaData:Host&lt;/P&gt;

&lt;P&gt;Now I want to send partial of data for this source to null queue which is not working&lt;/P&gt;

&lt;P&gt;my configuration in props.conf&lt;BR /&gt;
[source::&lt;EM&gt;.journald]&lt;BR /&gt;
**TRANSFORMS-null= setnullsourcetype&lt;/EM&gt;*&lt;BR /&gt;
TRANSFORMS-override = override_st_journald,override_host_journald&lt;BR /&gt;
SHOULD_LINEMERGE = false&lt;BR /&gt;
TIME_PREFIX = SOURCE_REALTIME_TIMESTAMP\":\"&lt;BR /&gt;
TIME_FORMAT = %s%6Q&lt;/P&gt;

&lt;P&gt;transforms.conf&lt;BR /&gt;
[setnullsourcetype]&lt;BR /&gt;
SOURCE_KEY = _raw&lt;BR /&gt;
REGEX = \"SYSTEMD_UNIT\":\"rsyslog.service\"&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/P&gt;

&lt;P&gt;Can you please help me understand why it is not working. Please help me to identify how can I fix this&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:15:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Sending-HEC-data-to-Nullqueue/m-p/489407#M83676</guid>
      <dc:creator>sun1000</dc:creator>
      <dc:date>2020-09-30T05:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: Sending HEC data to Nullqueue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Sending-HEC-data-to-Nullqueue/m-p/489408#M83677</link>
      <description>&lt;P&gt;your props.conf is no problem.&lt;/P&gt;

&lt;P&gt;check REGEX&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;\"SYSTEMD_UNIT\":\"rsyslog.service\"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and &lt;CODE&gt;SOURCE_KEY = _raw&lt;/CODE&gt; is no need.&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;Don't forget reboot Splunk&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 05:22:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Sending-HEC-data-to-Nullqueue/m-p/489408#M83677</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-04-30T05:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: Sending HEC data to Nullqueue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Sending-HEC-data-to-Nullqueue/m-p/489409#M83678</link>
      <description>&lt;P&gt;Regex is correct, I validated with regex101 and also ran search | regex _raw to validate it is correct&lt;BR /&gt;
Even without source_key it is still a problem&lt;BR /&gt;
Not sure why it is not working - Tried plenty of options&lt;BR /&gt;
Please provide more details&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:16:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Sending-HEC-data-to-Nullqueue/m-p/489409#M83678</guid>
      <dc:creator>sun1000</dc:creator>
      <dc:date>2020-09-30T05:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: Sending HEC data to Nullqueue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Sending-HEC-data-to-Nullqueue/m-p/489410#M83679</link>
      <description>&lt;P&gt;how about &lt;CODE&gt;rsyslog\.service&lt;/CODE&gt; ?&lt;BR /&gt;
your log is JSON and auto extracted.&lt;/P&gt;

&lt;P&gt;for me, I confirm REGEX by &lt;CODE&gt;rex&lt;/CODE&gt; (regex101 is good, but default option is different from Splunk)&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 20:28:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Sending-HEC-data-to-Nullqueue/m-p/489410#M83679</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-04-30T20:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: Sending HEC data to Nullqueue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Sending-HEC-data-to-Nullqueue/m-p/489411#M83680</link>
      <description>&lt;P&gt;I tried that one as well - Is there some limitation with HEC input ?&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 20:30:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Sending-HEC-data-to-Nullqueue/m-p/489411#M83680</guid>
      <dc:creator>sun1000</dc:creator>
      <dc:date>2020-04-30T20:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: Sending HEC data to Nullqueue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Sending-HEC-data-to-Nullqueue/m-p/489412#M83681</link>
      <description>&lt;P&gt;The input of HEC is &lt;EM&gt;stdout&lt;/EM&gt;, not file.&lt;BR /&gt;
maybe, there is extra spaces.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 20:39:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Sending-HEC-data-to-Nullqueue/m-p/489412#M83681</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-04-30T20:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: Sending HEC data to Nullqueue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Sending-HEC-data-to-Nullqueue/m-p/489413#M83682</link>
      <description>&lt;P&gt;no extra spaces&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2020 03:57:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Sending-HEC-data-to-Nullqueue/m-p/489413#M83682</guid>
      <dc:creator>sun1000</dc:creator>
      <dc:date>2020-05-05T03:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: Sending HEC data to Nullqueue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Sending-HEC-data-to-Nullqueue/m-p/489414#M83683</link>
      <description>&lt;P&gt;How can you be sure?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"SYSTEMD_UNIT": "rsyslog.service"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It was like this, wasn't it?&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2020 05:50:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Sending-HEC-data-to-Nullqueue/m-p/489414#M83683</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-05-05T05:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: Sending HEC data to Nullqueue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Sending-HEC-data-to-Nullqueue/m-p/489415#M83684</link>
      <description>&lt;P&gt;Are you using the raw or events endpoint with HEC? The way these process events is different.&lt;/P&gt;

&lt;P&gt;Out of curiosity, you have : &lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;[source::.journald]&lt;BR /&gt;
TRANSFORMS-null= setnullsourcetype*&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;You can remove that *****from the end of the transforms. This should work as long and you're not using the /events endpoint on HEC. &lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2020 08:23:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Sending-HEC-data-to-Nullqueue/m-p/489415#M83684</guid>
      <dc:creator>esix_splunk</dc:creator>
      <dc:date>2020-05-05T08:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: Sending HEC data to Nullqueue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Sending-HEC-data-to-Nullqueue/m-p/489416#M83685</link>
      <description>&lt;P&gt;this is markdown typo.&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2020 08:32:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Sending-HEC-data-to-Nullqueue/m-p/489416#M83685</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-05-05T08:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: Sending HEC data to Nullqueue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Sending-HEC-data-to-Nullqueue/m-p/552832#M91684</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/158577"&gt;@sun1000&lt;/a&gt;&amp;nbsp;Did you ever figure this out? I am running into the same issue with nullqueue not working with HEC.&lt;/P&gt;</description>
      <pubDate>Mon, 24 May 2021 21:22:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Sending-HEC-data-to-Nullqueue/m-p/552832#M91684</guid>
      <dc:creator>robert_miller</dc:creator>
      <dc:date>2021-05-24T21:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: Sending HEC data to Nullqueue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Sending-HEC-data-to-Nullqueue/m-p/552853#M91688</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/190659"&gt;@robert_miller&lt;/a&gt;&amp;nbsp;&amp;nbsp;Yes, i was able to get around this&lt;/P&gt;&lt;P&gt;In props.conf., I added setnull3 at the end&lt;/P&gt;&lt;P&gt;[props.conf]&lt;BR /&gt;TRANSFORMS-override = override_st_journald,override_host_journald,setnull3&lt;/P&gt;&lt;P&gt;And in transforms.conf, I add the below for setnull3&lt;/P&gt;&lt;P&gt;[setnull3]&lt;BR /&gt;SOURCE_KEY = _raw&lt;BR /&gt;REGEX = \"SYSTEMD_UNIT\":(\"elasticsearch.service\"|\"rsyslog.service\")&lt;BR /&gt;DEST_KEY = queue&lt;BR /&gt;FORMAT = nullQueue&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please accept my answer if this solved your problem&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2021 04:43:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Sending-HEC-data-to-Nullqueue/m-p/552853#M91688</guid>
      <dc:creator>sun1000</dc:creator>
      <dc:date>2021-05-25T04:43:21Z</dc:date>
    </item>
  </channel>
</rss>

