<?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 Is it possible to the output _key from a kvstore (i.e. with &amp;quot;lookup&amp;quot;, not &amp;quot;inputlookup&amp;quot;)? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-the-output-key-from-a-kvstore-i-e-with-quot/m-p/430101#M122981</link>
    <description>&lt;P&gt;Is it possible to output the _key field from a kvstore when using lookup (not inputlookup)?&lt;/P&gt;

&lt;P&gt;I.e. something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... some search| lookup mykvstore some_field OUTPUT _key
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;(which does not seem to work)&lt;/P&gt;

&lt;P&gt;I am aware of the need to rename _key to be able to display it when using &lt;CODE&gt;inputlookup&lt;/CODE&gt;, but I need to use "lookup".&lt;/P&gt;

&lt;P&gt;The use case is to keep track of how many times each row in the kvstore is looked up as part of a larger search.&lt;/P&gt;</description>
    <pubDate>Thu, 18 Oct 2018 23:10:50 GMT</pubDate>
    <dc:creator>torleifg</dc:creator>
    <dc:date>2018-10-18T23:10:50Z</dc:date>
    <item>
      <title>Is it possible to the output _key from a kvstore (i.e. with "lookup", not "inputlookup")?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-the-output-key-from-a-kvstore-i-e-with-quot/m-p/430101#M122981</link>
      <description>&lt;P&gt;Is it possible to output the _key field from a kvstore when using lookup (not inputlookup)?&lt;/P&gt;

&lt;P&gt;I.e. something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... some search| lookup mykvstore some_field OUTPUT _key
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;(which does not seem to work)&lt;/P&gt;

&lt;P&gt;I am aware of the need to rename _key to be able to display it when using &lt;CODE&gt;inputlookup&lt;/CODE&gt;, but I need to use "lookup".&lt;/P&gt;

&lt;P&gt;The use case is to keep track of how many times each row in the kvstore is looked up as part of a larger search.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Oct 2018 23:10:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-the-output-key-from-a-kvstore-i-e-with-quot/m-p/430101#M122981</guid>
      <dc:creator>torleifg</dc:creator>
      <dc:date>2018-10-18T23:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to the output _key from a kvstore (i.e. with "lookup", not "inputlookup")?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-the-output-key-from-a-kvstore-i-e-with-quot/m-p/430102#M122982</link>
      <description>&lt;P&gt;Hi @torleifg,&lt;/P&gt;

&lt;P&gt;Try below query&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;yourSearch&amp;gt;| lookup mykvstore kvstore_field AS raw_data_field OUTPUT _key AS key
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 19 Oct 2018 08:27:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-the-output-key-from-a-kvstore-i-e-with-quot/m-p/430102#M122982</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2018-10-19T08:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to the output _key from a kvstore (i.e. with "lookup", not "inputlookup")?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-the-output-key-from-a-kvstore-i-e-with-quot/m-p/430103#M122983</link>
      <description>&lt;P&gt;Thanks, this worked perfectly, I was convinced I had already tried this, but somehow I must have missed it.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Oct 2018 13:14:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-the-output-key-from-a-kvstore-i-e-with-quot/m-p/430103#M122983</guid>
      <dc:creator>torleifg</dc:creator>
      <dc:date>2018-10-19T13:14:57Z</dc:date>
    </item>
  </channel>
</rss>

