<?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 I extract the regex statement that captures every line under a field until the empty line that divides the lists? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-the-regex-statement-that-captures-every-line/m-p/322680#M96344</link>
    <description>&lt;PRE&gt;&lt;CODE&gt;Policies with no targets attached:
 SeacoDR_Weekly (user: LGAdmin)
 Old_CCI_CCP_11Min (user: LGAdmin)
 CCI_SAP_Monthly_Full (user: LGAdmin)
 CCI_AMI (user: LGAdmin)
 CCI_MDM_Monthly (user: LGAdmin)
 CCI_CRM_Monthly (user: LGAdmin)
 CCI_SAP_ERP_15min_log (user: LGAdmin)
 CCI_SAP_ERP_Weekly (user: LGAdmin)
 CCI_SAP_ERP_Monthly (user: LGAdmin)
 CCI_SAP_ERP_Yearly (user: LGAdmin)
 MG_EPOS_DAILY_PROD (user: LGAdmin)
 MG_SAP_DEV_QA_LOG (user: LGAdmin)
 CUP_DB_cupbopdb01 (user: LGAdmin)
 Indivior_WEB_Daily (user: LGAdmin)
 Seaco_Weekly (user: Seaco_CPM)


Warning - Missing backups in following policies:
- Policy 'CCI_GRC_11Min' (user:'LGAdmin',account:'CCI')
- Policy 'CCI_Voyage_INT_12min_Backup_Volumes' (user:'LGAdmin',account:'CCI')
- Policy 'CCI_BOFC_12min' (user:'LGAdmin',account:'CCI')
- Policy 'CCI_BW_12min_Log' (user:'LGAdmin',account:'CCI')
- Policy 'CCI_Arete_12min' (user:'LGAdmin',account:'CCI')
- Policy 'MG_SAP_PRD_DB_11min' (user:'LGAdmin',account:'XXX')
- Policy 'BW_HANAdata' (user:'LGAdmin',account:'XXX')
- Policy 'CUP_DB_cuperpdb01' (user:'LGAdmin',account:'CUP')
- Policy 'CUP_DB_cupotpdb03' (user:'LGAdmin',account:'CUP')
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Fragment of the event, can't add the entire thing but the event has a part that is json formated and these list are in one of the objects.&lt;/P&gt;</description>
    <pubDate>Mon, 26 Feb 2018 16:48:49 GMT</pubDate>
    <dc:creator>MedralaG</dc:creator>
    <dc:date>2018-02-26T16:48:49Z</dc:date>
    <item>
      <title>How can I extract the regex statement that captures every line under a field until the empty line that divides the lists?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-the-regex-statement-that-captures-every-line/m-p/322679#M96343</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;List of policies:
 policy1
 policy2
 policy3

Another list:
 something1
 something2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How can I extract the each name of policy (so that I can put them into multi-value fields)?&lt;BR /&gt;
Essentially I would need a regex statement that captures every line under "List of policies:" until the empty line that divides the lists.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2018 16:09:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-the-regex-statement-that-captures-every-line/m-p/322679#M96343</guid>
      <dc:creator>MedralaG</dc:creator>
      <dc:date>2018-02-26T16:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: How can I extract the regex statement that captures every line under a field until the empty line that divides the lists?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-the-regex-statement-that-captures-every-line/m-p/322680#M96344</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;Policies with no targets attached:
 SeacoDR_Weekly (user: LGAdmin)
 Old_CCI_CCP_11Min (user: LGAdmin)
 CCI_SAP_Monthly_Full (user: LGAdmin)
 CCI_AMI (user: LGAdmin)
 CCI_MDM_Monthly (user: LGAdmin)
 CCI_CRM_Monthly (user: LGAdmin)
 CCI_SAP_ERP_15min_log (user: LGAdmin)
 CCI_SAP_ERP_Weekly (user: LGAdmin)
 CCI_SAP_ERP_Monthly (user: LGAdmin)
 CCI_SAP_ERP_Yearly (user: LGAdmin)
 MG_EPOS_DAILY_PROD (user: LGAdmin)
 MG_SAP_DEV_QA_LOG (user: LGAdmin)
 CUP_DB_cupbopdb01 (user: LGAdmin)
 Indivior_WEB_Daily (user: LGAdmin)
 Seaco_Weekly (user: Seaco_CPM)


Warning - Missing backups in following policies:
- Policy 'CCI_GRC_11Min' (user:'LGAdmin',account:'CCI')
- Policy 'CCI_Voyage_INT_12min_Backup_Volumes' (user:'LGAdmin',account:'CCI')
- Policy 'CCI_BOFC_12min' (user:'LGAdmin',account:'CCI')
- Policy 'CCI_BW_12min_Log' (user:'LGAdmin',account:'CCI')
- Policy 'CCI_Arete_12min' (user:'LGAdmin',account:'CCI')
- Policy 'MG_SAP_PRD_DB_11min' (user:'LGAdmin',account:'XXX')
- Policy 'BW_HANAdata' (user:'LGAdmin',account:'XXX')
- Policy 'CUP_DB_cuperpdb01' (user:'LGAdmin',account:'CUP')
- Policy 'CUP_DB_cupotpdb03' (user:'LGAdmin',account:'CUP')
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Fragment of the event, can't add the entire thing but the event has a part that is json formated and these list are in one of the objects.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2018 16:48:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-the-regex-statement-that-captures-every-line/m-p/322680#M96344</guid>
      <dc:creator>MedralaG</dc:creator>
      <dc:date>2018-02-26T16:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: How can I extract the regex statement that captures every line under a field until the empty line that divides the lists?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-the-regex-statement-that-captures-every-line/m-p/322681#M96345</link>
      <description>&lt;P&gt;Try this :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...|rex max_match=0 "-\sPolicy\s'(?&amp;lt;Policy&amp;gt;[^']+)'[^)]+"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;A href="https://regex101.com/r/WzScn3/1/"&gt;https://regex101.com/r/WzScn3/1/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2018 17:01:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-the-regex-statement-that-captures-every-line/m-p/322681#M96345</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-02-26T17:01:07Z</dc:date>
    </item>
  </channel>
</rss>

