<?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: Assistance with Extraction in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-out-of-the-winevent-IIS-logs/m-p/564946#M196798</link>
    <description>&lt;P&gt;Try this in the end.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;forwarded_for&amp;gt;\d+\.\d+\.\d+\.\d+?)\s(?&amp;lt;additional_info_2&amp;gt;.*)&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 26 Aug 2021 21:08:18 GMT</pubDate>
    <dc:creator>kartikaykv1</dc:creator>
    <dc:date>2021-08-26T21:08:18Z</dc:date>
    <item>
      <title>How to extract fields out of the winevent IIS logs?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-out-of-the-winevent-IIS-logs/m-p/564930#M196793</link>
      <description>&lt;P&gt;I'm trying to extract fields out of the winevent IIS logs. My regex works in regex101 perfectly. Also I can do something very similar with the rex command, so I feel like the regex should be ok. Here is the regex:&lt;/P&gt;
&lt;P&gt;Message=.*s-sitename\s(?&amp;lt;s_sitename&amp;gt;\w+)\ss-computername\s(?&amp;lt;s_computername&amp;gt;\w+)\ss-ip\s(?&amp;lt;s_ip&amp;gt;\d+\.\d+\.\d+\.\d+|\-)\scs-method\s(?&amp;lt;cs_method&amp;gt;\w+)\scs-uri-stem\s(?&amp;lt;cs_uri_stem&amp;gt;.*)\scs-uri-query\s(?&amp;lt;cs_uri_query&amp;gt;.*)\ss-port\s(?&amp;lt;s_port&amp;gt;.*)\scs-username\s(?&amp;lt;cs_username&amp;gt;.*)\sc-ip\s(?&amp;lt;c_ip&amp;gt;.*)\scs-version\s(?&amp;lt;cs_version&amp;gt;.*)\scs\(User-Agent\)\s(?&amp;lt;cs_User_Agent&amp;gt;.*)\scs\(Cookie\)\s(?&amp;lt;cs_Cookie&amp;gt;.*)\scs\(Referer\)\s(?&amp;lt;cs_Referer&amp;gt;.*)\scs-host\s(?&amp;lt;cs_host&amp;gt;.*)\ssc-status\s(?&amp;lt;sc_status&amp;gt;.*)\ssc-substatus\s(?&amp;lt;sc_substatus&amp;gt;.*)\ssc-win32-status\s(?&amp;lt;sc_win32_status&amp;gt;.*)\ssc-bytes\s(?&amp;lt;sc_bytes&amp;gt;.*)\scs-bytes\s(?&amp;lt;cs_bytes&amp;gt;.*)\stime\-taken\s(?&amp;lt;time_taken&amp;gt;\d+)\s(?&amp;lt;additional_info_1&amp;gt;.*)\s(?:x-forwarded-for|X-Forwarded-For) (?&amp;lt;x_forwarded_for&amp;gt;\d+\.\d+\.\d+\.\d+|\-)\s(?&amp;lt;additional_info_2&amp;gt;.*)&lt;/P&gt;
&lt;P&gt;An example that I'm trying to match to with data changed obviously:&lt;/P&gt;
&lt;P&gt;Message=date 2021-07-26 time 11:40:00 s-sitename XXX1 s-computername Name1 s-ip 0.0.0.0 cs-method GET cs-uri-stem /xxx/xx.dll cs-uri-query - s-port 000 cs-username - c-ip 000.0.0. cs-version HTTP/1.1 cs(User-Agent) AGENT cs(Cookie) - cs(Referer) - cs-host host sc-status 300 sc-substatus 0 sc-win32-status 0 sc-bytes 000 cs-bytes 000 time-taken 000 Connection Keep-Alive Warning - HTTP_CONNECTION Keep-Alive WORD - X-Forwarded-For 00.00.000.0 X-SSL-Client-Cert - HTTP_USER_AGENT AGENT User-Agent AGENT Authorization - Content-Type -&lt;/P&gt;
&lt;P&gt;Unfortunately, when I put the regex in the "New Field Extraction" not a single field shows up.&lt;/P&gt;
&lt;P&gt;Appreciate any help in either the regex, or maybe I'm just doing it wrong somehow.&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 22:33:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-out-of-the-winevent-IIS-logs/m-p/564930#M196793</guid>
      <dc:creator>XOJ</dc:creator>
      <dc:date>2022-05-11T22:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: Assistance with Extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-out-of-the-winevent-IIS-logs/m-p/564938#M196795</link>
      <description>&lt;P&gt;Try adding ? Like&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Message=.*s-sitename\s(?&amp;lt;s_sitename&amp;gt;\w+?)\ss-computername\s(?&amp;lt;s_computername&amp;gt;\w+?)\ss-ip\s….&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It should work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 20:35:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-out-of-the-winevent-IIS-logs/m-p/564938#M196795</guid>
      <dc:creator>kartikaykv1</dc:creator>
      <dc:date>2021-08-26T20:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: Assistance with Extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-out-of-the-winevent-IIS-logs/m-p/564939#M196796</link>
      <description>&lt;P&gt;| rex “&lt;SPAN&gt;Message\=.*s-sitename\s(?&amp;lt;s_sitename&amp;gt;\w+?)\ss-computername\s(?&amp;lt;s_computername&amp;gt;\w+?)\ss-ip\s….”&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 20:37:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-out-of-the-winevent-IIS-logs/m-p/564939#M196796</guid>
      <dc:creator>kartikaykv1</dc:creator>
      <dc:date>2021-08-26T20:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: Assistance with Extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-out-of-the-winevent-IIS-logs/m-p/564942#M196797</link>
      <description>&lt;P&gt;After you posted that, I do see where Splunk PS put the end ? on some of their capture groups, and not on others. Any idea what it does?&lt;/P&gt;&lt;P&gt;In any case, I changed it to the below and still don't see anything being extracted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Message=.*s-sitename\s(?&amp;lt;s_sitename&amp;gt;\w+?)\ss-computername\s(?&amp;lt;s_computername&amp;gt;\w+?)\ss-ip\s(?&amp;lt;s_ip&amp;gt;\d+\.\d+\.\d+\.\d+|\-?)\scs-method\s(?&amp;lt;cs_method&amp;gt;\w+?)\scs-uri-stem\s(?&amp;lt;cs_uri_stem&amp;gt;.*?)\scs-uri-query\s(?&amp;lt;cs_uri_query&amp;gt;.*?)\ss-port\s(?&amp;lt;s_port&amp;gt;.*?)\scs-username\s(?&amp;lt;cs_username&amp;gt;.*?)\sc-ip\s(?&amp;lt;c_ip&amp;gt;.*?)\scs-version\s(?&amp;lt;cs_version&amp;gt;.*?)\scs\(User-Agent\)\s(?&amp;lt;cs_User_Agent&amp;gt;.*?)\scs\(Cookie\)\s(?&amp;lt;cs_Cookie&amp;gt;.*?)\scs\(Referer\)\s(?&amp;lt;cs_Referer&amp;gt;.*?)\scs-host\s(?&amp;lt;cs_host&amp;gt;.*?)\ssc-status\s(?&amp;lt;sc_status&amp;gt;.*?)\ssc-substatus\s(?&amp;lt;sc_substatus&amp;gt;.*?)\ssc-win32-status\s(?&amp;lt;sc_win32_status&amp;gt;.*?)\ssc-bytes\s(?&amp;lt;sc_bytes&amp;gt;.*?)\scs-bytes\s(?&amp;lt;cs_bytes&amp;gt;.*?)\stime\-taken\s(?&amp;lt;time_taken&amp;gt;\d+?)\s(?&amp;lt;additional_info_1&amp;gt;.*?)\s(?:x-forwarded-for|X-Forwarded-For)\s(?&amp;lt;x_forwarded_for&amp;gt;\d+\.\d+\.\d+\.\d+|\-?)\s(?&amp;lt;additional_info_2&amp;gt;.*?)&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 20:57:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-out-of-the-winevent-IIS-logs/m-p/564942#M196797</guid>
      <dc:creator>XOJ</dc:creator>
      <dc:date>2021-08-26T20:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: Assistance with Extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-out-of-the-winevent-IIS-logs/m-p/564946#M196798</link>
      <description>&lt;P&gt;Try this in the end.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;forwarded_for&amp;gt;\d+\.\d+\.\d+\.\d+?)\s(?&amp;lt;additional_info_2&amp;gt;.*)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 21:08:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-out-of-the-winevent-IIS-logs/m-p/564946#M196798</guid>
      <dc:creator>kartikaykv1</dc:creator>
      <dc:date>2021-08-26T21:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: Assistance with Extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-out-of-the-winevent-IIS-logs/m-p/564947#M196799</link>
      <description>&lt;P&gt;Unfortunately, still none of the fields are showing up. I'm headed out for today, but anything that is thought of I'll try tomorrow. I wish there was somewhere I could find errors on what it is unable to parse. Thanks for the help.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 21:18:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-out-of-the-winevent-IIS-logs/m-p/564947#M196799</guid>
      <dc:creator>XOJ</dc:creator>
      <dc:date>2021-08-26T21:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: Assistance with Extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-out-of-the-winevent-IIS-logs/m-p/565082#M196854</link>
      <description>&lt;P&gt;Ok. I've updated it just to this, and even this single field isn't showing up... any other ideas?&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Message\=.*s-sitename\s(?&amp;lt;s_sitename&amp;gt;\w+?)\ss-computername\s&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Aug 2021 16:52:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-out-of-the-winevent-IIS-logs/m-p/565082#M196854</guid>
      <dc:creator>XOJ</dc:creator>
      <dc:date>2021-08-27T16:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: Assistance with Extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-out-of-the-winevent-IIS-logs/m-p/565096#M196861</link>
      <description>&lt;P&gt;Probably let's connect over zoom or g-meet then... Kartikaykv@gmail.com&lt;/P&gt;</description>
      <pubDate>Fri, 27 Aug 2021 18:08:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-out-of-the-winevent-IIS-logs/m-p/565096#M196861</guid>
      <dc:creator>kartikaykv1</dc:creator>
      <dc:date>2021-08-27T18:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: Assistance with Extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-out-of-the-winevent-IIS-logs/m-p/597470#M208015</link>
      <description>&lt;P&gt;I got the below to work:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;s-sitename\s(?&amp;lt;s_sitename&amp;gt;\w+?)\ss-computername\s(?&amp;lt;s_computername&amp;gt;.*)\ss-ip\s(?&amp;lt;s_ip&amp;gt;.*?)\scs-method\s(?&amp;lt;cs_method&amp;gt;\w+?)\scs-uri-stem\s(?&amp;lt;cs_uri_stem&amp;gt;.*?)\scs-uri-query\s(?&amp;lt;cs_uri_query&amp;gt;.*?)\ss-port\s(?&amp;lt;s_port&amp;gt;.*?)\scs-username\s(?&amp;lt;cs_username&amp;gt;.*?)\sc-ip\s(?&amp;lt;c_ip&amp;gt;.*?)\scs-version\s(?&amp;lt;cs_version&amp;gt;.*?)\scs\(User-Agent\)\s(?&amp;lt;cs_User_Agent&amp;gt;.*?)\scs\(Cookie\)\s(?&amp;lt;cs_Cookie&amp;gt;.*?)\scs\(Referer\)\s(?&amp;lt;cs_Referer&amp;gt;.*?)\scs-host\s(?&amp;lt;cs_host&amp;gt;.*?)\ssc-status\s(?&amp;lt;sc_status&amp;gt;.*?)\ssc-substatus\s(?&amp;lt;sc_substatus&amp;gt;.*?)\ssc-win32-status\s(?&amp;lt;sc_win32_status&amp;gt;.*?)\ssc-bytes\s(?&amp;lt;sc_bytes&amp;gt;.*?)\scs-bytes\s(?&amp;lt;cs_bytes&amp;gt;.*?)\stime\-taken\s(?&amp;lt;time_taken&amp;gt;\d+?)\s(?&amp;lt;additional_info_1&amp;gt;.*)\s?(?:x-forwarded-for|X-Forwarded-For)\s(?&amp;lt;x_forwarded_for&amp;gt;(?:\d+\.\d+\.\d+\.\d+|\-))\s?(?&amp;lt;additional_info_2&amp;gt;.*)?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 19:14:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-out-of-the-winevent-IIS-logs/m-p/597470#M208015</guid>
      <dc:creator>XOJ</dc:creator>
      <dc:date>2022-05-11T19:14:50Z</dc:date>
    </item>
  </channel>
</rss>

