<?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 to extract fields between backslashes and quotes with rex command? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-between-backslashes-and-quotes-with-rex/m-p/468814#M131996</link>
    <description>&lt;P&gt;the bold should look like this | rex field=_raw "from &lt;A href="https://community.splunk.com/?%5B%5E'%5Dw+-w+"&gt;\'&lt;/A&gt;" &lt;/P&gt;</description>
    <pubDate>Wed, 03 Jun 2020 17:22:29 GMT</pubDate>
    <dc:creator>kjonesdba_lm</dc:creator>
    <dc:date>2020-06-03T17:22:29Z</dc:date>
    <item>
      <title>How to extract fields between backslashes and quotes with rex command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-between-backslashes-and-quotes-with-rex/m-p/468808#M131990</link>
      <description>&lt;P&gt;These rows have a field that begins and ends with a quote, but have different meanings between the backslashes.&lt;/P&gt;
&lt;P&gt;1st and 2nd rows are: &lt;CODE&gt;'Server_Name\Instance_Name'&lt;/CODE&gt;&lt;BR /&gt;from &lt;CODE&gt;'vmpit-ugzcg8xk\MSSQLSERVER'&lt;/CODE&gt;&lt;BR /&gt;from &lt;CODE&gt;'vmpit-ugzcg8xk.lm.lmig.com\MSSQLSERVER'&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;3rd and 4th rows are: &lt;CODE&gt;'AOAG_Name\Server_Name\Instance_Name'&lt;/CODE&gt;&lt;BR /&gt;from &lt;CODE&gt;'rbrk_ag1\vmpit-ugzcg8xk\MSSQLSERVER'&lt;/CODE&gt;&lt;BR /&gt;from &lt;CODE&gt;'rbrk_ag1\vmpit-ugzcg8xk.lm.lmig.com\MSSQLSERVER'&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;I need to be able to have a &lt;CODE&gt;rex&lt;/CODE&gt; command that finds &lt;CODE&gt;Server_Name&lt;/CODE&gt;, &lt;CODE&gt;Instance_Name&lt;/CODE&gt;, and &lt;CODE&gt;AOAG_Name&lt;/CODE&gt; from these 4 rows ( &lt;CODE&gt;AOAG_Name&lt;/CODE&gt; would not have a value in the rows where it is not applicable).&lt;/P&gt;
&lt;P&gt;My 'old' &lt;CODE&gt;rex&lt;/CODE&gt; command before the data changed was:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;| rex field=_raw "from [\'](?[^\']\w+-\w+)"
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This is probably pretty easy for someone who is good with &lt;CODE&gt;rex&lt;/CODE&gt;, but I am not and have not yet figured out how to do it.&lt;/P&gt;
&lt;P&gt;Would anyone be able to help with this?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jun 2020 17:27:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-between-backslashes-and-quotes-with-rex/m-p/468808#M131990</guid>
      <dc:creator>kjonesdba_lm</dc:creator>
      <dc:date>2020-06-08T17:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract fields between backslashes and quotes with rex command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-between-backslashes-and-quotes-with-rex/m-p/468809#M131991</link>
      <description>&lt;P&gt;This should work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="storage" sourcetype="rubrik:prod" "status=Failure" ndc="MSSQL_DB_BACKUP_" NOT "is not online." AND "eventSeverity=Critical"
| rex field=_raw "from '((?&amp;lt;AOAG_Name&amp;gt;[^\\\]+)\\\)?(?&amp;lt;Server_Name&amp;gt;[^\\\]+)\\\(?&amp;lt;Instance_Name&amp;gt;[^\\\]+)'. "    
| search NOT [ | inputlookup Servers_Pending_Deletion.csv | fields SERVER_NAME ]
| dedup SERVER_NAME sortby SERVER_NAME
| table SERVER_NAME _time _raw
| eval lm_action="ticket"
| eval lm_assigned_group="HS-AE-DATABASE-ALERTS"
| eval lm_summary=(SERVER_NAME." Rubrik status=MSSQL PR DB Failure")
| eval lm_ci=SERVER_NAME
| eval lm_severity="CRITICAL"
| eval lm_status="OPEN"
| eval lm_market="Hosting"
| eval lm_notes=(SERVER_NAME." "._raw)
| eval lm_env="PR"
| table lm*
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The first capturing group for &lt;CODE&gt;AOAG_Name&lt;/CODE&gt; (first set of nested parentheses) is optional, as denoted by the &lt;CODE&gt;?&lt;/CODE&gt; after the capturing group. This regex will match one or more non-backslash characters between backslashes for &lt;CODE&gt;Server_Name&lt;/CODE&gt; and &lt;CODE&gt;Instance_Name&lt;/CODE&gt;. Matching backslashes is always tricky in regexes, but triple-backslashes worked for me on Splunk Cloud 7.2. &lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2020 01:33:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-between-backslashes-and-quotes-with-rex/m-p/468809#M131991</guid>
      <dc:creator>grittonc</dc:creator>
      <dc:date>2020-06-03T01:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract fields between backslashes and quotes with rex command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-between-backslashes-and-quotes-with-rex/m-p/468810#M131992</link>
      <description>&lt;P&gt;This is actually the _raw data in splunk and original splunk query.. hopefully this will help with the changes to the query&lt;/P&gt;

&lt;P&gt;1st and 2nd rows format&lt;BR /&gt;
2020-06-02T22:15:58+00:00 10.177.121.152 1 2020-06-02T22:15:58.707Z RVMHM188S014111 Rubrik-JobFetcherLoop - EVENT [mdc@18060 instanceId="-1" jobId="" jobType="" ndc="MSSQL_DB_BATCH_BACKUP_84c7801c-91b9-4a21-ae97-16a09b68b47f_01d2ffcd-c800-41df-8d61-854d0c5d3171:::2" pid="21544" profile="false" taskId=""] [eventdetail@49929 eventType=Backup eventName=Snapshot.BackupFromLocationFailed objectType=Mssql objectName=TEST1 eventId=1591136158613-30269267-ed66-4fd2-be78-f43db513975f eventSeriesId=fa25e08b-7149-4846-b852-1d94b0beebdd objectId=6d16756a-196f-45d7-a34e-bb80ede64268 status=Failure eventSeverity=Critical locationName=- clusterName=rubrik_pdc_dev nodeId=RVMHM188S014111 nodeIpAddress=10.176.50.81] Failed backup of Microsoft SQL Server Database 'TEST1' &lt;STRONG&gt;from 'VMPIT-H4RBRK13.lm.lmig.com\MSSQLSERVER'&lt;/STRONG&gt;. Reason: Internal server error 'Protecting the 'TEST1' database requires 'NT AUTHORITY\SYSTEM' to be a sysadmin or have the db_backupoperator role for that database.'&lt;/P&gt;

&lt;P&gt;2020-06-02T22:00:09+00:00 10.177.121.152 1 2020-06-02T22:00:09.775Z RVMHM188S014111 Rubrik-JobFetcherLoop - EVENT [mdc@18060 instanceId="-1" jobId="" jobType="" ndc="MSSQL_DB_BATCH_BACKUP_2140df0f-dd16-4d37-8828-ed017862369b_3ea7bcf7-9528-48ad-bd89-a593c109ce74:::0" pid="21544" profile="false" taskId=""] [eventdetail@49929 eventType=Backup eventName=Snapshot.BackupFromLocationStarted objectType=Mssql objectName=master eventId=1591135209716-d5f5301a-99d7-4cdc-bc51-688b3c8c9895 eventSeriesId=21978596-fd3b-46d9-8820-a8b417076c9f objectId=70fb4b7b-37c4-486a-84a2-cf86d5a64b4a status=Running eventSeverity=Informational locationName=- clusterName=rubrik_pdc_dev nodeId=RVMHM188S014111 nodeIpAddress=10.176.50.81] Creating backup of Microsoft SQL Server Database 'master' &lt;STRONG&gt;from 'vmpit-h4rbrk04\MSSQLSERVER'&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;3rd and 4th rows&lt;BR /&gt;
2020-06-01T22:09:32+00:00 10.177.121.152 1 2020-06-01T22:09:32.620Z RVMHM188S014111 Rubrik-JobFetcherLoop - EVENT [mdc@18060 instanceId="-1" jobId="" jobType="" ndc="MSSQL_DB_BATCH_BACKUP_2140df0f-dd16-4d37-8828-ed017862369b_f9977671-210b-4483-9422-2d8ccb34723f:::0" pid="21544" profile="false" taskId=""] [eventdetail@49929 eventType=Backup eventName=Snapshot.BackupFromLocationSucceeded objectType=Mssql objectName=random eventId=1591049372335-0534736f-1a57-40c6-8030-28ef1cf3b2aa eventSeriesId=b62d38d2-cc31-4eb4-baac-b68a5f04187c objectId=f68cf817-5e94-498d-acd0-1715839e7d52 status=Success eventSeverity=Informational locationName=- clusterName=rubrik_pdc_dev nodeId=RVMHM188S014111 nodeIpAddress=10.176.50.81] Completed backup of Microsoft SQL Server Database 'random' &lt;STRONG&gt;from 'RBRK_AG1\vmpit-h4rbrk04\MSSQLSERVER'&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;original splunk query&lt;BR /&gt;
index="storage" sourcetype="rubrik:prod" "status=Failure" ndc="MSSQL_DB_&lt;EM&gt;BACKUP_&lt;/EM&gt;"  NOT "is not online." AND  "eventSeverity=Critical"&lt;BR /&gt;
&lt;STRONG&gt;| rex field=_raw "from &lt;A href="https://community.splunk.com/?%5B%5E'%5Dw+-w+" target="_blank"&gt;\'&lt;/A&gt;"&lt;/STRONG&gt; &lt;/P&gt;

&lt;P&gt;| search NOT [ | inputlookup Servers_Pending_Deletion.csv | fields SERVER_NAME ]&lt;BR /&gt;
| dedup SERVER_NAME sortby SERVER_NAME&lt;BR /&gt;
| table SERVER_NAME _time _raw&lt;BR /&gt;
| eval lm_action="ticket"&lt;BR /&gt;
| eval lm_assigned_group="HS-AE-DATABASE-ALERTS"&lt;BR /&gt;
| eval lm_summary=(SERVER_NAME." Rubrik status=MSSQL PR DB Failure")&lt;BR /&gt;
| eval lm_ci=SERVER_NAME&lt;BR /&gt;
| eval lm_severity="CRITICAL"&lt;BR /&gt;
| eval lm_status="OPEN"&lt;BR /&gt;
| eval lm_market="Hosting"&lt;BR /&gt;
| eval lm_notes=(SERVER_NAME." "._raw)&lt;BR /&gt;
| eval lm_env="PR"&lt;BR /&gt;
| table lm*&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:35:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-between-backslashes-and-quotes-with-rex/m-p/468810#M131992</guid>
      <dc:creator>kjonesdba_lm</dc:creator>
      <dc:date>2020-09-30T05:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract fields between backslashes and quotes with rex command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-between-backslashes-and-quotes-with-rex/m-p/468811#M131993</link>
      <description>&lt;P&gt;Can you paste your search using the "code sample" button? &lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2020 15:01:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-between-backslashes-and-quotes-with-rex/m-p/468811#M131993</guid>
      <dc:creator>grittonc</dc:creator>
      <dc:date>2020-06-03T15:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract fields between backslashes and quotes with rex command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-between-backslashes-and-quotes-with-rex/m-p/468812#M131994</link>
      <description>&lt;P&gt;I am really sorry but I dont see the "code sample" button.  I have only used answers.splunk.com once before&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2020 16:22:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-between-backslashes-and-quotes-with-rex/m-p/468812#M131994</guid>
      <dc:creator>kjonesdba_lm</dc:creator>
      <dc:date>2020-06-03T16:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract fields between backslashes and quotes with rex command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-between-backslashes-and-quotes-with-rex/m-p/468813#M131995</link>
      <description>&lt;P&gt;I will add the 'correct' old(current) splunk query here...&lt;/P&gt;

&lt;P&gt;index="storage" sourcetype="rubrik:prod" "status=Failure" ndc="MSSQL_DB_&lt;EM&gt;BACKUP_&lt;/EM&gt;"  NOT "is not online." AND  "eventSeverity=Critical"&lt;BR /&gt;
&lt;STRONG&gt;| rex field=_raw "from &lt;A href="https://community.splunk.com/?%5B%5E'%5Dw+-w+" target="_blank"&gt;\'&lt;/A&gt;"&lt;/STRONG&gt; &lt;/P&gt;

&lt;P&gt;| search NOT [ | inputlookup Servers_Pending_Deletion.csv | fields SERVER_NAME ]&lt;BR /&gt;
| dedup SERVER_NAME sortby SERVER_NAME&lt;BR /&gt;
| table SERVER_NAME _time _raw&lt;BR /&gt;
| eval lm_action="ticket"&lt;BR /&gt;
| eval lm_assigned_group="HS-AE-DATABASE-ALERTS"&lt;BR /&gt;
| eval lm_summary=(SERVER_NAME." Rubrik status=MSSQL PR DB Failure")&lt;BR /&gt;
| eval lm_ci=SERVER_NAME&lt;BR /&gt;
| eval lm_severity="CRITICAL"&lt;BR /&gt;
| eval lm_status="OPEN"&lt;BR /&gt;
| eval lm_market="Hosting"&lt;BR /&gt;
| eval lm_notes=(SERVER_NAME." "._raw)&lt;BR /&gt;
| eval lm_env="PR"&lt;BR /&gt;
| table lm*&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:37:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-between-backslashes-and-quotes-with-rex/m-p/468813#M131995</guid>
      <dc:creator>kjonesdba_lm</dc:creator>
      <dc:date>2020-09-30T05:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract fields between backslashes and quotes with rex command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-between-backslashes-and-quotes-with-rex/m-p/468814#M131996</link>
      <description>&lt;P&gt;the bold should look like this | rex field=_raw "from &lt;A href="https://community.splunk.com/?%5B%5E'%5Dw+-w+"&gt;\'&lt;/A&gt;" &lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2020 17:22:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-between-backslashes-and-quotes-with-rex/m-p/468814#M131996</guid>
      <dc:creator>kjonesdba_lm</dc:creator>
      <dc:date>2020-06-03T17:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract fields between backslashes and quotes with rex command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-between-backslashes-and-quotes-with-rex/m-p/468815#M131997</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;index="storage" sourcetype="rubrik:dev" "status=Failure" ndc="MSSQL_DB_*BACKUP_*"  NOT "is not online." AND  "eventSeverity=Critical"
| rex field=_raw "from [\'](?&amp;lt;SERVER_NAME&amp;gt;[^\']\w+-\w+)" 

| search NOT [ | inputlookup Servers_Pending_Deletion.csv | fields SERVER_NAME ]
| dedup SERVER_NAME sortby SERVER_NAME
| table SERVER_NAME _time _raw
| eval lm_action="ticket"
| eval lm_assigned_group="HS-AE-DATABASE-ALERTS"
| eval lm_summary=(SERVER_NAME." Rubrik status=MSSQL PR DB Failure")
| eval lm_ci=SERVER_NAME
| eval lm_severity="CRITICAL"
| eval lm_status="OPEN"
| eval lm_market="Hosting"
| eval lm_notes=(SERVER_NAME." "._raw)
| eval lm_env="PR"
| table lm*
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 03 Jun 2020 17:23:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-between-backslashes-and-quotes-with-rex/m-p/468815#M131997</guid>
      <dc:creator>kjonesdba_lm</dc:creator>
      <dc:date>2020-06-03T17:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract fields between backslashes and quotes with rex command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-between-backslashes-and-quotes-with-rex/m-p/468816#M131998</link>
      <description>&lt;P&gt;what happens if you substitute:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex field=_raw ".*from '((?&amp;lt;AOAG_Name&amp;gt;[^\\\]+)\\\)?(?&amp;lt;Server_Name&amp;gt;[^\\\]+)\\\(?&amp;lt;Instance_Name&amp;gt;[^\\\]+)'.*"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;for the &lt;CODE&gt;rex&lt;/CODE&gt; statement that you have?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2020 18:08:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-between-backslashes-and-quotes-with-rex/m-p/468816#M131998</guid>
      <dc:creator>grittonc</dc:creator>
      <dc:date>2020-06-03T18:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract fields between backslashes and quotes with rex command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-between-backslashes-and-quotes-with-rex/m-p/468817#M131999</link>
      <description>&lt;P&gt;It is not quite working it gives this for SERVER_NAME (lm_ci)&lt;/P&gt;

&lt;P&gt;lm_ci&lt;BR /&gt;
MSSQLSERVER'. Reason: Internal server error 'Protecting the 'MSP_T1_11_EXP' database requires 'NT AUTHORITY&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:37:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-between-backslashes-and-quotes-with-rex/m-p/468817#M131999</guid>
      <dc:creator>kjonesdba_lm</dc:creator>
      <dc:date>2020-09-30T05:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract fields between backslashes and quotes with rex command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-between-backslashes-and-quotes-with-rex/m-p/468818#M132000</link>
      <description>&lt;P&gt;for this _raw data&lt;/P&gt;

&lt;P&gt;2020-06-02T22:15:50+00:00 10.177.121.152 1 2020-06-02T22:15:50.797Z RVMHM188S014111 Rubrik-JobFetcherLoop - EVENT [mdc@18060 instanceId="-1" jobId="" jobType="" ndc="MSSQL_DB_BATCH_BACKUP_84c7801c-91b9-4a21-ae97-16a09b68b47f_01d2ffcd-c800-41df-8d61-854d0c5d3171:::2" pid="21544" profile="false" taskId=""] [eventdetail@49929 eventType=Backup eventName=Snapshot.BackupFromLocationFailed objectType=Mssql objectName=MSP_T1_11_EXP eventId=1591136150660-60fb3bcb-b292-4914-a105-dd294abf5a47 eventSeriesId=b2f70082-c262-417c-bacf-ad3e04cb5ae5 objectId=28bad07f-97f7-4e5b-b2c5-110d25ad3380 status=Failure eventSeverity=Critical locationName=- clusterName=rubrik_pdc_dev nodeId=RVMHM188S014111 nodeIpAddress=10.176.50.81] Failed backup of Microsoft SQL Server Database 'MSP_T1_11_EXP' from 'VMPIT-H4RBRK13.lm.lmig.com\MSSQLSERVER'. Reason: Internal server error 'Protecting the 'MSP_T1_11_EXP' database requires 'NT AUTHORITY\SYSTEM' to be a sysadmin or have the db_backupoperator role for that database.'&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:37:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-between-backslashes-and-quotes-with-rex/m-p/468818#M132000</guid>
      <dc:creator>kjonesdba_lm</dc:creator>
      <dc:date>2020-09-30T05:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract fields between backslashes and quotes with rex command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-between-backslashes-and-quotes-with-rex/m-p/468819#M132001</link>
      <description>&lt;P&gt;I think the issue is that AOAG_Name sometimes does not exist in _raw - or - Server_Name is not always the first value in the string.. When AOAG_Name exists then Server_Name is the second value in the string.. When AOAG_Name doesn't exist then Server_Name is the first value in the string&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:37:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-between-backslashes-and-quotes-with-rex/m-p/468819#M132001</guid>
      <dc:creator>kjonesdba_lm</dc:creator>
      <dc:date>2020-09-30T05:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract fields between backslashes and quotes with rex command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-between-backslashes-and-quotes-with-rex/m-p/468820#M132002</link>
      <description>&lt;P&gt;OK, fixed. Please see answer below.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jun 2020 11:54:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-between-backslashes-and-quotes-with-rex/m-p/468820#M132002</guid>
      <dc:creator>grittonc</dc:creator>
      <dc:date>2020-06-04T11:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract fields between backslashes and quotes with rex command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-between-backslashes-and-quotes-with-rex/m-p/468821#M132003</link>
      <description>&lt;P&gt;Awesome  still testing this out and working so far!... I made these changes .. made server_name upper case and stripped out the .lm.lmig.com.. I will get back this afternoon.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex field=_raw "from '((?&amp;lt;AOAG_Name&amp;gt;[^\\\]+)\\\)?(?&amp;lt;SERVER_NAME&amp;gt;[^\\\]+)\\\(?&amp;lt;Instance_Name&amp;gt;[^\\\]+)'. "  
| rex field=SERVER_NAME "(?&amp;lt;SERVER_NAME&amp;gt;\w+-\w+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 04 Jun 2020 13:09:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-between-backslashes-and-quotes-with-rex/m-p/468821#M132003</guid>
      <dc:creator>kjonesdba_lm</dc:creator>
      <dc:date>2020-06-04T13:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract fields between backslashes and quotes with rex command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-between-backslashes-and-quotes-with-rex/m-p/468822#M132004</link>
      <description>&lt;P&gt;Thank you so much grittonc and to4kawa.. The answer is perfect. and the explanations.!  This will help me down the road.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jun 2020 18:02:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-between-backslashes-and-quotes-with-rex/m-p/468822#M132004</guid>
      <dc:creator>kjonesdba_lm</dc:creator>
      <dc:date>2020-06-04T18:02:31Z</dc:date>
    </item>
  </channel>
</rss>

