<?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: How can we edit the regular expressions to extract fields from our Apache Access logs? in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-can-we-edit-the-regular-expressions-to-extract-fields-from/m-p/268900#M31093</link>
    <description>&lt;P&gt;I can see the default extraction in the TA is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;EXTRACT-apache_access= ^(?&amp;lt;src&amp;gt;[^ ]+)\s+(?&amp;lt;site&amp;gt;.+)\s+(?&amp;lt;ident&amp;gt;\S+)\s+(?&amp;lt;user&amp;gt;\S+)\s+(?&amp;lt;dest_port&amp;gt;\d+)\s+\[(?&amp;lt;timestamp&amp;gt;\d+/\w+/\d+:\d+:\d+:\d+\s+[-+]\d+)[^"\n]*"(?&amp;lt;request&amp;gt;[^"]+)[^ \n]*\s+\"(?&amp;lt;uri_query&amp;gt;[^ ]*)\"\s+(?&amp;lt;status&amp;gt;\d+)(?:[^ \n]* ){2}\"(?&amp;lt;http_referer&amp;gt;[^"]+)\"\s+\"(?&amp;lt;http_user_agent&amp;gt;[^"]+)\"\s+(?&amp;lt;request_bytes&amp;gt;\d+)\s+(?&amp;lt;response_bytes&amp;gt;\d+)\s+(?&amp;lt;response_time_microseconds&amp;gt;\d+)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This matches with your pattern to a certain degree, but NOT all. &lt;BR /&gt;
(eg  src matches to %h ;  Unless you put the actual log, we can't be sure which all matches)&lt;BR /&gt;
So you might need to amend this "EXTRACT-apache_access" in your "local" directory of the app (or your own app) with the &lt;A href="http://www.conf"&gt;www.conf&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 12 Dec 2016 21:02:51 GMT</pubDate>
    <dc:creator>koshyk</dc:creator>
    <dc:date>2016-12-12T21:02:51Z</dc:date>
    <item>
      <title>How can we edit the regular expressions to extract fields from our Apache Access logs?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-can-we-edit-the-regular-expressions-to-extract-fields-from/m-p/268897#M31090</link>
      <description>&lt;P&gt;We just installed Splunk this week (YAY!) and are trying to get our Apache logs digesting to start building dashboards. Our web store uses a modified Apache Access log format that looks like this in our &lt;A href="http://www.conf:"&gt;www.conf:&lt;/A&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;%h %l %u %t %V \"%r\" %&amp;gt;s %b \"%{Referer}i\" \"%{User-Agent}i\" %U %q
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I know that none of the extractions provided by access_combined or apache:access (Apache Addon) seem to work because they're looking for the default format, but I'm a little confused on how to help them recognize our format. I see the extractions listed, but they don't look like regular regexes that I've seen. How would I go about changing them to match our formatting? &lt;/P&gt;

&lt;P&gt;Appreciate any help!&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2016 18:26:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-can-we-edit-the-regular-expressions-to-extract-fields-from/m-p/268897#M31090</guid>
      <dc:creator>romangarth</dc:creator>
      <dc:date>2016-12-08T18:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: How can we edit the regular expressions to extract fields from our Apache Access logs?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-can-we-edit-the-regular-expressions-to-extract-fields-from/m-p/268898#M31091</link>
      <description>&lt;P&gt;What is the sourcetype for your logs?  Are any of the fields being extracted when you search on the sourcetype?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2016 19:33:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-can-we-edit-the-regular-expressions-to-extract-fields-from/m-p/268898#M31091</guid>
      <dc:creator>AnthonyTibaldi</dc:creator>
      <dc:date>2016-12-12T19:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: How can we edit the regular expressions to extract fields from our Apache Access logs?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-can-we-edit-the-regular-expressions-to-extract-fields-from/m-p/268899#M31092</link>
      <description>&lt;P&gt;The sourcetype I've tried apache:access (From the Apache Addon) and access_combined (from the default install), and neither extract data or fields properly.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2016 21:00:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-can-we-edit-the-regular-expressions-to-extract-fields-from/m-p/268899#M31092</guid>
      <dc:creator>romangarth</dc:creator>
      <dc:date>2016-12-12T21:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: How can we edit the regular expressions to extract fields from our Apache Access logs?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-can-we-edit-the-regular-expressions-to-extract-fields-from/m-p/268900#M31093</link>
      <description>&lt;P&gt;I can see the default extraction in the TA is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;EXTRACT-apache_access= ^(?&amp;lt;src&amp;gt;[^ ]+)\s+(?&amp;lt;site&amp;gt;.+)\s+(?&amp;lt;ident&amp;gt;\S+)\s+(?&amp;lt;user&amp;gt;\S+)\s+(?&amp;lt;dest_port&amp;gt;\d+)\s+\[(?&amp;lt;timestamp&amp;gt;\d+/\w+/\d+:\d+:\d+:\d+\s+[-+]\d+)[^"\n]*"(?&amp;lt;request&amp;gt;[^"]+)[^ \n]*\s+\"(?&amp;lt;uri_query&amp;gt;[^ ]*)\"\s+(?&amp;lt;status&amp;gt;\d+)(?:[^ \n]* ){2}\"(?&amp;lt;http_referer&amp;gt;[^"]+)\"\s+\"(?&amp;lt;http_user_agent&amp;gt;[^"]+)\"\s+(?&amp;lt;request_bytes&amp;gt;\d+)\s+(?&amp;lt;response_bytes&amp;gt;\d+)\s+(?&amp;lt;response_time_microseconds&amp;gt;\d+)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This matches with your pattern to a certain degree, but NOT all. &lt;BR /&gt;
(eg  src matches to %h ;  Unless you put the actual log, we can't be sure which all matches)&lt;BR /&gt;
So you might need to amend this "EXTRACT-apache_access" in your "local" directory of the app (or your own app) with the &lt;A href="http://www.conf"&gt;www.conf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2016 21:02:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-can-we-edit-the-regular-expressions-to-extract-fields-from/m-p/268900#M31093</guid>
      <dc:creator>koshyk</dc:creator>
      <dc:date>2016-12-12T21:02:51Z</dc:date>
    </item>
  </channel>
</rss>

