<?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 tables and multiple fields values in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Lookup-tables-and-multiple-fields-values/m-p/570252#M198758</link>
    <description>&lt;P&gt;I need help to use the values from a lookup table into multiple fields, where the output from the lookup table is a list of values.&lt;/P&gt;&lt;P&gt;The value from the table will be populated in&amp;nbsp;a_ims, b_ims, c_ims... instead of&amp;nbsp; "*"&lt;/P&gt;&lt;P&gt;I tried this query below and some other variations but none of them worked.&lt;BR /&gt;&lt;BR /&gt;index=*&amp;nbsp; sourcetype=v_main (a_imsi=* OR b_imsi=* OR c_imsi=* OR d_imsi=* OR Imsi=*)&lt;/P&gt;&lt;P&gt;| lookup ADHOC.csv Comment OUTPUT Imsi&lt;/P&gt;&lt;P&gt;| eval IMSI=mvappend(a_imsi,b_imsi,c_imsi,d_imsi,Imsi)&lt;/P&gt;&lt;P&gt;| mvexpand IMSI&lt;/P&gt;&lt;P&gt;| bin span=1d _time&lt;/P&gt;&lt;P&gt;| stats sum(TCDuration) as TCDuration by _time IMSI&lt;/P&gt;&lt;P&gt;| eval TCDuration=TCDuration/1000&lt;/P&gt;&lt;P&gt;| eval Utilization=round(((TCDuration/86400)*100),1)&lt;/P&gt;&lt;P&gt;| eval Utilization=if(Utilization &amp;gt;100, 100, Utilization)&lt;/P&gt;&lt;P&gt;| fields - TCDuration&lt;/P&gt;&lt;P&gt;| timechart eval(round(avg(Utilization),1)) by IMSI limit=0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas will be really helpful&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks so much&lt;/P&gt;</description>
    <pubDate>Fri, 08 Oct 2021 15:44:12 GMT</pubDate>
    <dc:creator>jaydiare</dc:creator>
    <dc:date>2021-10-08T15:44:12Z</dc:date>
    <item>
      <title>Lookup tables and multiple fields values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-tables-and-multiple-fields-values/m-p/570252#M198758</link>
      <description>&lt;P&gt;I need help to use the values from a lookup table into multiple fields, where the output from the lookup table is a list of values.&lt;/P&gt;&lt;P&gt;The value from the table will be populated in&amp;nbsp;a_ims, b_ims, c_ims... instead of&amp;nbsp; "*"&lt;/P&gt;&lt;P&gt;I tried this query below and some other variations but none of them worked.&lt;BR /&gt;&lt;BR /&gt;index=*&amp;nbsp; sourcetype=v_main (a_imsi=* OR b_imsi=* OR c_imsi=* OR d_imsi=* OR Imsi=*)&lt;/P&gt;&lt;P&gt;| lookup ADHOC.csv Comment OUTPUT Imsi&lt;/P&gt;&lt;P&gt;| eval IMSI=mvappend(a_imsi,b_imsi,c_imsi,d_imsi,Imsi)&lt;/P&gt;&lt;P&gt;| mvexpand IMSI&lt;/P&gt;&lt;P&gt;| bin span=1d _time&lt;/P&gt;&lt;P&gt;| stats sum(TCDuration) as TCDuration by _time IMSI&lt;/P&gt;&lt;P&gt;| eval TCDuration=TCDuration/1000&lt;/P&gt;&lt;P&gt;| eval Utilization=round(((TCDuration/86400)*100),1)&lt;/P&gt;&lt;P&gt;| eval Utilization=if(Utilization &amp;gt;100, 100, Utilization)&lt;/P&gt;&lt;P&gt;| fields - TCDuration&lt;/P&gt;&lt;P&gt;| timechart eval(round(avg(Utilization),1)) by IMSI limit=0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas will be really helpful&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks so much&lt;/P&gt;</description>
      <pubDate>Fri, 08 Oct 2021 15:44:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-tables-and-multiple-fields-values/m-p/570252#M198758</guid>
      <dc:creator>jaydiare</dc:creator>
      <dc:date>2021-10-08T15:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup tables and multiple fields values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-tables-and-multiple-fields-values/m-p/570262#M198764</link>
      <description>&lt;P&gt;"none of them worked" is not a helpful problem statement.&amp;nbsp; Please describe the desired results and show the actual results.&amp;nbsp; It would help to know what the the lookup file looks like, also.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Oct 2021 16:50:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-tables-and-multiple-fields-values/m-p/570262#M198764</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-10-08T16:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup tables and multiple fields values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-tables-and-multiple-fields-values/m-p/570268#M198768</link>
      <description>&lt;P&gt;for example adding the values&amp;nbsp;&lt;/P&gt;&lt;P&gt;index=* sourcetype IN (*) (&lt;/P&gt;&lt;P&gt;a_imsi IN (1 2 3 4 5 6)&lt;/P&gt;&lt;P&gt;OR b_imsi IN (1 2 3 4 5 6)&lt;/P&gt;&lt;P&gt;OR c_imsi IN (1 2 3 4 5 6)&lt;/P&gt;&lt;P&gt;OR d_imsi IN (1 2 3 4 5 6) )&lt;/P&gt;&lt;P&gt;| eval IMSI=mvappend(a_imsi,b_imsi,c_imsi,d_imsi)&lt;/P&gt;&lt;P&gt;| mvexpand IMSI&lt;/P&gt;&lt;P&gt;| bin span=1d _time&lt;/P&gt;&lt;P&gt;| stats sum(TCDuration) as TCDuration by _time IMSI&lt;/P&gt;&lt;P&gt;| eval TCDuration=TCDuration/1000&lt;/P&gt;&lt;P&gt;| eval Utilization=round(((TCDuration/86400)*100),1)&lt;/P&gt;&lt;P&gt;| eval Utilization=if(Utilization &amp;gt;100, 100, Utilization)&lt;/P&gt;&lt;P&gt;| fields - TCDuration&lt;/P&gt;&lt;P&gt;| timechart eval(round(avg(Utilization),1)) by IMSI limit=0&lt;/P&gt;</description>
      <pubDate>Fri, 08 Oct 2021 17:30:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-tables-and-multiple-fields-values/m-p/570268#M198768</guid>
      <dc:creator>jaydiare</dc:creator>
      <dc:date>2021-10-08T17:30:17Z</dc:date>
    </item>
  </channel>
</rss>

