<?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: Strip lines from Logs before Indexing in Splunk Cloud in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Strip-lines-from-Logs-before-Indexing-in-Splunk-Cloud/m-p/499237#M85802</link>
    <description>&lt;P&gt;Hello @schua,&lt;/P&gt;

&lt;P&gt;nullQueue work only on a Splunk instance which first parses/indexes events. UF doesn't parse events, so you need to apply this config on HF or Indexer&lt;/P&gt;</description>
    <pubDate>Thu, 14 May 2020 16:40:15 GMT</pubDate>
    <dc:creator>PavelP</dc:creator>
    <dc:date>2020-05-14T16:40:15Z</dc:date>
    <item>
      <title>Strip lines from Logs before Indexing in Splunk Cloud</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Strip-lines-from-Logs-before-Indexing-in-Splunk-Cloud/m-p/499236#M85801</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have an Apache instance with Splunk Forwarder installed that sends logs to Splunk Cloud directly (no heavy forwarders). &lt;/P&gt;

&lt;P&gt;In the /var/log/httpd/error_logs, we have tons of entries from our load balancer to check the status:&lt;BR /&gt;
[Thu May 14 12:11:42.799506 2020] [rewrite:trace2] [pid 26491:tid mod_rewrite.c(470): [client 10.2.35.111:29429] 10.2.35.111 - - [10.2.35.111/sid#559b685a5a10][rid#559b689f9aa0/initial] init rewrite engine with requested uri /en/healthcheck.html&lt;/P&gt;

&lt;P&gt;How do I exclude this before going to Splunk Cloud Indexer? &lt;/P&gt;

&lt;P&gt;I tried adding props.conf and transforms.conf under /opt/splunkforwarder/etc/system/local/ but did not work.&lt;/P&gt;

&lt;P&gt;props.conf&lt;BR /&gt;
[source::/var/log/httpd/error_log]&lt;BR /&gt;
TRANSFORMS-null= setnull&lt;/P&gt;

&lt;P&gt;transforms.conf&lt;BR /&gt;
[setnull]&lt;BR /&gt;
REGEX = rewrite&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/P&gt;

&lt;P&gt;for REGEX, i also tried&lt;BR /&gt;
healthcheck.html&lt;BR /&gt;
\/en\/healthcheck.html&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Sherwin&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:26:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Strip-lines-from-Logs-before-Indexing-in-Splunk-Cloud/m-p/499236#M85801</guid>
      <dc:creator>schua</dc:creator>
      <dc:date>2020-09-30T05:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: Strip lines from Logs before Indexing in Splunk Cloud</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Strip-lines-from-Logs-before-Indexing-in-Splunk-Cloud/m-p/499237#M85802</link>
      <description>&lt;P&gt;Hello @schua,&lt;/P&gt;

&lt;P&gt;nullQueue work only on a Splunk instance which first parses/indexes events. UF doesn't parse events, so you need to apply this config on HF or Indexer&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2020 16:40:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Strip-lines-from-Logs-before-Indexing-in-Splunk-Cloud/m-p/499237#M85802</guid>
      <dc:creator>PavelP</dc:creator>
      <dc:date>2020-05-14T16:40:15Z</dc:date>
    </item>
  </channel>
</rss>

