<?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 search query results to null in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Lookup-search-query-results-to-null/m-p/165362#M46980</link>
    <description>&lt;P&gt;Hi  SasiB137 &lt;BR /&gt;
Make sure that TIMEOUT_VAL field is present in the list of your field and that it is a numeric field&lt;/P&gt;</description>
    <pubDate>Wed, 17 Jun 2015 07:55:17 GMT</pubDate>
    <dc:creator>chimell</dc:creator>
    <dc:date>2015-06-17T07:55:17Z</dc:date>
    <item>
      <title>Lookup search query results to null</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-search-query-results-to-null/m-p/165359#M46977</link>
      <description>&lt;P&gt;csv file users_timeout_value_map.csv content.&lt;BR /&gt;
TIMEOUT,TIMEOUT_VAL&lt;/P&gt;

&lt;H2&gt;default_timeout,300&lt;/H2&gt;

&lt;H2&gt;transformes.conf&lt;/H2&gt;

&lt;P&gt;[users_timeout_value_lookup]&lt;BR /&gt;
filename = users_timeout_value_map.csv&lt;BR /&gt;
Question&lt;BR /&gt;
... | lookup users_timeout_value_lookup TIMEOUT OUTPUT TIMEOUT_VAL | eval TIMEOUT_VALUE=if(isnull(TIMEOUT),18000,TIMEOUT_VAL*60) | table TIMEOUT_VALUE&lt;/P&gt;

&lt;P&gt;This always results 1800 as TIMEOUT results to null.  Can any one help me plz.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Sasi.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 20:18:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-search-query-results-to-null/m-p/165359#M46977</guid>
      <dc:creator>SasiB137</dc:creator>
      <dc:date>2020-09-28T20:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup search query results to null</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-search-query-results-to-null/m-p/165360#M46978</link>
      <description>&lt;P&gt;What do you get from &lt;CODE&gt;... | table TIMEOUT TIMEOUT_VAL TIMEOUT_VALUE&lt;/CODE&gt; ?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2015 03:05:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-search-query-results-to-null/m-p/165360#M46978</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-06-17T03:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup search query results to null</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-search-query-results-to-null/m-p/165361#M46979</link>
      <description>&lt;P&gt;First, the file name is &lt;CODE&gt;transforms.conf&lt;/CODE&gt; not transformers.conf, but that is probably just a typo.&lt;/P&gt;

&lt;P&gt;Second, you are showing what is in the CSV file, but what is in the search results? The lookup command expects that your search results will include a field named TIMEOUT that can be used in the lookup. if the search results do not contain this field, then you will always get a result of 18000. &lt;/P&gt;

&lt;P&gt;If your search results return a field with a different name, then you can use&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| lookup users_timeout_value_lookup TIMEOUT as yourfieldname OUTPUT TIMEOUT_VAL
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;to tell Splunk which field to match against the TIMEOUT field of the CSV file.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2015 04:48:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-search-query-results-to-null/m-p/165361#M46979</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2015-06-17T04:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup search query results to null</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-search-query-results-to-null/m-p/165362#M46980</link>
      <description>&lt;P&gt;Hi  SasiB137 &lt;BR /&gt;
Make sure that TIMEOUT_VAL field is present in the list of your field and that it is a numeric field&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2015 07:55:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-search-query-results-to-null/m-p/165362#M46980</guid>
      <dc:creator>chimell</dc:creator>
      <dc:date>2015-06-17T07:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup search query results to null</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-search-query-results-to-null/m-p/165363#M46981</link>
      <description>&lt;P&gt;this works :&lt;BR /&gt;
...| eval TIMEOUT="default_timeout" | lookup users_timeout_value_lookup TIMEOUT OUTPUT TIMEOUT_VAL | eval TIMEOUT_VALUE=if(isnull(TIMEOUT_VAL),18000,TIMEOUT_VAL*60) | table TIMEOUT_VALUE&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 20:18:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-search-query-results-to-null/m-p/165363#M46981</guid>
      <dc:creator>SasiB137</dc:creator>
      <dc:date>2020-09-28T20:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup search query results to null</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-search-query-results-to-null/m-p/165364#M46982</link>
      <description>&lt;P&gt;null null 1800&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2015 16:22:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-search-query-results-to-null/m-p/165364#M46982</guid>
      <dc:creator>SasiB137</dc:creator>
      <dc:date>2015-06-17T16:22:13Z</dc:date>
    </item>
  </channel>
</rss>

