<?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: Splunk rex help in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Splunk-rex-help/m-p/261372#M78444</link>
    <description>&lt;P&gt;Thanks for the answer. Is there a tool or way to get or learn how to use these regex codes?&lt;/P&gt;</description>
    <pubDate>Thu, 26 Jan 2017 16:53:43 GMT</pubDate>
    <dc:creator>chanukhya</dc:creator>
    <dc:date>2017-01-26T16:53:43Z</dc:date>
    <item>
      <title>Splunk rex help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-rex-help/m-p/261368#M78440</link>
      <description>&lt;P&gt;I am trying to count the number of 200 response codes from an access log. can you please help in getting me the output.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;26/Jan/2017:08:16:33 PST "POST /webservice/services/serviceABC HTTP/1.1" A_Cell/A_node/A_Cluster_jvm 117 118 200
26/Jan/2017:08:16:33 PST "POST /webservice/services/serviceABC HTTP/1.1" B_Cell/B_node/B_Cluster_jvm_2 164 819 200
26/Jan/2017:08:16:33 PST "POST /webservice/services/serviceABC HTTP/1.1" A_Cell/C_node/C_Cluster_jvm_1197 917 200
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Log looks like the above. Is it possible to get the output of stats count by each cell, node and and each jvm? I dont need reading the response codes, because i am doing "* * 200" in base search&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 15:55:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-rex-help/m-p/261368#M78440</guid>
      <dc:creator>chanukhya</dc:creator>
      <dc:date>2017-01-26T15:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk rex help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-rex-help/m-p/261369#M78441</link>
      <description>&lt;P&gt;Try like this&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Updated based on new sample data&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search | rex "^([^\"]+\"){2}\s+[^\/]+\/(?&amp;lt;node&amp;gt;[^\/]+)\/(?&amp;lt;jvm&amp;gt;\S+)\s+.+(?&amp;lt;response_code&amp;gt;\d+)$" | where response_code=200 | stats count by node jvm
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 26 Jan 2017 16:03:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-rex-help/m-p/261369#M78441</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-01-26T16:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk rex help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-rex-help/m-p/261370#M78442</link>
      <description>&lt;P&gt;Thanks for the response, I also have the date and time in the log. Your regex is picking up "Jan". I dont actually care about method or URI. I just need stats by cell, node and jvm.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 16:41:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-rex-help/m-p/261370#M78442</guid>
      <dc:creator>chanukhya</dc:creator>
      <dc:date>2017-01-26T16:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk rex help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-rex-help/m-p/261371#M78443</link>
      <description>&lt;P&gt;Try the updated answer (original answer updated).&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 16:45:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-rex-help/m-p/261371#M78443</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-01-26T16:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk rex help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-rex-help/m-p/261372#M78444</link>
      <description>&lt;P&gt;Thanks for the answer. Is there a tool or way to get or learn how to use these regex codes?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 16:53:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-rex-help/m-p/261372#M78444</guid>
      <dc:creator>chanukhya</dc:creator>
      <dc:date>2017-01-26T16:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk rex help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-rex-help/m-p/261373#M78445</link>
      <description>&lt;P&gt;You can use following links:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/79860/where-i-can-learn-regular-expressions-to-use-them-and-to-create-my-own-regex.html"&gt;https://answers.splunk.com/answers/79860/where-i-can-learn-regular-expressions-to-use-them-and-to-create-my-own-regex.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/6.5.1/Knowledge/AboutSplunkregularexpressions"&gt;https://docs.splunk.com/Documentation/Splunk/6.5.1/Knowledge/AboutSplunkregularexpressions&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://www.learnsplunk.com/splunk-regex-tutorial.html"&gt;http://www.learnsplunk.com/splunk-regex-tutorial.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 16:57:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-rex-help/m-p/261373#M78445</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-01-26T16:57:33Z</dc:date>
    </item>
  </channel>
</rss>

