<?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: Lookup command doesn't support dot notation in field name in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Lookup-command-doesn-t-support-dot-notation-in-field-name/m-p/500646#M61644</link>
    <description>&lt;P&gt;Hi, &lt;BR /&gt;
Thanks for your answers, I just want to let you know the definition of the kvstore is the following:&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/7798i2E6EFF51FC2EEA65/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;They just define tag, but I know that inside tag there is the name. However, when I use tag.name, I get "Error in 'lookup' command: Could not find all of the specified destination fields in the lookup table." &lt;/P&gt;</description>
    <pubDate>Mon, 14 Oct 2019 14:47:27 GMT</pubDate>
    <dc:creator>esmelulita</dc:creator>
    <dc:date>2019-10-14T14:47:27Z</dc:date>
    <item>
      <title>Lookup command doesn't support dot notation in field name</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Lookup-command-doesn-t-support-dot-notation-in-field-name/m-p/500643#M61641</link>
      <description>&lt;P&gt;Hi, I'm working with Threatconnect lookup created by their add on, one of the kvstores has one field within a collection, the field name in the kvstore definition is tag, that field has multiple values for tag.name.&lt;/P&gt;

&lt;P&gt;For example, one row will be like the following:&lt;BR /&gt;
webLink: &lt;A href="https://app.threatconnet.com"&gt;https://app.threatconnet.com&lt;/A&gt;&lt;BR /&gt;
rating: 5.0&lt;BR /&gt;
confidence: 80&lt;BR /&gt;
indicator: 101.1.8.1&lt;BR /&gt;
tag.name: malware&lt;BR /&gt;
     .name: Corebot&lt;BR /&gt;
     .name: Ransomware&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/7801i961DC635BA4134C2/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;The field tag is part of the supported fields, however, I'm not able to make searches over that field using lookup command &lt;BR /&gt;
If I use &lt;CODE&gt;|lookup tci indicator as dest OUTPUT  tag as tagcustom | table dest, tag&lt;/CODE&gt;  the tag column is empty.&lt;/P&gt;

&lt;P&gt;If I use &lt;CODE&gt;|lookup tci indicator as dest OUTPUT  tag.name as tagcustom | table dest, tagcustom&lt;/CODE&gt; I get an splunk error &lt;STRONG&gt;"Error in 'lookup' command: Could not find all of the specified destination fields in the lookup table."&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;I would like to use search command to find custom tag.name but it doesn't work.&lt;/P&gt;

&lt;P&gt;Notice that the tag field has values because when I use the command &lt;BR /&gt;
&lt;CODE&gt;|inputlookup tci |search tag.name=Corebot&lt;/CODE&gt; I get information in that column.&lt;/P&gt;

&lt;P&gt;I would like to know if there is possible to use lookup command to retrieve tag.name. I know that I can use a subsearch with the inputlookup command, but I think it is not efficient. &lt;/P&gt;

&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 20:53:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Lookup-command-doesn-t-support-dot-notation-in-field-name/m-p/500643#M61641</guid>
      <dc:creator>esmelulita</dc:creator>
      <dc:date>2019-10-10T20:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup command doesn't support dot notation in field name</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Lookup-command-doesn-t-support-dot-notation-in-field-name/m-p/500644#M61642</link>
      <description>&lt;P&gt;I did a test in my personal splunk and it had worked get data from fields like "tag.name". May you have to revist your code to get it done properly.&lt;BR /&gt;
I created a  csv file with 2 fiels, cod and tag.name and added fake data to match my VendorID code. &lt;BR /&gt;
Here is the command I used to search the respective VendID code at lookup table and output tag.name. I used a stat before apply the lookup command.&lt;/P&gt;

&lt;P&gt;index=main VendorID=* | stats count by VendorID | lookup lktest cod as VendorID Output tag.name | sort by tag.name&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.3.2/SearchReference/Lookup"&gt;https://docs.splunk.com/Documentation/Splunk/7.3.2/SearchReference/Lookup&lt;/A&gt;!&lt;BR /&gt;
&lt;A href="https://answers.splunk.comstorage/temp/275828-lookup.jpg"&gt;alt text&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 22:52:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Lookup-command-doesn-t-support-dot-notation-in-field-name/m-p/500644#M61642</guid>
      <dc:creator>ivanreis</dc:creator>
      <dc:date>2019-10-10T22:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup command doesn't support dot notation in field name</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Lookup-command-doesn-t-support-dot-notation-in-field-name/m-p/500645#M61643</link>
      <description>&lt;P&gt;You are swapping arguments and putting them in the wrong place.  Here is a run anywhere example that works (it has nothing to do with the dot):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval tag.name="microsoft.com" 
| lookup dnslookup clienthost AS tag.name OUTPUT clientip AS tag.name2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You have your field names in the &lt;CODE&gt;OUTPUT&lt;/CODE&gt; swapped so you get an error like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval tag.name="microsoft.com" 
| lookup dnslookup clienthost AS tag.name OUTPUT tag.name2 AS clientip
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 14 Oct 2019 01:30:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Lookup-command-doesn-t-support-dot-notation-in-field-name/m-p/500645#M61643</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-10-14T01:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup command doesn't support dot notation in field name</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Lookup-command-doesn-t-support-dot-notation-in-field-name/m-p/500646#M61644</link>
      <description>&lt;P&gt;Hi, &lt;BR /&gt;
Thanks for your answers, I just want to let you know the definition of the kvstore is the following:&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/7798i2E6EFF51FC2EEA65/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;They just define tag, but I know that inside tag there is the name. However, when I use tag.name, I get "Error in 'lookup' command: Could not find all of the specified destination fields in the lookup table." &lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 14:47:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Lookup-command-doesn-t-support-dot-notation-in-field-name/m-p/500646#M61644</guid>
      <dc:creator>esmelulita</dc:creator>
      <dc:date>2019-10-14T14:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup command doesn't support dot notation in field name</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Lookup-command-doesn-t-support-dot-notation-in-field-name/m-p/500647#M61645</link>
      <description>&lt;P&gt;In other words, do this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | lookup tci indicator ASdest OUTPUT tag AS tag.name | table dest, tag
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 14 Oct 2019 19:19:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Lookup-command-doesn-t-support-dot-notation-in-field-name/m-p/500647#M61645</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-10-14T19:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup command doesn't support dot notation in field name</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Lookup-command-doesn-t-support-dot-notation-in-field-name/m-p/500648#M61646</link>
      <description>&lt;P&gt;This has NOTHING to do with it.  Did you look at my answer and the clarifying comment?  Your SPL is backwards.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 19:20:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Lookup-command-doesn-t-support-dot-notation-in-field-name/m-p/500648#M61646</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-10-14T19:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup command doesn't support dot notation in field name</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Lookup-command-doesn-t-support-dot-notation-in-field-name/m-p/500649#M61647</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
I think my example wasn't the best, so I changed. And I'm going to show the full example.&lt;/P&gt;

&lt;P&gt;When I use inputlookup I'am able to see the tag.name.&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/7799iB076AE661C599462/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;If I try to use the lookup command I get no information in the tag column: &lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/7800i70BC860A5861C5B6/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2019 14:57:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Lookup-command-doesn-t-support-dot-notation-in-field-name/m-p/500649#M61647</guid>
      <dc:creator>esmelulita</dc:creator>
      <dc:date>2019-10-15T14:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup command doesn't support dot notation in field name</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Lookup-command-doesn-t-support-dot-notation-in-field-name/m-p/543310#M65108</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I'm also facing the same issue, while using threatconnect app fields tag.name &amp;amp; tag.weblink in lookup command output.&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Actually, splunk supports dot notation on the normal lookups, i won't face issue on it. But on the threatconnect app, tag field is consist of name &amp;amp; weblink [key-value pairs]. While trying to access tag.name &amp;amp; tag.weblink in lookup command facing issue.&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone help on this.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 06:20:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Lookup-command-doesn-t-support-dot-notation-in-field-name/m-p/543310#M65108</guid>
      <dc:creator>manikandanp</dc:creator>
      <dc:date>2021-03-11T06:20:51Z</dc:date>
    </item>
  </channel>
</rss>

