<?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: What do I need to alter in my search to get these fields? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/What-do-I-need-to-alter-in-my-search-to-get-these-fields/m-p/345965#M165373</link>
    <description>&lt;P&gt;@somesoni2 , I see no results in column lastPhoneHomeTime .Thanks.&lt;/P&gt;</description>
    <pubDate>Thu, 09 Nov 2017 15:54:13 GMT</pubDate>
    <dc:creator>splunker969</dc:creator>
    <dc:date>2017-11-09T15:54:13Z</dc:date>
    <item>
      <title>What do I need to alter in my search to get these fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-do-I-need-to-alter-in-my-search-to-get-these-fields/m-p/345960#M165368</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;

&lt;P&gt;We have two lists of CSV files. Each one has 500 hosts and for each we need to figure out among hosts which are reporting to Splunk or not. For that I created a lookup and I'm able to see some hosts are not reporting to Splunk since I need to combine the list and also check which hosts are not reporting to the deployment server. The reason to check the deployment server is that we need to install agents on hosts which do not have among two csv files. So actually I am looking for a search that shows these columns: host, IP age , Last time reporting Splunk and agent version, reporting deployment server or not. I have two queries. Please help me search to check the lists of the servers that are reporting Splunk and the deployment.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|metadata type=hosts index=* |lookup samplehostsrecentlist.csv host output PCI host os IP  |search PCI=Y |eval age=(now()-recentTime)|search age &amp;gt;1|convert ctime(*Time)| append[  |inputlookup samplehostsrecentlist.csv ] | dedup host | fields host IP PCI os lastTime age | sort lastTime|  convert timeformat="%Y-%m-%d %k:%M:%S" ctime(current_time) as current_time ctime(last_login_time) as last_login_time rmunit(age) as numSecs  | eval stringSecs=tostring(numSecs,"duration")
 | eval stringSecs=case(stringSecs="00:00:00", "0+0:0:0", 0=0, stringSecs)
 | eval stringSecs = replace(stringSecs,"(\d+)\:(\d+)\:(\d+)","\1h \2min \3s") | fields - age current_time numSecs | rename stringSecs as age | sort - age
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;HR /&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal source=*metrics.log* fwdType=uf  
| stats values(version) as Version values(os) as OS values(fwdType) as ForwarderType values(build) as Build by hostname
| join type=outer hostname [|inputlookup sample1hostsrecentlist.csv | eval hostname=host | table hostname PCI]
| join type=outer hostname [|inputlookup sample2hostsrecentlist.csv | eval hostname=host | table hostname sox]
| where PCI="y" OR sox="y" | rename hostname as Host
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 07 Nov 2017 16:11:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-do-I-need-to-alter-in-my-search-to-get-these-fields/m-p/345960#M165368</guid>
      <dc:creator>splunker969</dc:creator>
      <dc:date>2017-11-07T16:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: What do I need to alter in my search to get these fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-do-I-need-to-alter-in-my-search-to-get-these-fields/m-p/345961#M165369</link>
      <description>&lt;P&gt;@somesoni2&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2017 15:47:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-do-I-need-to-alter-in-my-search-to-get-these-fields/m-p/345961#M165369</guid>
      <dc:creator>splunker969</dc:creator>
      <dc:date>2017-11-08T15:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: What do I need to alter in my search to get these fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-do-I-need-to-alter-in-my-search-to-get-these-fields/m-p/345962#M165370</link>
      <description>&lt;P&gt;Does the 2nd query populate lookup samplehostsrecentlist.csv? &lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2017 20:13:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-do-I-need-to-alter-in-my-search-to-get-these-fields/m-p/345962#M165370</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-11-08T20:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: What do I need to alter in my search to get these fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-do-I-need-to-alter-in-my-search-to-get-these-fields/m-p/345963#M165371</link>
      <description>&lt;P&gt;Can you allobarate.I am not getting you?@somesoni2&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2017 20:57:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-do-I-need-to-alter-in-my-search-to-get-these-fields/m-p/345963#M165371</guid>
      <dc:creator>splunker969</dc:creator>
      <dc:date>2017-11-08T20:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: What do I need to alter in my search to get these fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-do-I-need-to-alter-in-my-search-to-get-these-fields/m-p/345964#M165372</link>
      <description>&lt;P&gt;Give this a try (assuming your deployment client phonehome period is less than an hr)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|metadata type=hosts index=* |lookup samplehostsrecentlist.csv host output PCI host os IP  |search PCI=Y |eval age=(now()-recentTime)|search age &amp;gt;1
| append [search index=_internal sourcetype=splunkd component=HttpPubSubConnection phonehome earliest=-1h@h | stats max(_time) as lastPhoneHomeTime by host] | stats values(*) as * by host |convert ctime(*Time)
| append[  |inputlookup samplehostsrecentlist.csv ] | dedup host | fields host IP PCI os lastTime lastPhoneHomeTime  age | sort lastTime|  convert timeformat="%Y-%m-%d %k:%M:%S" ctime(current_time) as current_time ctime(last_login_time) as last_login_time rmunit(age) as numSecs  | eval stringSecs=tostring(numSecs,"duration")
  | eval stringSecs=case(stringSecs="00:00:00", "0+0:0:0", 0=0, stringSecs)
  | eval stringSecs = replace(stringSecs,"(\d+)\:(\d+)\:(\d+)","\1h \2min \3s") | fields - age current_time numSecs | rename stringSecs as age | sort - age
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 09 Nov 2017 02:54:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-do-I-need-to-alter-in-my-search-to-get-these-fields/m-p/345964#M165372</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-11-09T02:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: What do I need to alter in my search to get these fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-do-I-need-to-alter-in-my-search-to-get-these-fields/m-p/345965#M165373</link>
      <description>&lt;P&gt;@somesoni2 , I see no results in column lastPhoneHomeTime .Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2017 15:54:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-do-I-need-to-alter-in-my-search-to-get-these-fields/m-p/345965#M165373</guid>
      <dc:creator>splunker969</dc:creator>
      <dc:date>2017-11-09T15:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: What do I need to alter in my search to get these fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-do-I-need-to-alter-in-my-search-to-get-these-fields/m-p/345966#M165374</link>
      <description>&lt;P&gt;Ok. See this search alone give you result.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal sourcetype=splunkd component=HttpPubSubConnection phonehome earliest=-1h@h  [ |inputlookup samplehostsrecentlist.csv |search PCI="Y" | table host]| stats max(_time) as lastPhoneHomeTime by host
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 09 Nov 2017 16:03:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-do-I-need-to-alter-in-my-search-to-get-these-fields/m-p/345966#M165374</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-11-09T16:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: What do I need to alter in my search to get these fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-do-I-need-to-alter-in-my-search-to-get-these-fields/m-p/345967#M165375</link>
      <description>&lt;P&gt;Got results in Epoch Time for cloumn "lastPhoneHomeTime" .I believe hosts are not "PCI=y " &lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2017 16:07:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-do-I-need-to-alter-in-my-search-to-get-these-fields/m-p/345967#M165375</guid>
      <dc:creator>splunker969</dc:creator>
      <dc:date>2017-11-09T16:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: What do I need to alter in my search to get these fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-do-I-need-to-alter-in-my-search-to-get-these-fields/m-p/345968#M165376</link>
      <description>&lt;P&gt;In your first search (| metadata .. one), you're using filter with PCI=Y, So I assume you're interested in getting inventory for PCI servers only. Am I correct? &lt;BR /&gt;
Try change earliest=-1h@h  to earliest=&lt;A href="mailto:-7d@d"&gt;-7d@d&lt;/A&gt;. &lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2017 16:23:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-do-I-need-to-alter-in-my-search-to-get-these-fields/m-p/345968#M165376</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-11-09T16:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: What do I need to alter in my search to get these fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-do-I-need-to-alter-in-my-search-to-get-these-fields/m-p/345969#M165377</link>
      <description>&lt;P&gt;Yes.Your correct .Iam especially looking for PCI=Y .&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2017 18:53:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-do-I-need-to-alter-in-my-search-to-get-these-fields/m-p/345969#M165377</guid>
      <dc:creator>splunker969</dc:creator>
      <dc:date>2017-11-09T18:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: What do I need to alter in my search to get these fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-do-I-need-to-alter-in-my-search-to-get-these-fields/m-p/345970#M165378</link>
      <description>&lt;P&gt;Does it give you any record when you increase the time range?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2017 19:08:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-do-I-need-to-alter-in-my-search-to-get-these-fields/m-p/345970#M165378</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-11-09T19:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: What do I need to alter in my search to get these fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-do-I-need-to-alter-in-my-search-to-get-these-fields/m-p/345971#M165379</link>
      <description>&lt;P&gt;No it does not gave result @somesoni2&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2017 19:14:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-do-I-need-to-alter-in-my-search-to-get-these-fields/m-p/345971#M165379</guid>
      <dc:creator>splunker969</dc:creator>
      <dc:date>2017-11-09T19:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: What do I need to alter in my search to get these fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-do-I-need-to-alter-in-my-search-to-get-these-fields/m-p/345972#M165380</link>
      <description>&lt;P&gt;Thats the query I use to find which clients are phoning home to deployment server. Do you use deployment server for any of the PCI servers of yours? Can you check if internal logs are being forwarded from your universal forwarders to Indexers?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2017 19:17:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-do-I-need-to-alter-in-my-search-to-get-these-fields/m-p/345972#M165380</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-11-09T19:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: What do I need to alter in my search to get these fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-do-I-need-to-alter-in-my-search-to-get-these-fields/m-p/345973#M165381</link>
      <description>&lt;P&gt;Hi @somesoni2,It gives Results of  different servers not pci=y and When I include the same in the  big search that you provided it wont work .Yes, We use deployment server for the PCI servers .Yes,  internal logs are being forwarded from our universal forwarders to Indexers.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2017 21:21:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-do-I-need-to-alter-in-my-search-to-get-these-fields/m-p/345973#M165381</guid>
      <dc:creator>splunker969</dc:creator>
      <dc:date>2017-11-09T21:21:59Z</dc:date>
    </item>
  </channel>
</rss>

