<?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: Common regex in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Common-regex/m-p/114979#M30428</link>
    <description>&lt;P&gt;Thanks its working.&lt;/P&gt;</description>
    <pubDate>Fri, 17 Jan 2014 07:00:37 GMT</pubDate>
    <dc:creator>Jananee_iNautix</dc:creator>
    <dc:date>2014-01-17T07:00:37Z</dc:date>
    <item>
      <title>Common regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Common-regex/m-p/114973#M30422</link>
      <description>&lt;P&gt;I have log statement as follows as&lt;/P&gt;

&lt;P&gt;1.20131220.server-0.log:2013-12-20 09:38:00,852 [fewfg424]  SUCCESS:    The FTP Server [et - FTP SERVER] uploaded file [Transaction_2_113237579.csv] of length 1989 bytes from userid [EBIDWNID].&lt;BR /&gt;
2.20131209.dbg.log:2013-12-09 17:52:12,435 [58c858c8]   SUCCESS:    File successfully uploaded using SFTP. Filename was [nv_afis_nav_download12092013145008.csv]. File length was [1403].&lt;BR /&gt;
3.20131220.dbg.log:2013-12-20 09:36:35,575 [a468a]  SUCCESS:    File successfully uploaded using FTP. Filename [COR0083700_1.txt]. File length [5366] bytes.&lt;/P&gt;

&lt;P&gt;I want to write a regex common to these three statements to extract the filename and file length and display in table.Can anyone say how to write a common regex to extract filename and length.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:39:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Common-regex/m-p/114973#M30422</guid>
      <dc:creator>Jananee_iNautix</dc:creator>
      <dc:date>2020-09-28T15:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: Common regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Common-regex/m-p/114974#M30423</link>
      <description>&lt;P&gt;Why would you want one common regex? It's easier to split this up into separate regexes since your messages are pretty different.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2014 13:27:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Common-regex/m-p/114974#M30423</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2014-01-15T13:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: Common regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Common-regex/m-p/114975#M30424</link>
      <description>&lt;P&gt;I concur with Ayn. Just name the fields the same on the three regex's and you will still be able query across them.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2014 14:27:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Common-regex/m-p/114975#M30424</guid>
      <dc:creator>aholzer</dc:creator>
      <dc:date>2014-01-15T14:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Common regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Common-regex/m-p/114976#M30425</link>
      <description>&lt;P&gt;I agree with Ayn, but perhaps something like the following will be useful.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;'... | rex ".*?\[(?&amp;lt;filename&amp;gt;[\S]*?)\].*\slength[^0-9]*(?&amp;lt;length&amp;gt;[0-9]+)" | ...'&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2014 14:58:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Common-regex/m-p/114976#M30425</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2014-01-15T14:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: Common regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Common-regex/m-p/114977#M30426</link>
      <description>&lt;P&gt;It is not extracting the correct filename.So i have updated my question with the complete log.Can you see to that log and suggest me the correct regex.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2014 05:20:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Common-regex/m-p/114977#M30426</guid>
      <dc:creator>Jananee_iNautix</dc:creator>
      <dc:date>2014-01-16T05:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: Common regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Common-regex/m-p/114978#M30427</link>
      <description>&lt;P&gt;All the more reason to use separate regexes, but I think this will help you.&lt;BR /&gt;
&lt;CODE&gt;(?i)file.*?\[(?&amp;lt;filename&amp;gt;[\S]*?)\].*\slength[^0-9]*(?&amp;lt;length&amp;gt;[0-9]+)&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;BTW, I like to use &lt;CODE&gt;&lt;A href="http://www.regextester.com/index.html" target="test_blank"&gt;http://www.regextester.com/index.html&lt;/A&gt;&lt;/CODE&gt; for testing regex strings.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2014 13:17:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Common-regex/m-p/114978#M30427</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2014-01-16T13:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: Common regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Common-regex/m-p/114979#M30428</link>
      <description>&lt;P&gt;Thanks its working.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jan 2014 07:00:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Common-regex/m-p/114979#M30428</guid>
      <dc:creator>Jananee_iNautix</dc:creator>
      <dc:date>2014-01-17T07:00:37Z</dc:date>
    </item>
  </channel>
</rss>

