<?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: Static field value in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Static-field-value/m-p/495904#M138229</link>
    <description>&lt;P&gt;Thanks Rich, it worked by just tweaking a bit as below :-&lt;/P&gt;

&lt;P&gt;index = Index host=ServerA OR host=ServerB OR host=ServerC OR host=ServerD OR host=ServerE &lt;BR /&gt;
| lookup servers.csv Server as host OUTPUT Application &lt;BR /&gt;
| eval Uptime_Days = System_Up_Time/86400 &lt;BR /&gt;
| stats max(Uptime_Days) as "System Uptime in Days" by host Application&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 03:55:09 GMT</pubDate>
    <dc:creator>bsaujla131984</dc:creator>
    <dc:date>2020-09-30T03:55:09Z</dc:date>
    <item>
      <title>Static field value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Static-field-value/m-p/495900#M138225</link>
      <description>&lt;P&gt;I have created a dashboard to show windows server uptime.&lt;/P&gt;

&lt;P&gt;Now I would like to add application name of all servers. For example, Application A is hosted on Server A and Application B is hosted on Server B. I want to show these application in the dashboard corresponding their respective server names.&lt;/P&gt;

&lt;P&gt;index = Index host=ServerA OR host=ServerB OR host=ServerC OR host=ServerD OR host=ServerE  | eval Uptime_Days = System_Up_Time/86400 | chart max(Uptime_Days) as "System Uptime in Days" by host | sort -Uptime_Days&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:55:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Static-field-value/m-p/495900#M138225</guid>
      <dc:creator>bsaujla131984</dc:creator>
      <dc:date>2020-09-30T03:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: Static field value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Static-field-value/m-p/495901#M138226</link>
      <description>&lt;P&gt;A lookup table should do the job.  Create a CSV file with an "Application" column and a "Server" column.  Then reference the lookup in your query.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index = Index host=ServerA OR host=ServerB OR host=ServerC OR host=ServerD OR host=ServerE 
| eval Uptime_Days = System_Up_Time/86400 
| chart max(Uptime_Days) as "System Uptime in Days" by host 
| sort -Uptime_Days 
| lookup servers.csv Server as host OUTPUT Application 
| table host Application Uptime_Days
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 24 Jan 2020 23:23:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Static-field-value/m-p/495901#M138226</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-01-24T23:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: Static field value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Static-field-value/m-p/495902#M138227</link>
      <description>&lt;P&gt;I think this is best achieved with a lookup.&lt;/P&gt;

&lt;P&gt;This thread should get you pointed in the right direction:&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/659192/how-to-use-a-lookup-table-in-a-splunk-query.html"&gt;https://answers.splunk.com/answers/659192/how-to-use-a-lookup-table-in-a-splunk-query.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Hope that helps!&lt;BR /&gt;
rmmiller&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2020 23:25:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Static-field-value/m-p/495902#M138227</guid>
      <dc:creator>rmmiller</dc:creator>
      <dc:date>2020-01-24T23:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: Static field value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Static-field-value/m-p/495903#M138228</link>
      <description>&lt;P&gt;I tried as suggested, but not getting any server up time now.&lt;/P&gt;</description>
      <pubDate>Sat, 25 Jan 2020 01:06:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Static-field-value/m-p/495903#M138228</guid>
      <dc:creator>bsaujla131984</dc:creator>
      <dc:date>2020-01-25T01:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: Static field value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Static-field-value/m-p/495904#M138229</link>
      <description>&lt;P&gt;Thanks Rich, it worked by just tweaking a bit as below :-&lt;/P&gt;

&lt;P&gt;index = Index host=ServerA OR host=ServerB OR host=ServerC OR host=ServerD OR host=ServerE &lt;BR /&gt;
| lookup servers.csv Server as host OUTPUT Application &lt;BR /&gt;
| eval Uptime_Days = System_Up_Time/86400 &lt;BR /&gt;
| stats max(Uptime_Days) as "System Uptime in Days" by host Application&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:55:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Static-field-value/m-p/495904#M138229</guid>
      <dc:creator>bsaujla131984</dc:creator>
      <dc:date>2020-09-30T03:55:09Z</dc:date>
    </item>
  </channel>
</rss>

