<?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 How to map my query with inputlookup values? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-map-my-query-with-inputlookup-values/m-p/636877#M108929</link>
    <description>&lt;P&gt;I am running script to get ping status of the servers and i onboarded the logs and extract filed as Servers.Now in my inputlookup i have 5 fields (ServerName,ApplicationName,Environment,Alias,IPAdress).So i need to map the query result with inputlookup.&lt;/P&gt;&lt;P&gt;Index=* sourcetype=StatusPing |rex field=_raw "^[^\|\n]*\|\s+(?P&amp;lt;Servers&amp;gt;[^ ]+)" | eval Status=case(Lost=0, "UP", Lost=2, "Warning", Lost=4, "Down")|append [|inputlookup PingStatus.csv|rename Servers as ServerName ]|table Alias,EnvironmentName,ApplicationName,ServerName,IPAddress,Lost,Status&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;</description>
    <pubDate>Fri, 31 Mar 2023 13:32:18 GMT</pubDate>
    <dc:creator>karthi2809</dc:creator>
    <dc:date>2023-03-31T13:32:18Z</dc:date>
    <item>
      <title>How to map my query with inputlookup values?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-map-my-query-with-inputlookup-values/m-p/636877#M108929</link>
      <description>&lt;P&gt;I am running script to get ping status of the servers and i onboarded the logs and extract filed as Servers.Now in my inputlookup i have 5 fields (ServerName,ApplicationName,Environment,Alias,IPAdress).So i need to map the query result with inputlookup.&lt;/P&gt;&lt;P&gt;Index=* sourcetype=StatusPing |rex field=_raw "^[^\|\n]*\|\s+(?P&amp;lt;Servers&amp;gt;[^ ]+)" | eval Status=case(Lost=0, "UP", Lost=2, "Warning", Lost=4, "Down")|append [|inputlookup PingStatus.csv|rename Servers as ServerName ]|table Alias,EnvironmentName,ApplicationName,ServerName,IPAddress,Lost,Status&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2023 13:32:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-map-my-query-with-inputlookup-values/m-p/636877#M108929</guid>
      <dc:creator>karthi2809</dc:creator>
      <dc:date>2023-03-31T13:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to map my query with inputlookup values?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-map-my-query-with-inputlookup-values/m-p/636878#M108930</link>
      <description>&lt;P&gt;Use &lt;FONT face="courier new,courier"&gt;lookup&lt;/FONT&gt; rather than &lt;FONT face="courier new,courier"&gt;inputlookup&lt;/FONT&gt;.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=foo sourcetype=StatusPing 
| rex field=_raw "^[^\|\n]*\|\s+(?P&amp;lt;Servers&amp;gt;[^ ]+)" 
| eval Status=case(Lost=0, "UP", Lost=2, "Warning", Lost=4, "Down")
| rename Servers as ServerName
| lookup PingStatus.csv ServerName
| table Alias,EnvironmentName,ApplicationName,ServerName,IPAddress,Lost,Status&lt;/LI-CODE&gt;&lt;P&gt;Don't use &lt;FONT face="courier new,courier"&gt;index=*&lt;/FONT&gt; in a production query.&amp;nbsp; Your Splunk admin will hate you for it.&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2023 13:37:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-map-my-query-with-inputlookup-values/m-p/636878#M108930</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-03-31T13:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to map my query with inputlookup values?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-map-my-query-with-inputlookup-values/m-p/638542#M109033</link>
      <description>&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2023 05:38:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-map-my-query-with-inputlookup-values/m-p/638542#M109033</guid>
      <dc:creator>karthi2809</dc:creator>
      <dc:date>2023-04-04T05:38:45Z</dc:date>
    </item>
  </channel>
</rss>

