<?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 Splunk Add-on for Tomcat pattern not working in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Add-on-for-Tomcat-pattern-not-working/m-p/562658#M100271</link>
    <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I was wondering if I could please get some suggestions on why Tomcat isn't honoring my pattern values. I am following the instructions here:&amp;nbsp;&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/AddOns/released/Tomcat/Recommendedfields" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/AddOns/released/Tomcat/Recommendedfields&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;As recommended by Splunk documentation, we setup the following in className="org.apache.catalina.valves.AccessLogValve&amp;nbsp;" in of server.xml&lt;/P&gt;&lt;PRE&gt;prefix="localhost_access_log_splunk" suffix=".txt"&lt;/PRE&gt;&lt;PRE&gt;pattern="%t, x_forwarded_for=?%{X-Forwarded-For}i?, remote_ip=?%a?,....&lt;/PRE&gt;&lt;P&gt;The filename and fields log as expected.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The only issue is instead of quotation (") marks, I am just seeing question marks (i.e. ...&lt;SPAN&gt;x_forwarded_for=&lt;/SPAN&gt;&lt;SPAN&gt;?&lt;/SPAN&gt;&lt;SPAN&gt;-&lt;/SPAN&gt;&lt;SPAN&gt;?, &lt;/SPAN&gt;&lt;SPAN&gt;remote_ip=&lt;/SPAN&gt;&lt;SPAN&gt;?&lt;/SPAN&gt;&lt;SPAN&gt;1.2.3.1&lt;/SPAN&gt;&lt;SPAN&gt;?, &lt;/SPAN&gt;&lt;SPAN&gt;remote_host=&lt;/SPAN&gt;&lt;SPAN&gt;?1.2.3.2&lt;/SPAN&gt;&lt;SPAN&gt;?,..&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Splunk Add-on for Tomcat:&amp;nbsp;&lt;A href="https://splunkbase.splunk.com/app/2911/" target="_blank" rel="noopener"&gt;https://splunkbase.splunk.com/app/2911/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 09 Aug 2021 19:54:27 GMT</pubDate>
    <dc:creator>_joe</dc:creator>
    <dc:date>2021-08-09T19:54:27Z</dc:date>
    <item>
      <title>Splunk Add-on for Tomcat pattern not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Add-on-for-Tomcat-pattern-not-working/m-p/562658#M100271</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I was wondering if I could please get some suggestions on why Tomcat isn't honoring my pattern values. I am following the instructions here:&amp;nbsp;&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/AddOns/released/Tomcat/Recommendedfields" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/AddOns/released/Tomcat/Recommendedfields&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;As recommended by Splunk documentation, we setup the following in className="org.apache.catalina.valves.AccessLogValve&amp;nbsp;" in of server.xml&lt;/P&gt;&lt;PRE&gt;prefix="localhost_access_log_splunk" suffix=".txt"&lt;/PRE&gt;&lt;PRE&gt;pattern="%t, x_forwarded_for=?%{X-Forwarded-For}i?, remote_ip=?%a?,....&lt;/PRE&gt;&lt;P&gt;The filename and fields log as expected.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The only issue is instead of quotation (") marks, I am just seeing question marks (i.e. ...&lt;SPAN&gt;x_forwarded_for=&lt;/SPAN&gt;&lt;SPAN&gt;?&lt;/SPAN&gt;&lt;SPAN&gt;-&lt;/SPAN&gt;&lt;SPAN&gt;?, &lt;/SPAN&gt;&lt;SPAN&gt;remote_ip=&lt;/SPAN&gt;&lt;SPAN&gt;?&lt;/SPAN&gt;&lt;SPAN&gt;1.2.3.1&lt;/SPAN&gt;&lt;SPAN&gt;?, &lt;/SPAN&gt;&lt;SPAN&gt;remote_host=&lt;/SPAN&gt;&lt;SPAN&gt;?1.2.3.2&lt;/SPAN&gt;&lt;SPAN&gt;?,..&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Splunk Add-on for Tomcat:&amp;nbsp;&lt;A href="https://splunkbase.splunk.com/app/2911/" target="_blank" rel="noopener"&gt;https://splunkbase.splunk.com/app/2911/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Aug 2021 19:54:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Add-on-for-Tomcat-pattern-not-working/m-p/562658#M100271</guid>
      <dc:creator>_joe</dc:creator>
      <dc:date>2021-08-09T19:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Add-on for Tomcat pattern not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Add-on-for-Tomcat-pattern-not-working/m-p/571974#M101252</link>
      <description>&lt;P&gt;I have the same problem.&lt;BR /&gt;Where you able to solve this issue?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Oct 2021 09:07:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Add-on-for-Tomcat-pattern-not-working/m-p/571974#M101252</guid>
      <dc:creator>MuratKuru</dc:creator>
      <dc:date>2021-10-22T09:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Add-on for Tomcat pattern not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Add-on-for-Tomcat-pattern-not-working/m-p/576063#M101803</link>
      <description>&lt;P&gt;Sorry, not really. It seems some Tomcat instances need to be escaped by something different, I'm no sure why.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2021 17:32:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Add-on-for-Tomcat-pattern-not-working/m-p/576063#M101803</guid>
      <dc:creator>_joe</dc:creator>
      <dc:date>2021-11-23T17:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Add-on for Tomcat pattern not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Add-on-for-Tomcat-pattern-not-working/m-p/576065#M101805</link>
      <description>&lt;P&gt;How did you input those settings? Quotes are notorious for being "the wrong ones", especially when copy-pasted from an unknown source.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2021 17:37:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Add-on-for-Tomcat-pattern-not-working/m-p/576065#M101805</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2021-11-23T17:37:36Z</dc:date>
    </item>
  </channel>
</rss>

