<?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: How to extract a field that has value more than 10 sec? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-field-that-has-value-more-than-10-sec/m-p/533132#M150626</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/229734"&gt;@splunknoob2020&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;not you have to create your search adding the condition (&amp;gt;10 sec) and the fields to list, something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=hello_world host_zone=pr source="*hi*" "slow query"
| rex "took:\s+(?&amp;lt;took&amp;gt;[^ ]+)"
| where took&amp;gt;10
| table &amp;lt;your-fields&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 15 Dec 2020 13:00:08 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2020-12-15T13:00:08Z</dc:date>
    <item>
      <title>How to extract a field that has value more than 10 sec?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-field-that-has-value-more-than-10-sec/m-p/533092#M150604</link>
      <description>&lt;P class="lia-align-justify"&gt;I have a splunk query that gives me all the logs of slow queries(AQL) but I need to know which ones have taken more than 10 sec. I need to compare them with previous version slow queries and see if there is any improvement?&lt;/P&gt;&lt;P class="lia-align-justify"&gt;My splunk query:&lt;/P&gt;&lt;P class="lia-align-justify"&gt;index=hello_world host_zone=pr source="*hi*" "slow query"&lt;/P&gt;&lt;P class="lia-align-justify"&gt;Sample log:&lt;/P&gt;&lt;P class="lia-align-justify"&gt;&lt;SPAN&gt;slow query: 'FOR s IN abcdef FILTER LOWER(ghijk) == '123456789' LET serviceId = lmno FOR v IN pqrst GRAPH uvw_xyz RETURN v', bind vars: {}, took: 5.384533 s&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2020 04:31:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-field-that-has-value-more-than-10-sec/m-p/533092#M150604</guid>
      <dc:creator>splunknoob2020</dc:creator>
      <dc:date>2020-12-15T04:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a field that has value more than 10 sec?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-field-that-has-value-more-than-10-sec/m-p/533103#M150610</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/229734"&gt;@splunknoob2020&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;your problem is to extract the field or to compare results?&lt;/P&gt;&lt;P&gt;if it's extracting field, you can use a regex or the field extractor, using regexes:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "took:\s+(?&amp;lt;took&amp;gt;[^ ]+)"&lt;/LI-CODE&gt;&lt;P&gt;that you can test at&amp;nbsp;&lt;A href="https://regex101.com/r/b9Mk8r/1" target="_blank"&gt;https://regex101.com/r/b9Mk8r/1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2020 07:49:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-field-that-has-value-more-than-10-sec/m-p/533103#M150610</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-12-15T07:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a field that has value more than 10 sec?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-field-that-has-value-more-than-10-sec/m-p/533126#M150621</link>
      <description>&lt;P&gt;Thank you for the response,&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;. Your query helped me in extracting the field, now I need to get all the slow queries which took more than 10 sec. Let's say in a tabular format I would like to see the slow query and the time it took to run in two columns?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2020 11:22:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-field-that-has-value-more-than-10-sec/m-p/533126#M150621</guid>
      <dc:creator>splunknoob2020</dc:creator>
      <dc:date>2020-12-15T11:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a field that has value more than 10 sec?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-field-that-has-value-more-than-10-sec/m-p/533132#M150626</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/229734"&gt;@splunknoob2020&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;not you have to create your search adding the condition (&amp;gt;10 sec) and the fields to list, something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=hello_world host_zone=pr source="*hi*" "slow query"
| rex "took:\s+(?&amp;lt;took&amp;gt;[^ ]+)"
| where took&amp;gt;10
| table &amp;lt;your-fields&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2020 13:00:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-field-that-has-value-more-than-10-sec/m-p/533132#M150626</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-12-15T13:00:08Z</dc:date>
    </item>
  </channel>
</rss>

