<?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 How to extract the integer values from my sample log? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-integer-values-from-my-sample-log/m-p/270763#M81505</link>
    <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;

&lt;P&gt;Could you please anyone help me to extract the Integer values from the below log? Please share the query to extract the seconds value from the logs.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Nov 30, 2016 09:31:04 AM CST INFO (TransactionSearchDelegateImpl.java:54) - String=[Transaction Search Results. Transactions Count Is], String=[], Integer=[351]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Sridhar&lt;/P&gt;</description>
    <pubDate>Sun, 11 Dec 2016 15:09:28 GMT</pubDate>
    <dc:creator>lksridhar</dc:creator>
    <dc:date>2016-12-11T15:09:28Z</dc:date>
    <item>
      <title>How to extract the integer values from my sample log?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-integer-values-from-my-sample-log/m-p/270763#M81505</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;

&lt;P&gt;Could you please anyone help me to extract the Integer values from the below log? Please share the query to extract the seconds value from the logs.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Nov 30, 2016 09:31:04 AM CST INFO (TransactionSearchDelegateImpl.java:54) - String=[Transaction Search Results. Transactions Count Is], String=[], Integer=[351]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Sridhar&lt;/P&gt;</description>
      <pubDate>Sun, 11 Dec 2016 15:09:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-integer-values-from-my-sample-log/m-p/270763#M81505</guid>
      <dc:creator>lksridhar</dc:creator>
      <dc:date>2016-12-11T15:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract the integer values from my sample log?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-integer-values-from-my-sample-log/m-p/270764#M81506</link>
      <description>&lt;P&gt;Try please -&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex field=_raw Integer=\[(?&amp;lt;int_num&amp;gt;\d*)\]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It should create the &lt;CODE&gt;int_num&lt;/CODE&gt; field.&lt;/P&gt;</description>
      <pubDate>Sun, 11 Dec 2016 15:33:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-integer-values-from-my-sample-log/m-p/270764#M81506</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2016-12-11T15:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract the integer values from my sample log?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-integer-values-from-my-sample-log/m-p/270765#M81507</link>
      <description>&lt;P&gt;You can use your dummy data on regex101 to evaluate your regular expressions.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;rex field=_raw ", Integer=\[(?&amp;lt;Integer&amp;gt;\d+)\]"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;PS: Once you test across your data, you should move the same as Field Extraction Knowledge Object as that is easier to maintain and reuse. You can do the same via &lt;STRONG&gt;Extract New Fields&lt;/STRONG&gt; option during search (Interactive) or from &lt;STRONG&gt;Settings --&amp;gt; Knowledge --&amp;gt; Fields --&amp;gt; Field Extractions&lt;/STRONG&gt; or directly editing &lt;STRONG&gt;props.conf&lt;/STRONG&gt;. &lt;/P&gt;</description>
      <pubDate>Sun, 11 Dec 2016 16:08:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-integer-values-from-my-sample-log/m-p/270765#M81507</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2016-12-11T16:08:04Z</dc:date>
    </item>
  </channel>
</rss>

