<?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: Regex question/request in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/Regex-question-request/m-p/488431#M7835</link>
    <description>&lt;P&gt;Based on the example you provided in the question comments, this should return the data you are looking for:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex "(?&amp;lt;PDFFileName&amp;gt;\S+)\.[Pp][Dd][Ff]"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Here's the regex101 link showing it function on your example: &lt;A href="https://regex101.com/r/OyLl8z/1"&gt;https://regex101.com/r/OyLl8z/1&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 30 Sep 2019 16:01:02 GMT</pubDate>
    <dc:creator>dmarling</dc:creator>
    <dc:date>2019-09-30T16:01:02Z</dc:date>
    <item>
      <title>Regex question/request</title>
      <link>https://community.splunk.com/t5/Reporting/Regex-question-request/m-p/488425#M7829</link>
      <description>&lt;P&gt;Is it possible to use regex to extract values in events that always end with .PDF ? I have got a chain of events, somewhere in this process a PDF doucment is generated, So the name of the PDF is not in all the events. &lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2019 13:13:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Regex-question-request/m-p/488425#M7829</guid>
      <dc:creator>Mike6960</dc:creator>
      <dc:date>2019-09-20T13:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: Regex question/request</title>
      <link>https://community.splunk.com/t5/Reporting/Regex-question-request/m-p/488426#M7830</link>
      <description>&lt;P&gt;Please share some sample data and what you want extracted from it.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2019 13:49:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Regex-question-request/m-p/488426#M7830</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-09-20T13:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: Regex question/request</title>
      <link>https://community.splunk.com/t5/Reporting/Regex-question-request/m-p/488427#M7831</link>
      <description>&lt;P&gt;YOu should be able to use following regex (assuming that youru PDF file name contains alphanueric characters only)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search | rex "(?&amp;lt;PDFFileName&amp;gt;[A-z0-9_]+\.(pdf|PDF))"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Again, for better solution, please provide sample data and highlight the portion you want to extract.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2019 13:52:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Regex-question-request/m-p/488427#M7831</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2019-09-20T13:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: Regex question/request</title>
      <link>https://community.splunk.com/t5/Reporting/Regex-question-request/m-p/488428#M7832</link>
      <description>&lt;P&gt;Sounds like you're saying that you're looking for all events related to one that eventually generates a PDF? If so then is there a unique identifier that ties them all together? I'm asking because you could use a subsearch to gather all unique identifiers from those "PDF" events, and then use those identifiers later in your search to find relates events.&lt;/P&gt;

&lt;P&gt;Posting a sample list of events will help.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2019 17:17:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Regex-question-request/m-p/488428#M7832</guid>
      <dc:creator>jpolvino</dc:creator>
      <dc:date>2019-09-20T17:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: Regex question/request</title>
      <link>https://community.splunk.com/t5/Reporting/Regex-question-request/m-p/488429#M7833</link>
      <description>&lt;P&gt;this is a fragment of the events:&lt;/P&gt;

&lt;P&gt;: Get file ABC_6_2019-09-30_VK-161.2285507.pdf from /opt/mulesoft/&lt;/P&gt;

&lt;P&gt;I would like to extract the values:   ABC_6_2019-09-30_VK-161.2285507.pdf&lt;BR /&gt;
It always ends with .PDF but the first part can differ, in my example it starts with ABC but this can also be ZZ for example&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:26:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Regex-question-request/m-p/488429#M7833</guid>
      <dc:creator>Mike6960</dc:creator>
      <dc:date>2020-09-30T02:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: Regex question/request</title>
      <link>https://community.splunk.com/t5/Reporting/Regex-question-request/m-p/488430#M7834</link>
      <description>&lt;P&gt;Thanks, almost what I need, due to the lack of me supplying an example not quite everything I need.&lt;/P&gt;

&lt;P&gt;this is a fragment of the events:&lt;/P&gt;

&lt;P&gt;: Get file ABC_6_2019-09-30_VK-161.2285507.pdf from /opt/mulesoft/&lt;/P&gt;

&lt;P&gt;I would like to extract the values:   ABC_6_2019-09-30_VK-161.2285507.pdf&lt;BR /&gt;
It always ends with .PDF but the first part can differ, in my example it starts with ABC but this can also be ZZ for example&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:26:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Regex-question-request/m-p/488430#M7834</guid>
      <dc:creator>Mike6960</dc:creator>
      <dc:date>2020-09-30T02:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: Regex question/request</title>
      <link>https://community.splunk.com/t5/Reporting/Regex-question-request/m-p/488431#M7835</link>
      <description>&lt;P&gt;Based on the example you provided in the question comments, this should return the data you are looking for:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex "(?&amp;lt;PDFFileName&amp;gt;\S+)\.[Pp][Dd][Ff]"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Here's the regex101 link showing it function on your example: &lt;A href="https://regex101.com/r/OyLl8z/1"&gt;https://regex101.com/r/OyLl8z/1&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2019 16:01:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Regex-question-request/m-p/488431#M7835</guid>
      <dc:creator>dmarling</dc:creator>
      <dc:date>2019-09-30T16:01:02Z</dc:date>
    </item>
  </channel>
</rss>

