<?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: field extraction in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/field-extraction/m-p/552738#M156899</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225135"&gt;@vinod0313&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;You could try with the rex command and the following regex for instance:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "in (?&amp;lt;value&amp;gt;[\d\,\.]+) milliseconds$"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if that helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;J&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 24 May 2021 09:53:09 GMT</pubDate>
    <dc:creator>javiergn</dc:creator>
    <dc:date>2021-05-24T09:53:09Z</dc:date>
    <item>
      <title>field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/field-extraction/m-p/552730#M156898</link>
      <description>&lt;P&gt;I have&amp;nbsp; logs like below&amp;nbsp;&lt;BR /&gt;findContractsByPersonId(String) executed in 463 milliseconds&lt;BR /&gt;findContractsByPersonId(String) executed in 4,681 milliseconds&lt;BR /&gt;findContractsByPersonId(String) executed in 3,671 milliseconds&lt;BR /&gt;findContractsByPersonId(String) executed in 681 milliseconds&lt;BR /&gt;&lt;BR /&gt;and i want to create a field which will give values from log like below&lt;BR /&gt;463&lt;BR /&gt;4,681&lt;BR /&gt;3,671&lt;BR /&gt;681&lt;BR /&gt;&lt;BR /&gt;i did filed extraction with below log&lt;BR /&gt;findContractsByPersonId(String) executed in 463 milliseconds&lt;BR /&gt;&lt;BR /&gt;i am able to create filed but i can only get non coma separated values, i mean i am getting only&amp;nbsp;&lt;BR /&gt;463&lt;BR /&gt;681 values&lt;BR /&gt;i am not getting coma included values (those are&amp;nbsp;4,681 and&amp;nbsp;3,671)&lt;BR /&gt;could you please suggest in order to get all the values (comma included values also)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 May 2021 09:35:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/field-extraction/m-p/552730#M156898</guid>
      <dc:creator>vinod0313</dc:creator>
      <dc:date>2021-05-24T09:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/field-extraction/m-p/552738#M156899</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225135"&gt;@vinod0313&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;You could try with the rex command and the following regex for instance:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "in (?&amp;lt;value&amp;gt;[\d\,\.]+) milliseconds$"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if that helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;J&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 May 2021 09:53:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/field-extraction/m-p/552738#M156899</guid>
      <dc:creator>javiergn</dc:creator>
      <dc:date>2021-05-24T09:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/field-extraction/m-p/552744#M156901</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/113132"&gt;@javiergn&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;it worked.&lt;/P&gt;</description>
      <pubDate>Mon, 24 May 2021 10:11:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/field-extraction/m-p/552744#M156901</guid>
      <dc:creator>vinod0313</dc:creator>
      <dc:date>2021-05-24T10:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/field-extraction/m-p/552755#M156905</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/113132"&gt;@javiergn&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;is there any chance we can disply the result without comma.As of now we are getting 2,061 but i want as 2061(comma should not be in the result)&lt;/P&gt;</description>
      <pubDate>Mon, 24 May 2021 11:20:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/field-extraction/m-p/552755#M156905</guid>
      <dc:creator>vinod0313</dc:creator>
      <dc:date>2021-05-24T11:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/field-extraction/m-p/552766#M156907</link>
      <description>&lt;P&gt;Yes, you can use the rex command again with the mode=sed to remove the comma. Assuming your field name is "value" it would be something like:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex field=value mode=sed "s/\,//g"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If that worked for you please don't forget to upvote the answer so that others can benefit from it.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;J&lt;/P&gt;</description>
      <pubDate>Mon, 24 May 2021 12:21:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/field-extraction/m-p/552766#M156907</guid>
      <dc:creator>javiergn</dc:creator>
      <dc:date>2021-05-24T12:21:25Z</dc:date>
    </item>
  </channel>
</rss>

