<?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 do I extract farm name from IIS logs to a table? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-farm-name-from-IIS-logs-to-a-table/m-p/457855#M129298</link>
    <description>&lt;P&gt;@smudge797, Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...|rex field=&amp;lt;fieldname&amp;gt; "https:\/\/([^\/]+\/){3}(?&amp;lt;sites&amp;gt;[^\/]+)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;try this run anywhere search-&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults |eval a="https://sp004.mydomain.net/sites1/spvfvfst/Access%20Requests/pendingreq.aspx..."|rex field=a "https:\/\/([^\/]+\/){3}(?&amp;lt;sites&amp;gt;[^\/]+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 14 Sep 2018 13:16:56 GMT</pubDate>
    <dc:creator>493669</dc:creator>
    <dc:date>2018-09-14T13:16:56Z</dc:date>
    <item>
      <title>How do I extract farm name from IIS logs to a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-farm-name-from-IIS-logs-to-a-table/m-p/457854#M129297</link>
      <description>&lt;P&gt;I'm Trying to run a table on IIS logs. The farm is https://&lt;EM&gt;sp001&lt;/EM&gt;, examples below)...  However, within the farm we have individual sites. I would like to be able to extract the site name, like "Access%20Requests KYCOpsSupportDocuments" etc... , to table:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://sp004.mydomain.net/sites1/spvfvfst/Access%20Requests/pendingreq.aspx"&gt;https://sp004.mydomain.net/sites1/spvfvfst/Access%20Requests/pendingreq.aspx&lt;/A&gt;...&lt;BR /&gt;
&lt;A href="https://sp004.mydomain.net/sites1/spvfvfst/KYCOpsSupportDocuments/"&gt;https://sp004.mydomain.net/sites1/spvfvfst/KYCOpsSupportDocuments/&lt;/A&gt;...&lt;BR /&gt;
&lt;A href="https://sp004.mydomain.net/sites1/spvfvfst/KYCOpsSupportDocuments/"&gt;https://sp004.mydomain.net/sites1/spvfvfst/KYCOpsSupportDocuments/&lt;/A&gt;...&lt;BR /&gt;
&lt;A href="https://sp004.mydomain.net/sites1/spvfvfst/Blah/LOB%20Es"&gt;https://sp004.mydomain.net/sites1/spvfvfst/Blah/LOB%20Es&lt;/A&gt;...&lt;BR /&gt;
&lt;A href="https://sp004.mydomain.net/sites1/spvfvfst/_vti_bin/LOB%20Escalation"&gt;https://sp004.mydomain.net/sites1/spvfvfst/_vti_bin/LOB%20Escalation&lt;/A&gt;..&lt;BR /&gt;
&lt;A href="https://sp004.mydomain.net/sites1/spvfvfst/12345dddd/LOB%20Escalation3bivey%25252C%252520Sara&amp;amp;ContentTypeId=0x010047A299BD56B33B42903EAD238B543EC1&amp;amp;RootFolder=%2Fsites1%2Fspvfvfst%2FLists%2FL"&gt;https://sp004.mydomain.net/sites1/spvfvfst/12345dddd/LOB%20Escalation3bivey%25252C%252520Sara&amp;amp;ContentTypeId=0x010047A299BD56B33B42903EAD238B543EC1&amp;amp;RootFolder=%2Fsites1%2Fspvfvfst%2FLists%2FL&lt;/A&gt;...&lt;BR /&gt;
&lt;A href="https://sp004.mydomain.net/sites1/spvfvfst/Lists/LOB%20Escalation8B"&gt;https://sp004.mydomain.net/sites1/spvfvfst/Lists/LOB%20Escalation8B&lt;/A&gt;...&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 14 Sep 2018 12:55:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-farm-name-from-IIS-logs-to-a-table/m-p/457854#M129297</guid>
      <dc:creator>smudge797</dc:creator>
      <dc:date>2018-09-14T12:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: How do I extract farm name from IIS logs to a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-farm-name-from-IIS-logs-to-a-table/m-p/457855#M129298</link>
      <description>&lt;P&gt;@smudge797, Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...|rex field=&amp;lt;fieldname&amp;gt; "https:\/\/([^\/]+\/){3}(?&amp;lt;sites&amp;gt;[^\/]+)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;try this run anywhere search-&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults |eval a="https://sp004.mydomain.net/sites1/spvfvfst/Access%20Requests/pendingreq.aspx..."|rex field=a "https:\/\/([^\/]+\/){3}(?&amp;lt;sites&amp;gt;[^\/]+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 14 Sep 2018 13:16:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-farm-name-from-IIS-logs-to-a-table/m-p/457855#M129298</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-09-14T13:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: How do I extract farm name from IIS logs to a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-farm-name-from-IIS-logs-to-a-table/m-p/457856#M129299</link>
      <description>&lt;P&gt;hi @smudge797 &lt;/P&gt;

&lt;P&gt;try this query &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | rex field=&amp;lt;fieldname&amp;gt; "/spvfvfst/(?&amp;lt;MyField&amp;gt;[^,\s]+)/"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 14 Sep 2018 13:18:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-farm-name-from-IIS-logs-to-a-table/m-p/457856#M129299</guid>
      <dc:creator>harishalipaka</dc:creator>
      <dc:date>2018-09-14T13:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: How do I extract farm name from IIS logs to a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-farm-name-from-IIS-logs-to-a-table/m-p/457857#M129300</link>
      <description>&lt;P&gt;Hi @smudge797,   Try this &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search | rex field=_raw max_match=0 "spvfvfst\/(?&amp;lt;site_name&amp;gt;\S+)\/"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 16 Sep 2018 03:33:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-farm-name-from-IIS-logs-to-a-table/m-p/457857#M129300</guid>
      <dc:creator>imthesplunker</dc:creator>
      <dc:date>2018-09-16T03:33:40Z</dc:date>
    </item>
  </channel>
</rss>

