<?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: help regex in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/help-regex/m-p/294815#M88978</link>
    <description>&lt;P&gt;hey  try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=your_index | rex field=_raw "%\w+-(?P&amp;lt;Severity&amp;gt;[^\-]+)-.*Interface\s(?P&amp;lt;Interface&amp;gt;[^\,]+)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Also check this to see this in action&lt;BR /&gt;
&lt;A href="https://regex101.com/r/IYRjiZ/1"&gt;https://regex101.com/r/IYRjiZ/1&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Let me know if this helps!&lt;/P&gt;</description>
    <pubDate>Thu, 11 Jan 2018 08:23:22 GMT</pubDate>
    <dc:creator>mayurr98</dc:creator>
    <dc:date>2018-01-11T08:23:22Z</dc:date>
    <item>
      <title>help regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-regex/m-p/294814#M88977</link>
      <description>&lt;P&gt;I have this kind of logs &lt;/P&gt;

&lt;P&gt;00:00:47: %LINK-3-UPDOWN: Interface GigabitEthernet0/1, changed state to down&lt;BR /&gt;
 00:00:48: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan3, changed state to up&lt;BR /&gt;
 00:00:48: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/5, changed state to down &lt;/P&gt;

&lt;P&gt;How can I extract severity and interface?&lt;/P&gt;

&lt;P&gt;TIA&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2018 08:19:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-regex/m-p/294814#M88977</guid>
      <dc:creator>DiviR</dc:creator>
      <dc:date>2018-01-11T08:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: help regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-regex/m-p/294815#M88978</link>
      <description>&lt;P&gt;hey  try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=your_index | rex field=_raw "%\w+-(?P&amp;lt;Severity&amp;gt;[^\-]+)-.*Interface\s(?P&amp;lt;Interface&amp;gt;[^\,]+)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Also check this to see this in action&lt;BR /&gt;
&lt;A href="https://regex101.com/r/IYRjiZ/1"&gt;https://regex101.com/r/IYRjiZ/1&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Let me know if this helps!&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2018 08:23:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-regex/m-p/294815#M88978</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-01-11T08:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: help regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-regex/m-p/294816#M88979</link>
      <description>&lt;P&gt;thanks it works but is there any way to extract description as well after interface?&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2018 09:26:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-regex/m-p/294816#M88979</guid>
      <dc:creator>DiviR</dc:creator>
      <dc:date>2018-01-11T09:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: help regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-regex/m-p/294817#M88980</link>
      <description>&lt;P&gt;try this then&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    index=your_index | rex field=_raw "%\w+-(?P&amp;lt;Severity&amp;gt;[^\-]+)-.*Interface\s(?P&amp;lt;Interface&amp;gt;[^\,]+)\,(?P&amp;lt;Description&amp;gt;.*)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 11 Jan 2018 09:29:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-regex/m-p/294817#M88980</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-01-11T09:29:51Z</dc:date>
    </item>
  </channel>
</rss>

