<?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: How do I add a host name from another index to a scheduled report which has a table from other index? in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/How-do-I-add-a-host-name-from-another-index-to-a-scheduled/m-p/360505#M19335</link>
    <description>&lt;P&gt;Hi pragi_eashwar,&lt;BR /&gt;
you can follow two ways:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;if you have a more or less static situation, you can put your hostnames and IPs in a lookup and use it to insert hostames in your report;&lt;/LI&gt;
&lt;LI&gt;if you have a dynamic situation, you can use commands like appendpipe or join to add the hostname to each row of your report.&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;I suggest to use Lookup because is quicker.&lt;/P&gt;

&lt;P&gt;Your can manage hostnames in you lookup using a scheduled search, every night (or a different frequency) e.g.:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your_search
| dedup host
| table host ip 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;after you can use it &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=a threat=critical vulnerability=high 
| lookup hostnames.csv ip OUTPUT host
| table ip host a b c 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
    <pubDate>Wed, 03 May 2017 09:54:14 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2017-05-03T09:54:14Z</dc:date>
    <item>
      <title>How do I add a host name from another index to a scheduled report which has a table from other index?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-do-I-add-a-host-name-from-another-index-to-a-scheduled/m-p/360504#M19334</link>
      <description>&lt;P&gt;Scheduled report &lt;BR /&gt;
Query&lt;BR /&gt;
Index=a threat=critical vulnerability=high | table ip,a,b,c &lt;BR /&gt;
Requirement &lt;BR /&gt;
How to add host name of the ip to this report which is present in the Logs situated in another index ? &lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2017 07:54:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-do-I-add-a-host-name-from-another-index-to-a-scheduled/m-p/360504#M19334</guid>
      <dc:creator>pragi_eashwar</dc:creator>
      <dc:date>2017-05-03T07:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add a host name from another index to a scheduled report which has a table from other index?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-do-I-add-a-host-name-from-another-index-to-a-scheduled/m-p/360505#M19335</link>
      <description>&lt;P&gt;Hi pragi_eashwar,&lt;BR /&gt;
you can follow two ways:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;if you have a more or less static situation, you can put your hostnames and IPs in a lookup and use it to insert hostames in your report;&lt;/LI&gt;
&lt;LI&gt;if you have a dynamic situation, you can use commands like appendpipe or join to add the hostname to each row of your report.&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;I suggest to use Lookup because is quicker.&lt;/P&gt;

&lt;P&gt;Your can manage hostnames in you lookup using a scheduled search, every night (or a different frequency) e.g.:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your_search
| dedup host
| table host ip 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;after you can use it &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=a threat=critical vulnerability=high 
| lookup hostnames.csv ip OUTPUT host
| table ip host a b c 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2017 09:54:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-do-I-add-a-host-name-from-another-index-to-a-scheduled/m-p/360505#M19335</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-05-03T09:54:14Z</dc:date>
    </item>
  </channel>
</rss>

