<?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: Field Extraction in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Field-Extraction/m-p/106315#M7472</link>
    <description>&lt;P&gt;Do you need help with the search query, or with the field extractions or both. I don't really understand your last sentence. &lt;/P&gt;

&lt;P&gt;/k&lt;/P&gt;</description>
    <pubDate>Wed, 09 Nov 2011 14:33:07 GMT</pubDate>
    <dc:creator>kristian_kolb</dc:creator>
    <dc:date>2011-11-09T14:33:07Z</dc:date>
    <item>
      <title>Field Extraction</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Field-Extraction/m-p/106312#M7469</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;Am trying to create a field extraction to report on at search time, based on data like the below&lt;/P&gt;

&lt;P&gt;W3SVC1 IP.IP.IP.40 GET /service/79/ClientA/Default.aspx &lt;BR /&gt;
W3SVC1 IP.IP.IP.17 GET /service/77/ClientB/Default.aspx &lt;BR /&gt;
W3SVC3 IP.IP.IP.16 GET /service/77/ClientB/Default.aspx &lt;BR /&gt;
W3SVC1 IP.IP.IP.40 GET /service/77/ClientC/Default.aspx &lt;BR /&gt;
W3SVC7 IP.IP.IP.40 GET /service/79/ClientA/Default.aspx &lt;BR /&gt;
W3SVC3 IP.IP.IP.16 GET /service/77/ClientB/Default.aspx &lt;/P&gt;

&lt;P&gt;So, that I can report on "Get requests", to standard logon page, by client.&lt;/P&gt;

&lt;P&gt;Am really struggling with either the IFX app, or the default "Field Extractor", and think there should be an easy way...&lt;/P&gt;

&lt;P&gt;Any help appreciated.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;

&lt;P&gt;JM&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2011 16:09:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Field-Extraction/m-p/106312#M7469</guid>
      <dc:creator>jamesmcgee</dc:creator>
      <dc:date>2011-11-08T16:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Field-Extraction/m-p/106313#M7470</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;If you are using a standard sourcetype for your log format, the method (GET, POST, OPTIONS, TRACE etc) should probably already be extracted.&lt;/P&gt;

&lt;P&gt;Extract the client by&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;\d+\/(?&amp;lt;client&amp;gt;.*)\/Default\.aspx$
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;hope this helps,&lt;/P&gt;

&lt;P&gt;Kristian&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2011 16:53:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Field-Extraction/m-p/106313#M7470</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2011-11-08T16:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Field-Extraction/m-p/106314#M7471</link>
      <description>&lt;P&gt;Top man, that did the job... but....How do I now count all "hits" by client... (sorry!)&lt;/P&gt;

&lt;P&gt;So, rather than just "extracting" pages/hits with default.aspx, I can also count anything by client&lt;/P&gt;

&lt;P&gt;i.e&lt;/P&gt;

&lt;P&gt;/service/12/CLIENTA/logo.gif&lt;BR /&gt;
/service/12/CLIENTA/manual.pdf&lt;BR /&gt;
/service/12/CLIENTB/logo.gif&lt;BR /&gt;
/service/12/CLIENTC/logo.gif&lt;BR /&gt;
/service/12/CLIENTD/logo.gif&lt;/P&gt;

&lt;P&gt;Now, want to count the "hits" by client, but am somehow pulling in anything beyond the CLIENTx/ mark no matter how I try to get the regex to work.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2011 01:43:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Field-Extraction/m-p/106314#M7471</guid>
      <dc:creator>jamesmcgee</dc:creator>
      <dc:date>2011-11-09T01:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Field-Extraction/m-p/106315#M7472</link>
      <description>&lt;P&gt;Do you need help with the search query, or with the field extractions or both. I don't really understand your last sentence. &lt;/P&gt;

&lt;P&gt;/k&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2011 14:33:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Field-Extraction/m-p/106315#M7472</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2011-11-09T14:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Field-Extraction/m-p/106316#M7473</link>
      <description>&lt;P&gt;So, with what you gave me earlier, I can report on how many times default.aspx was hit, by client, using the extraction.  What I am trying to do know, is show "all" hits, by client.&lt;/P&gt;

&lt;P&gt;So, current search is soemthing like... &lt;/P&gt;

&lt;P&gt;Source=iis | rex "\d+\/(?&lt;CLIENT&gt;.*)\/Default.aspx" | timechart count by client &lt;/CLIENT&gt;&lt;/P&gt;

&lt;P&gt;What this gives me, is fine, to show me "landing page" (default.aspx) numbers, by client, but what I'd like to show now, is how many hits in total, by client, so the easiest thing for me to do (I think), would be to &lt;/P&gt;

&lt;P&gt;run search/chart on &lt;/P&gt;

&lt;P&gt;/service/12/CLIENTA/&lt;EM&gt;.&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;/service/12/CLIENTA/&lt;EM&gt;.&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;/service/23/CLIENTB/&lt;EM&gt;.&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;/service/12/CLIENTC/&lt;EM&gt;.&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;/service/28/CLIENTD/&lt;EM&gt;.&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;So, that no matter what page they request, it get's counted in the logs as a hit, and I can extract it by client.&lt;/P&gt;

&lt;P&gt;But, no matter what tweaking I do, do the regex you gave me earlier, I seem to pull in too much data.  I'm not interest in specific pages, gifs/logos etc, but really how many "hits" there were overall, by client.&lt;/P&gt;

&lt;P&gt;(or, do you have a link to regex for dummies)?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2011 14:42:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Field-Extraction/m-p/106316#M7473</guid>
      <dc:creator>jamesmcgee</dc:creator>
      <dc:date>2011-11-09T14:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Field-Extraction/m-p/106317#M7474</link>
      <description>&lt;P&gt;It sounds to me like you want to break out the path into multiple fields. The handy way to do that is to use multivalue field extraction. Assuming that this field,&lt;/P&gt;

&lt;P&gt;"/service/12/CLIENTA/logo.gif" &lt;/P&gt;

&lt;P&gt;is named Path, try something like this&lt;/P&gt;

&lt;P&gt;| makemv delim="/" Path | eval cli=mvindex(Path,2) | stats count(cli) as Client_Count&lt;/P&gt;

&lt;P&gt;Remember that the index starts with 0 and not 1. You can also say something like&lt;/P&gt;

&lt;P&gt;| eval WebPage=mvindex(Path,3) &lt;/P&gt;

&lt;P&gt;This will extract just the page from the longer string so you can count the web pages. You can even say something like&lt;/P&gt;

&lt;P&gt;| stats count(cli) as ClientCount by WebPage &lt;/P&gt;

&lt;P&gt;to get the count of each web page by client. I use this method all the time to show the top web pages hit on my portal.&lt;/P&gt;

&lt;P&gt;Ken&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2011 16:22:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Field-Extraction/m-p/106317#M7474</guid>
      <dc:creator>kmattern</dc:creator>
      <dc:date>2011-11-09T16:22:06Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Field-Extraction/m-p/106318#M7475</link>
      <description>&lt;P&gt;Well, yes.. hmm, just what do the numbers (12,23,28) mean?&lt;/P&gt;

&lt;P&gt;How do you mean that the regex pulls in too much data? Do you not get a field called 'client', containing values like CLIENTA, CLIENTB etc? Or are you getting everything from CLIENTx to the end of the line?&lt;/P&gt;

&lt;P&gt;As I understand your post above, you want a count of all log lines (i.e. all requests regardless of the resource being requested), grouped on the .. 'instance' for lack of a better word. Is this 'instance' just the CLIENTx value or the CLIENTx value in combination with the preceeding number?&lt;/P&gt;

&lt;P&gt;/k&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2011 20:33:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Field-Extraction/m-p/106318#M7475</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2011-11-09T20:33:10Z</dc:date>
    </item>
  </channel>
</rss>

