<?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 part of a text from log events? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-part-of-a-text-from-log-events/m-p/341229#M159608</link>
    <description>&lt;P&gt;will something like this work?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;device_(?&amp;lt;volumeName&amp;gt;.*)_1_vol
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 02 Aug 2017 12:45:10 GMT</pubDate>
    <dc:creator>cmerriman</dc:creator>
    <dc:date>2017-08-02T12:45:10Z</dc:date>
    <item>
      <title>How to extract part of a text from log events?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-part-of-a-text-from-log-events/m-p/341228#M159607</link>
      <description>&lt;P&gt;I am very new to regex and I need to extract anything that comes between "device_" and "_1_vol" as volume name. &lt;/P&gt;

&lt;P&gt;"device_array02_im-wxs-vb004_p2_lun_215_1_vol&lt;BR /&gt;
"device_array03_serverb_p2_lun_139_1_vol"&lt;/P&gt;

&lt;P&gt;The below output is from the actual log&lt;/P&gt;

&lt;P&gt;"Alert 0202 : The Read Latency  of  array  Volume : device_array02_im-wxs-vb004_p2_lun_215_1_vol  is at 125717.0 us"&lt;/P&gt;

&lt;P&gt;I tried word boundaries but it's not working. Can someone please help me?&lt;/P&gt;

&lt;P&gt;"(?P\bdevice\w+\b)_1_vol"&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 15:08:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-part-of-a-text-from-log-events/m-p/341228#M159607</guid>
      <dc:creator>jerin1982</dc:creator>
      <dc:date>2020-09-29T15:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract part of a text from log events?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-part-of-a-text-from-log-events/m-p/341229#M159608</link>
      <description>&lt;P&gt;will something like this work?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;device_(?&amp;lt;volumeName&amp;gt;.*)_1_vol
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 02 Aug 2017 12:45:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-part-of-a-text-from-log-events/m-p/341229#M159608</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-08-02T12:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract part of a text from log events?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-part-of-a-text-from-log-events/m-p/341230#M159609</link>
      <description>&lt;P&gt;Hi, I can't really provide the specific regex code for you. But just incase you find suggestions, you can try it out here: &lt;A href="http://regexr.com/"&gt;http://regexr.com/&lt;/A&gt;&lt;BR /&gt;
Just paste your samples and see if their regex code works.&lt;/P&gt;

&lt;P&gt;And since you are also starting to learn regex like me, that site also provide information on how to use regex.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2017 14:04:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-part-of-a-text-from-log-events/m-p/341230#M159609</guid>
      <dc:creator>bonnlbbelandres</dc:creator>
      <dc:date>2017-08-02T14:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract part of a text from log events?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-part-of-a-text-from-log-events/m-p/341231#M159610</link>
      <description>&lt;P&gt;Thank you so much. It worked perfectly.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2017 14:36:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-part-of-a-text-from-log-events/m-p/341231#M159610</guid>
      <dc:creator>jerin1982</dc:creator>
      <dc:date>2017-08-02T14:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract part of a text from log events?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-part-of-a-text-from-log-events/m-p/341232#M159611</link>
      <description>&lt;P&gt;Thank you. I will look into it.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2017 14:36:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-part-of-a-text-from-log-events/m-p/341232#M159611</guid>
      <dc:creator>jerin1982</dc:creator>
      <dc:date>2017-08-02T14:36:46Z</dc:date>
    </item>
  </channel>
</rss>

