<?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 search query help for using lookup in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/search-query-help-for-using-lookup/m-p/554498#M6026</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;I am looking to use a lookup in my search query. basically&amp;nbsp; in lookup, I have 2 rows for threshold&amp;nbsp; and I wanted to use them in my search query as 2 column.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Screenshot of csv and search query&amp;nbsp; requirement.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Lookup&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lookup Edit _ Splunk 8.1.0.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/14477i884D11681A3D0CE0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Lookup Edit _ Splunk 8.1.0.png" alt="Lookup Edit _ Splunk 8.1.0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;expected search query results&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Search _ Splunk 8.1.0.png" style="width: 566px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/14478iFE10A2FA641A48A0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Search _ Splunk 8.1.0.png" alt="Search _ Splunk 8.1.0.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;I tried like this. but not sure if there is better way to implement this requirement.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| appendcols
[| inputlookup test.csv
| table MetricName Threshold
| where MetricName="threads"
| rename Threshold as nbThreadsThreshold
]
| appendcols
[| inputlookup test.csv
| table MetricName Threshold
| where MetricName="openFiles"
| rename Threshold as nbOpenFilesThreshold
]
| filldown nbThreadsThreshold nbOpenFilesThreshold&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 04 Jun 2021 15:52:01 GMT</pubDate>
    <dc:creator>AKG1_old1</dc:creator>
    <dc:date>2021-06-04T15:52:01Z</dc:date>
    <item>
      <title>search query help for using lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/search-query-help-for-using-lookup/m-p/554498#M6026</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;I am looking to use a lookup in my search query. basically&amp;nbsp; in lookup, I have 2 rows for threshold&amp;nbsp; and I wanted to use them in my search query as 2 column.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Screenshot of csv and search query&amp;nbsp; requirement.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Lookup&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lookup Edit _ Splunk 8.1.0.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/14477i884D11681A3D0CE0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Lookup Edit _ Splunk 8.1.0.png" alt="Lookup Edit _ Splunk 8.1.0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;expected search query results&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Search _ Splunk 8.1.0.png" style="width: 566px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/14478iFE10A2FA641A48A0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Search _ Splunk 8.1.0.png" alt="Search _ Splunk 8.1.0.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;I tried like this. but not sure if there is better way to implement this requirement.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| appendcols
[| inputlookup test.csv
| table MetricName Threshold
| where MetricName="threads"
| rename Threshold as nbThreadsThreshold
]
| appendcols
[| inputlookup test.csv
| table MetricName Threshold
| where MetricName="openFiles"
| rename Threshold as nbOpenFilesThreshold
]
| filldown nbThreadsThreshold nbOpenFilesThreshold&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jun 2021 15:52:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/search-query-help-for-using-lookup/m-p/554498#M6026</guid>
      <dc:creator>AKG1_old1</dc:creator>
      <dc:date>2021-06-04T15:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: search query help for using lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/search-query-help-for-using-lookup/m-p/554514#M6032</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/189181"&gt;@AKG1_old1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please try this?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| appendcols [
| inputlookup test.csv | table MetricName Threshold | where MetricName IN ("threads","openFiles")
| transpose header_field=MetricName | table threads openFiles]
| filldown threads openFiles&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;KV&lt;BR /&gt;▄︻̷̿┻̿═━一&lt;BR /&gt;&lt;BR /&gt;If any of my reply helps you to solve the problem Or gain knowledge, an upvote would be appreciated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jun 2021 17:00:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/search-query-help-for-using-lookup/m-p/554514#M6032</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2021-06-04T17:00:18Z</dc:date>
    </item>
  </channel>
</rss>

