<?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 Lookup using temporary dataset? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Lookup-using-temporary-dataset/m-p/632351#M219668</link>
    <description>&lt;P&gt;I'm trying to add a lookup to enrich results returned from a 'simple' search.&amp;nbsp; The search command I'm using [and I have limited to one key/value pair] is: -&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;index=ee_commercialbankingeforms_pcf "*LEVEL=WARN*" | rex "^\S+\s(?&amp;lt;microService&amp;gt;\S+).*MESSAGE=(?&amp;lt;message&amp;gt;.+)" | bucket _time span=day | stats count by microService, message | lookup [ {JIRASummary: "No JWT found on UserPrincipal and no custom JWT claims configured. No nested JWT will be sent in downstream requests!", JIRA: "CBE-968"} ] JIRASummary AS message OUTPUT JIRA&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;...but I keep seeing following error...&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;Error in 'SearchParser': Missing a search command before '{'. Error at position '192' of search query 'search index=ee_commercialbankingeforms_pcf "*LEVE...{snipped} &lt;FONT color="#FF0000"&gt;{errorcontext = lookup [ {JIRASummar}'.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Can someone explain the error that I see?&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Mick&lt;/P&gt;</description>
    <pubDate>Mon, 27 Feb 2023 14:43:47 GMT</pubDate>
    <dc:creator>Mick_OBrien</dc:creator>
    <dc:date>2023-02-27T14:43:47Z</dc:date>
    <item>
      <title>Lookup using temporary dataset?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-using-temporary-dataset/m-p/632351#M219668</link>
      <description>&lt;P&gt;I'm trying to add a lookup to enrich results returned from a 'simple' search.&amp;nbsp; The search command I'm using [and I have limited to one key/value pair] is: -&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;index=ee_commercialbankingeforms_pcf "*LEVEL=WARN*" | rex "^\S+\s(?&amp;lt;microService&amp;gt;\S+).*MESSAGE=(?&amp;lt;message&amp;gt;.+)" | bucket _time span=day | stats count by microService, message | lookup [ {JIRASummary: "No JWT found on UserPrincipal and no custom JWT claims configured. No nested JWT will be sent in downstream requests!", JIRA: "CBE-968"} ] JIRASummary AS message OUTPUT JIRA&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;...but I keep seeing following error...&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;Error in 'SearchParser': Missing a search command before '{'. Error at position '192' of search query 'search index=ee_commercialbankingeforms_pcf "*LEVE...{snipped} &lt;FONT color="#FF0000"&gt;{errorcontext = lookup [ {JIRASummar}'.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Can someone explain the error that I see?&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Mick&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 14:43:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-using-temporary-dataset/m-p/632351#M219668</guid>
      <dc:creator>Mick_OBrien</dc:creator>
      <dc:date>2023-02-27T14:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup using temporary dataset</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-using-temporary-dataset/m-p/632369#M219672</link>
      <description>&lt;P&gt;The query contains a subsearch, which is executed before the main search.&amp;nbsp; The subsearch must be valid SPL, which is not the case here.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{JIRASummary: "No JWT found on UserPrincipal and no custom JWT claims configured. No nested JWT will be sent in downstream requests!", JIRA: "CBE-968"}&lt;/LI-CODE&gt;&lt;P&gt;is not SPL.&amp;nbsp; What exactly are you trying to do there?&lt;/P&gt;&lt;P&gt;A subsearch in this location doesn't make much sense.&amp;nbsp; The &lt;FONT face="courier new,courier"&gt;lookup&lt;/FONT&gt; command expects the name of a CSV file or defined lookup, which I've never seen come out of a subsearch.&amp;nbsp; Not that it can't be done, but the subseasrch would have to return a valid lookup argument.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 13:56:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-using-temporary-dataset/m-p/632369#M219672</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-02-27T13:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup using temporary dataset?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-using-temporary-dataset/m-p/632378#M219674</link>
      <description>&lt;P&gt;From...&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;A href="https://docs.splunk.com/Documentation/SCS/current/SearchReference/LookupCommandExamples" target="_blank"&gt;lookup command examples - Splunk Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;..I see this example...&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;... | lookup users uid OUTPUTNEW username, department&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;SPAN&gt;What I was trying to do was include a temporary dataset...&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;SPAN&gt;&lt;A href="https://docs.splunk.com/Documentation/SCS/current/Search/Datasets" target="_blank"&gt;Datasets - Splunk Documentation&lt;/A&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;SPAN&gt;i.e. trying to use same sample data as example then something along the lines of...&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;SPAN&gt;&lt;FONT face="courier new,courier"&gt;... | lookup [ {uid: "1066", username: "Claudia Gasrcia", department: "Engineering" }, {...}, {...} ] uid OUTPUTNEW username, department&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;SPAN&gt;...or generally...&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;SPAN&gt;&lt;FONT face="courier new,courier"&gt;search ... | lookup [temporary_dataset] key OUTPUTNEW &amp;lt;lookup_table_fields&amp;gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;SPAN&gt;Is this use of lookup and temporary datasets possible?&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 15:13:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-using-temporary-dataset/m-p/632378#M219674</guid>
      <dc:creator>Mick_OBrien</dc:creator>
      <dc:date>2023-02-27T15:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup using temporary dataset?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-using-temporary-dataset/m-p/632380#M219675</link>
      <description>&lt;P&gt;The cited documentation is for SPL2, which cannot be used in a standard search (SPL).&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 15:20:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-using-temporary-dataset/m-p/632380#M219675</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-02-27T15:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup using temporary dataset?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-using-temporary-dataset/m-p/632512#M219719</link>
      <description>&lt;P&gt;Sorry - I don't know what you mean by SPL and SPL2?&lt;/P&gt;&lt;P&gt;Is there another way of enriching output results using loopup?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2023 08:00:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-using-temporary-dataset/m-p/632512#M219719</guid>
      <dc:creator>Mick_OBrien</dc:creator>
      <dc:date>2023-02-28T08:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup using temporary dataset?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-using-temporary-dataset/m-p/632610#M219762</link>
      <description>&lt;P&gt;SPL2 is a revised query language used by Splunk in some of their newer products.&amp;nbsp; It is not supported in Splunk Enterprise, however.&lt;/P&gt;&lt;P&gt;The standard method for enriching data is by using a lookup table to find information from an event and insert related information from the lookup table.&amp;nbsp; The general format is&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| lookup &amp;lt;lookup&amp;gt; &amp;lt;input field(s)&amp;gt; OUTPUT &amp;lt;output field(s)&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;where &amp;lt;lookup&amp;gt; is either a CSV file, a lookup definition, or a KVStore collection&lt;BR /&gt;and &amp;lt;input field(s)&amp;gt; is one or more field names from the current results&lt;BR /&gt;and &amp;lt;output field(s)&amp;gt; is one or more column names from &amp;lt;lookup&amp;gt;.&lt;/P&gt;&lt;P&gt;See the Search Reference manual for specifics.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2023 15:10:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-using-temporary-dataset/m-p/632610#M219762</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-02-28T15:10:29Z</dc:date>
    </item>
  </channel>
</rss>

