<?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: Multiple queries to extract one value in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Multiple-queries-to-extract-one-value/m-p/297286#M89703</link>
    <description>&lt;P&gt;In verbose mode, I'm seeing all fields and there's no REQUEST_URI field anywhere, unfortunately. There's JSESSIONID listed among other fields but apart from that field, I can't think of any other field to be equally important displayed.&lt;/P&gt;</description>
    <pubDate>Fri, 19 May 2017 17:50:19 GMT</pubDate>
    <dc:creator>rh417692</dc:creator>
    <dc:date>2017-05-19T17:50:19Z</dc:date>
    <item>
      <title>Multiple queries to extract one value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multiple-queries-to-extract-one-value/m-p/297274#M89691</link>
      <description>&lt;P&gt;I eventually have to find out the 'N-' value. When I do this manually, I have to do it like this:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;&lt;P&gt;Query: index="prod" "MainRefinementMenuHandler exceptionjava.lang.NullPointerException"&lt;BR /&gt;
Result: 16:09:11,714 ERROR &lt;A href="https://community.splunk.com/AJPThreadPool-threads%20-%2093631" target="_blank"&gt;assembler.cartridge.handler.MainRefinementMenuHandler&lt;/A&gt;  JSESSIONID:&lt;STRONG&gt;hT0NrpquJyI47wOYg28J8oTv&lt;/STRONG&gt;.PS012.PROD1A, PROFILE_ID:2870650047, APACHE_UNIQUE_ID:WRoK5wpGHxQAAFf2XJkAAAAL, SOURCE_IP:55.55.555.555, Client-Source-IP:55.555.555.555, MainRefinementMenuHandler exceptionjava.lang.NullPointerException&lt;CODE&gt;&lt;BR /&gt;
&lt;/CODE&gt;`&lt;STRONG&gt;From the above result, I need to capture the JSESSIONID for the next query. Need help with that JSESSIONID extraction. Trying to use rex but unsuccessful so far&lt;/STRONG&gt;&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Using the JSESSIONID, I use this query to find the 'N-' value&lt;BR /&gt;
Query: index="prod" "hT0NrpquJyI47wOYg28J8oTv" | reverse&lt;BR /&gt;
Result: (result 1) ....&lt;BR /&gt;
          (result 2) ....&lt;BR /&gt;
          (result 3) 16:09:11,716 ERROR &lt;A href="https://community.splunk.com/AJPThreadPool-threads%20-%2093631" target="_blank"&gt;.droplet.InvokeAssembler&lt;/A&gt;  JSESSIONID:hT0NrpquJyI47wOYg28J8oTv.PS012.PROD1A, PROFILE_ID:1234567891, APACHE_UNIQUE_ID:WRoK5wpGHxQAAFf2XJkAAAAL, SOURCE_IP:55.55.555.555, Client-Source-IP:55.555.555.555, Servicing 'error' oparam. An exception occurred invoking the Assembler with ContentItem {content={@type=PageSlot, name=Dynamic Page Slot, &lt;BR /&gt;
contentPaths=[/content/Navigation/CategoryPages], templateTypes=[Page], templateIds=[], ruleLimit=1, endeca:siteRootPath=/pages, endeca:contentPath=//category, contents=[{@type=OneColumnPage, name=One Column Page, mainContent=[{removeAllAction=com.endeca.infront.cartridge.model.NavigationAction@629453c8, refinementCrumbs=[com.endeca.infront.cartridge.model.RefinementBreadcrumb@7808a207,com.endeca.infront.cartridge.model.RefinementBreadcrumb@7ec5b721], geoFilterCrumb=null, @type=Breadcrumbs, name=Breadcrumbs, searchCrumbs=[], rangeFilterCrumbs=[]}, {@type=ContentSlotMain, name=FeatureZone, contentPaths=[/content/Contents/CategoryPageContents/Category Headers], templateTypes=[MainContent], templateIds=[], ruleLimit=2, contents=[]}, {@type=ContentSlotMain, name=TextBreacrumbZone, contentPaths=[/content/Contents/CategoryPageContents/TextBreadCrumb], templateTypes=[MainContent], templateIds=[], ruleLimit=1, contents=[{@type=TextBreadcrumb, name=Default, textBreadcrumb=}]}, {@type=ContentSlotMain, name=RefineZone, contentPaths=[/content/Contents/CategoryPageContents/Refinement Zone], templateTypes=[MainContent], templateIds=[], ruleLimit=1, contents=[{@type=MainGuidedNavigation, name=Navigation Container, navigation=[{refinements=null, multiSelect=true, expandRefinement=false, allDeadEnd=yes, @type=MainRefinementMenu, name=Gender, ancestors=[com.endeca.infront.cartridge.model.Ancestor@667a188c], displayName=gender, dimensionName=gender, whyPrecedenceRuleFired=null}, {refinements=null, multiSelect=true, expandRefinement=false, allDeadEnd=yes, @type=MainRefinementMenu, name=Occasion, ancestors=[com.endeca.infront.cartridge.model.Ancestor@59e1c3e3], displayName=occassion, dimensionName=occassion, whyPrecedenceRuleFired=null}]}]},{@type=ContentSlotMain, name=ResultList Zone, contentPaths=[/content/Contents/CategoryPageContents/ResultList Zone], templateTypes=[MainContent], templateIds=[], ruleLimit=1, contents=[{subRecordFieldNames=[colorCode, color, heelHeight, toeShape, materials, width, listPrice, sku.isClearanceItem, sku.inventory], sortOption=product.isClearance|0||product.inventory|1||product.daysAvailable|0||rating|1, subRecordsPerAggregateRecord=ALL, fieldNames=[product.displayName, product.productTypeWeb, product.repositoryId, msrp, nonMemberPrice, product.nonMemberMinPrice, product.nonMemberMaxPrice, isClearance, product.defaultColorCode, brand, gender, product.category, product.originalPrice, product.showPriceInCart, allAncestors.repositoryId, product.hasAnimatedImage], boostStrata=[], @type=ResultsList, name=Results List, relRankStrategy=nterms,maxfield,exact,static(product.analytics.conversion_rate,descending), buryStrata=[], offset=0, recordsPerPage=90}]}, {@type=ContentSlotMain, name=Main Content Slot, contentPaths=[/content/Contents/CategoryPageContents/SEO Content], templateTypes=[MainContent], templateIds=[], ruleLimit=1, contents=[]}]}]}, contentUri=/pages/category, @type=RedirectAwareContentInclude}com.endeca.infront.assembler.AssemblerException: java.lang.NullPointerException&lt;BR /&gt;
(result 4) 16:09:11,716 INFO  &lt;A href="https://community.splunk.com/AJPThreadPool-threads%20-%2093631" target="_blank"&gt;com.commerce.common.servlet.SessionIDRequestFilter&lt;/A&gt; [REQUEST_URI:/rest/model/com/commerce/endeca/controller/v1_0/content/ContentActor/getPageContent/_/&lt;STRONG&gt;N-27c8Z1z141ggZ1z13vpx&lt;/STRONG&gt;, METHOD:GET, FORWARDED_PATH:null, QUERY_STRING:No=0&amp;amp;_dynSessConf=-3081247017807204448&amp;amp;locale=en_US&amp;amp;pagePath=/pages/category&amp;amp;pushSite=&amp;amp;skipHeaderFooterContent=true, JSESSIONID:hT0NrpquJyI47wOYg28J8oTv.012.PROD1A, UNIQUE_ID:WRoK5wpGHxQAAFf2XJkAAAAL, SOURCE_IP:55.555.555.555, Client-Source-IP:55.555.555.555, DYN_USER_ID:null, X-Akamai-Edgescape:, CLIENT_DEVICE_TYPE:tablet, EXECUTION_TIME: 29 ms]&lt;/P&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;&lt;STRONG&gt;Basically, I need the 'N-' value that is below the big result in (result 3) as that is the bad 'N-' value I need. Any other random 'N-' value are good values that I do not need to capture. Need a query for this.&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;There are multiple queries for this. Any help in finding the entire solution or even part of it would be great. Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:05:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multiple-queries-to-extract-one-value/m-p/297274#M89691</guid>
      <dc:creator>rh417692</dc:creator>
      <dc:date>2020-09-29T14:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple queries to extract one value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multiple-queries-to-extract-one-value/m-p/297275#M89692</link>
      <description>&lt;P&gt;will this rex work for your extraction of JSESSIONID:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;JSESSIONID:(?&amp;lt;JSESSIONID&amp;gt;\w+)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 17 May 2017 11:55:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multiple-queries-to-extract-one-value/m-p/297275#M89692</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-05-17T11:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple queries to extract one value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multiple-queries-to-extract-one-value/m-p/297276#M89693</link>
      <description>&lt;P&gt;if my above JSESSIONID rex works, would something like this work for combining it all? i could be way off base, but this is just an idea from reading the above. adding a subsearch for your first search to get all of the JSESSIONIDs into the second search and then doing a streamstats to search for only the 3rd result.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="atg_prod1a" [search index="atg_prod" "MainRefinementMenuHandler exceptionjava.lang.NullPointerException"|rex field=_raw JSESSIONID:(?&amp;lt;JSESSIONID&amp;gt;\w+)|stats count by JSESSIONID |fields - count |format] | reverse|streamstats count by JSESSIONID|search count=3
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 17 May 2017 12:00:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multiple-queries-to-extract-one-value/m-p/297276#M89693</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-05-17T12:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple queries to extract one value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multiple-queries-to-extract-one-value/m-p/297277#M89694</link>
      <description>&lt;P&gt;Hi rh417692,&lt;BR /&gt;
I'm not sure about your request.&lt;/P&gt;

&lt;P&gt;Anyway the regex to extract the bold value in  item 1 is&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;JSESSIONID:(?&amp;lt;JSESSIONID&amp;gt;[^\.]*)\.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;the regex to extract the bold value in item 2 is &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;\[REQUEST_URI:.*(?&amp;lt;field&amp;gt;N-[^,]*),
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2017 12:05:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multiple-queries-to-extract-one-value/m-p/297277#M89694</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-05-17T12:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple queries to extract one value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multiple-queries-to-extract-one-value/m-p/297278#M89695</link>
      <description>&lt;P&gt;Yup! This gets me the JSESSIONID. Thanks @cmerriman!&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2017 16:01:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multiple-queries-to-extract-one-value/m-p/297278#M89695</guid>
      <dc:creator>rh417692</dc:creator>
      <dc:date>2017-05-17T16:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple queries to extract one value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multiple-queries-to-extract-one-value/m-p/297279#M89696</link>
      <description>&lt;P&gt;Hi @cusello. Using the below search query, I get unique JSESSIONIDs. How would I add your second query string to this query:&lt;/P&gt;

&lt;P&gt;index="atg_prod" "MainRefinementMenuHandler exceptionjava.lang.NullPointerException" | rex "JSESSIONID:(?[^.]+)" | dedup JSESSIONID&lt;/P&gt;

&lt;P&gt;I'm very new to Splunk so apologies if this seems trivial...&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2017 16:02:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multiple-queries-to-extract-one-value/m-p/297279#M89696</guid>
      <dc:creator>rh417692</dc:creator>
      <dc:date>2017-05-17T16:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple queries to extract one value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multiple-queries-to-extract-one-value/m-p/297280#M89697</link>
      <description>&lt;P&gt;I'm currently using this query to get unique JSESSIONIDs: &lt;/P&gt;

&lt;P&gt;index="atg_prod" "MainRefinementMenuHandler exceptionjava.lang.NullPointerException" | rex "JSESSIONID:(?[^.]+)" | dedup JSESSIONID&lt;/P&gt;

&lt;P&gt;With your query, I actually do not see any result. Maybe adding this would help?&lt;/P&gt;

&lt;P&gt;\[REQUEST_URI:.&lt;EM&gt;(?N-[^,]&lt;/EM&gt;),&lt;/P&gt;

&lt;P&gt;I just don't know how to add it or if needs editing as I'm so new to Splunk&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2017 18:39:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multiple-queries-to-extract-one-value/m-p/297280#M89697</guid>
      <dc:creator>rh417692</dc:creator>
      <dc:date>2017-05-17T18:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple queries to extract one value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multiple-queries-to-extract-one-value/m-p/297281#M89698</link>
      <description>&lt;P&gt;i just realized that my subsearch wouldn't work anyways since you don't have JSESSIONID defined in that index. try something like this, maybe&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="atg_prod1a"  | rex "JSESSIONID\:(?&amp;lt;JSESSIONID&amp;gt;[^.]+)"|join JSESSIONID [search index="atg_prod" "MainRefinementMenuHandler exceptionjava.lang.NullPointerException" | rex "JSESSIONID\:(?&amp;lt;JSESSIONID&amp;gt;[^.]+)"|stats count by JSESSIONID |fields - count ] | reverse|streamstats count by JSESSIONID|search count=3|rex "\[REQUEST_URI:.(?&amp;lt;REQUEST_URI&amp;gt;N-[^,]),"|table REQUEST_URI
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 17 May 2017 19:02:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multiple-queries-to-extract-one-value/m-p/297281#M89698</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-05-17T19:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple queries to extract one value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multiple-queries-to-extract-one-value/m-p/297282#M89699</link>
      <description>&lt;P&gt;We're almost there @cmerriman. It seems to be getting a result but it does not display anything. When I remove the 'table REQUEST_URI, I get the result with all details when I only need the 'N-' value. Is there any way we can see only the 'N-' values?&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2017 21:30:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multiple-queries-to-extract-one-value/m-p/297282#M89699</guid>
      <dc:creator>rh417692</dc:creator>
      <dc:date>2017-05-17T21:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple queries to extract one value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multiple-queries-to-extract-one-value/m-p/297283#M89700</link>
      <description>&lt;P&gt;when you remove the &lt;CODE&gt;|table REQUEST_URI&lt;/CODE&gt; and look over at the list of available fields in verbose mode on the left hand side, is REQUEST_URI in there? If so, is it the &lt;STRONG&gt;N-&lt;/STRONG&gt; value you are looking for? if not, it's likely a problem with the rex command.  I just noticed there is a difference in the rex i have above and the rex @cusello provided. try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index="atg_prod1a"  | rex "JSESSIONID\:(?&amp;lt;JSESSIONID&amp;gt;[^.]+)"|join JSESSIONID [search index="atg_prod" "MainRefinementMenuHandler exceptionjava.lang.NullPointerException" | rex "JSESSIONID\:(?&amp;lt;JSESSIONID&amp;gt;[^.]+)"|stats count by JSESSIONID |fields - count ] | reverse|streamstats count by JSESSIONID|search count=3|rex "\[REQUEST_URI:.*(?&amp;lt;REQUEST_URI&amp;gt;N-[^,]*),"|table REQUEST_URI
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 18 May 2017 11:37:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multiple-queries-to-extract-one-value/m-p/297283#M89700</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-05-18T11:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple queries to extract one value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multiple-queries-to-extract-one-value/m-p/297284#M89701</link>
      <description>&lt;P&gt;I'm getting results but the rows in the table does not show any value. What could potentially be the reason?&lt;BR /&gt;
I feel we're really close to achieving our goal. Thank you so much for your help so far!!&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2017 17:03:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multiple-queries-to-extract-one-value/m-p/297284#M89701</guid>
      <dc:creator>rh417692</dc:creator>
      <dc:date>2017-05-19T17:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple queries to extract one value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multiple-queries-to-extract-one-value/m-p/297285#M89702</link>
      <description>&lt;P&gt;when you're in verbose mode, what are the available fields listed on the left hand side? do you have REQUEST_URI? if so, what is the value? any other important fields/values listed? are they accurate? it could be the regex being inaccurate. &lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2017 17:32:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multiple-queries-to-extract-one-value/m-p/297285#M89702</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-05-19T17:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple queries to extract one value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multiple-queries-to-extract-one-value/m-p/297286#M89703</link>
      <description>&lt;P&gt;In verbose mode, I'm seeing all fields and there's no REQUEST_URI field anywhere, unfortunately. There's JSESSIONID listed among other fields but apart from that field, I can't think of any other field to be equally important displayed.&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2017 17:50:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multiple-queries-to-extract-one-value/m-p/297286#M89703</guid>
      <dc:creator>rh417692</dc:creator>
      <dc:date>2017-05-19T17:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple queries to extract one value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multiple-queries-to-extract-one-value/m-p/297287#M89704</link>
      <description>&lt;P&gt;i think it's a problem with the regex statement for REQUEST_URI. in the events tab, are you getting the correct events back before the table statement? I'm not sure why that regex wouldn't work. perhaps try something like this:&lt;/P&gt;

&lt;P&gt;|rex "REQUEST_URI:.&lt;EM&gt;(?N-.&lt;/EM&gt;), METHOD"&lt;/P&gt;

&lt;P&gt;regex101.com is a great tool to tweak regex statements. you might have to just tweak it until you get that field extracted.&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2017 18:01:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multiple-queries-to-extract-one-value/m-p/297287#M89704</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-05-19T18:01:44Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple queries to extract one value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multiple-queries-to-extract-one-value/m-p/297288#M89705</link>
      <description>&lt;P&gt;Good news &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/185679"&gt;@cmerriman&lt;/a&gt;! We're almost there! I did a few tiny tweaks in your query and I'm getting a list with the N- values in the table. Majority of the rows are still coming blank but I can see a few 'N-' values. This is the query I used:&lt;/P&gt;

&lt;P&gt;index="atg_prod1a"  | rex "JSESSIONID:(?[^.]+)" | join JSESSIONID [search index="atg_prod" "MainRefinementMenuHandler exceptionjava.lang.NullPointerException" | rex "JSESSIONID:(?[^.]+)"|dedup JSESSIONID] | reverse | streamstats count by JSESSIONID |  rex "[REQUEST_URI:.*(?N-[^,]+),"|table REQUEST_URI&lt;/P&gt;

&lt;P&gt;Now, I have 2 questions:&lt;BR /&gt;
1. How do I get actual values in the table instead of some blank values?&lt;BR /&gt;
2. How do I make sure that all the N- values in the list are the bad values I'm looking for and not a mix of bad and good?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:09:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multiple-queries-to-extract-one-value/m-p/297288#M89705</guid>
      <dc:creator>rh417692</dc:creator>
      <dc:date>2020-09-29T14:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple queries to extract one value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multiple-queries-to-extract-one-value/m-p/297289#M89706</link>
      <description>&lt;P&gt;In your example it was the third result. Is it always the third ? What qualifies it as bad? &lt;/P&gt;

&lt;P&gt;To remove null values, add &lt;CODE&gt;|search REQUEST_URI=*&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2017 22:27:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multiple-queries-to-extract-one-value/m-p/297289#M89706</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-05-19T22:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple queries to extract one value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multiple-queries-to-extract-one-value/m-p/297290#M89707</link>
      <description>&lt;P&gt;@cmerriman That query removes the null values. Thanks you!&lt;/P&gt;

&lt;P&gt;So regarding the N- values. There are good and bad N- values. Good N- values are those where if put inside a url, gives an actual webpage while a bad N- value gives a 'Page not Found' page which is what I'm looking for. Now, when I used to do this query index="prod" "JSESSIONID" | reverse', I would get multiple values with that JSESSIONID. However, whenever I would get a massive event (like in result 3), the event right after that one (result 4 in our case) has an N- value which gives the exact N- value I'm looking for as those values are always bad values. So is there a way to get that N- value from an event right after the big event? And no, it does not necessarily have to be  the third result. It can be in any order but the bad N- value come in an event which is right after the big event like you see in my example. Hope my explanation was clear enough? I feel we're maybe only one step away from the needed result. Thank you again for all your help so far!!&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2017 17:26:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multiple-queries-to-extract-one-value/m-p/297290#M89707</guid>
      <dc:creator>rh417692</dc:creator>
      <dc:date>2017-05-22T17:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple queries to extract one value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multiple-queries-to-extract-one-value/m-p/297291#M89708</link>
      <description>&lt;P&gt;how about adding something like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...| reverse|streamstats count by JSESSIONID|eval length=len(_raw)|streamstats window=1 current=f values(length) as previousLength by JSESSIONID|eval lengthDiff=prevLength-length
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;this would give you the number of characters in the _raw event and then the number of characters in the previous event, you might be able to search where the difference of lengths between events is so much?&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2017 20:16:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multiple-queries-to-extract-one-value/m-p/297291#M89708</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-05-22T20:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple queries to extract one value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multiple-queries-to-extract-one-value/m-p/297292#M89709</link>
      <description>&lt;P&gt;This does not give me the table like in the previous query and even when I put the table tag, don't get my result.&lt;/P&gt;

&lt;P&gt;Is there a way to skip to the next event if we have a big event? Let's say we have an event with more than 5 lines (most events have 5 lines or under) and when we have that event (big event) we skip to the next line and fetch the N- value from there and once we've got that value, we scan again for the next big event and repeat the same way. I think that way, we can get all the required N- values. Hope it makes sense and that there's a way to do it!&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2017 15:35:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multiple-queries-to-extract-one-value/m-p/297292#M89709</guid>
      <dc:creator>rh417692</dc:creator>
      <dc:date>2017-05-23T15:35:00Z</dc:date>
    </item>
  </channel>
</rss>

