<?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: Support Apache Tomcat Valves Extended Access Log in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Support-Apache-Tomcat-Valves-Extended-Access-Log/m-p/157532#M31923</link>
    <description>&lt;P&gt;Sorry I can't seem to figure this out, please provide me exact files/path if all possible.  I have fresh 6.1 install, don't care of any existing data as we are running poc/pilot.&lt;/P&gt;</description>
    <pubDate>Fri, 09 May 2014 13:38:36 GMT</pubDate>
    <dc:creator>mldeschenes</dc:creator>
    <dc:date>2014-05-09T13:38:36Z</dc:date>
    <item>
      <title>Support Apache Tomcat Valves Extended Access Log</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Support-Apache-Tomcat-Valves-Extended-Access-Log/m-p/157529#M31920</link>
      <description>&lt;P&gt;I can't seem to get Splunk to auto/detect our current Apache Tomcat 6.x or 7.x logs.&lt;BR /&gt;
Please help and appreciate the support, I have tried all I can so far.  New to Splunk and not yet SME with this tool ... &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Log source/format (Apache Tomcat 6.x – org.apache.catalina.valves.ExtendedAccessLogValve)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;Valve className="org.apache.catalina.valves.ExtendedAccessLogValve" directory="E:\folder-Logs" pattern="date time c-ip s-ip cs-method cs-uri-stem cs-uri-query sc-status bytes time-taken cs(User-Agent)    cs(Cookie) cs(Referer) cs(HOST)" prefix="${tomcat.instance.name}-" resolveHosts="false" suffix=".log"/&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Sample scrubbed http access log:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;#Fields: date time c-ip s-ip cs-method cs-uri-stem cs-uri-query sc-status bytes time-taken cs(User-Agent)   cs(Cookie) cs(Referer) cs(HOST)
#Version: 2.0
#Software: Apache Tomcat/6.0.32
2014-05-06 04:04:09 7x.2xx.3x.5x 10.5x.7x.6x POST /folder/ajax/get.action - 200 79782 0.890 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/534.54.16 (KHTML, like Gecko) Version/5.1.4 Safari/534.54.16'    'JSESSIONID=BXA; CookiesEnabled=1; Sx7xFE=1xxxx.2xxxx.0000;' 'hxxps://client1.domain.com/folder/do.action?content=mypage=1' 'client1.skillport.com'
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 08 May 2014 19:25:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Support-Apache-Tomcat-Valves-Extended-Access-Log/m-p/157529#M31920</guid>
      <dc:creator>mldeschenes</dc:creator>
      <dc:date>2014-05-08T19:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: Support Apache Tomcat Valves Extended Access Log</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Support-Apache-Tomcat-Valves-Extended-Access-Log/m-p/157530#M31921</link>
      <description>&lt;P&gt;I don't know what you mean by "autodetect", but this is the &lt;CODE&gt;inputs.conf&lt;/CODE&gt; you probably need&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://E:\folder-Logs]
sourcetype=access_combined_extended
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;For &lt;CODE&gt;props.conf&lt;/CODE&gt; on the indexer, I would use&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[access_combined_extended]
REPORT-ace=access_combined_base_fields
EXTRACT-aceExt1=\'(?&amp;lt;cs_User_Agent&amp;gt;.*?)\'.*?\'(?&amp;lt;cs_Cookie&amp;gt;.*?)\'.*?\'(?&amp;lt;cs_Referer&amp;gt;.*?)\'.*?\'(?&amp;lt;cs_Host&amp;gt;.*?)\'.
SHOULD_LINEMERGE = false
TIME_FORMAT=%Y-%m-%d %H:%M:%S
MAX_TIMESTAMP_LOOKAHEAD = 30
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And for &lt;CODE&gt;transforms.conf&lt;/CODE&gt; on the indexer&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[access_combined_base_fields]
DELIMS = " "
FIELDS = date, time, c_ip, s_ip, cs_method, cs_uri_stem, cs_uri_query, sc_status, bytes, time_taken
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Note: there shouldn't be any linebreak on the &lt;CODE&gt;EXTRACT&lt;/CODE&gt; line above. Or the &lt;CODE&gt;FIELDS&lt;/CODE&gt; line.&lt;/P&gt;

&lt;P&gt;I just made up the sourcetype called &lt;CODE&gt;access_combined_extended&lt;/CODE&gt;,  because your data doesn't exactly match the common Apache formats I see. And I also set a few attributes in &lt;CODE&gt;props.conf&lt;/CODE&gt; that you don't strictly need, but specifying them will help Splunk parse your data more efficiently.&lt;/P&gt;</description>
      <pubDate>Thu, 08 May 2014 23:25:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Support-Apache-Tomcat-Valves-Extended-Access-Log/m-p/157530#M31921</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2014-05-08T23:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: Support Apache Tomcat Valves Extended Access Log</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Support-Apache-Tomcat-Valves-Extended-Access-Log/m-p/157531#M31922</link>
      <description>&lt;P&gt;Appreciate the support, I am rather new to Splunk.  Will give this a shot, is it possible to send me the files and I can simply copy/past?  I'm assuming I simply need to modify existing files and add the info you provided?&lt;/P&gt;</description>
      <pubDate>Fri, 09 May 2014 12:08:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Support-Apache-Tomcat-Valves-Extended-Access-Log/m-p/157531#M31922</guid>
      <dc:creator>mldeschenes</dc:creator>
      <dc:date>2014-05-09T12:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: Support Apache Tomcat Valves Extended Access Log</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Support-Apache-Tomcat-Valves-Extended-Access-Log/m-p/157532#M31923</link>
      <description>&lt;P&gt;Sorry I can't seem to figure this out, please provide me exact files/path if all possible.  I have fresh 6.1 install, don't care of any existing data as we are running poc/pilot.&lt;/P&gt;</description>
      <pubDate>Fri, 09 May 2014 13:38:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Support-Apache-Tomcat-Valves-Extended-Access-Log/m-p/157532#M31923</guid>
      <dc:creator>mldeschenes</dc:creator>
      <dc:date>2014-05-09T13:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: Support Apache Tomcat Valves Extended Access Log</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Support-Apache-Tomcat-Valves-Extended-Access-Log/m-p/157533#M31924</link>
      <description>&lt;P&gt;create each of the files named above in &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;$SPLUNK_HOME/etc/system/local&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Probably only the &lt;CODE&gt;inputs.conf&lt;/CODE&gt; file will already exist. But for any file that already exists, simply copy and paste the above at the end of the file.&lt;/P&gt;

&lt;P&gt;After copying the files, then restart Splunk.&lt;/P&gt;

&lt;P&gt;You should probably walk through the Splunk Tutorial at &lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchTutorial/WelcometotheSearchTutorial"&gt;http://docs.splunk.com/Documentation/Splunk/latest/SearchTutorial/WelcometotheSearchTutorial&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 May 2014 19:10:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Support-Apache-Tomcat-Valves-Extended-Access-Log/m-p/157533#M31924</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2014-05-09T19:10:53Z</dc:date>
    </item>
  </channel>
</rss>

