<?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 get my searches to run against the logs of each server, not across all servers? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-get-my-searches-to-run-against-the-logs-of-each-server/m-p/264086#M79275</link>
    <description>&lt;P&gt;You should add &lt;CODE&gt;host&lt;/CODE&gt; to your group by clause. Like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=hdx_payer host=* source="/hdx2/was70-32/AppServer/profiles/AppSrv01/logs/PRD2_PY0/UNITED_Receive.log" OR source="/hdx2/was70-32/AppServer/profiles/AppSrv01/logs/PRD2_PY0/UNITED_Send.log" | eval Time=_time | stats values(Time) as Time by host thread_id | where mvcount(Time)=2 | eval response_time=tonumber(mvindex(Time,1))-tonumber(mvindex(Time,0)) | convert ctime(Time)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 06 Dec 2016 20:17:52 GMT</pubDate>
    <dc:creator>sundareshr</dc:creator>
    <dc:date>2016-12-06T20:17:52Z</dc:date>
    <item>
      <title>How do I get my searches to run against the logs of each server, not across all servers?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-get-my-searches-to-run-against-the-logs-of-each-server/m-p/264085#M79274</link>
      <description>&lt;P&gt;Hello &lt;/P&gt;

&lt;P&gt;We are trying to use the search below to calculate response times. The search is looking for a thread ID in the 'United_Send.log" and its matching thread id in the 'United_Receive.log'. It then calculates the difference in the two time stamps associated with the thread ids. The application producing this log is running on 3 different servers. The problem, it's possible for the same thread ID to exist on all three servers. We are seeing odd results in the graph. I believe it’s because it's running the calculation against thread ID on different servers. How do I get the searches to run against each server, not across them?&lt;/P&gt;

&lt;P&gt;Search Example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=hdx_payer host=* source="/hdx2/was70-32/AppServer/profiles/AppSrv01/logs/PRD2_PY0/UNITED_Receive.log" OR source="/hdx2/was70-32/AppServer/profiles/AppSrv01/logs/PRD2_PY0/UNITED_Send.log" | eval Time=_time | stats values(Time) as Time by thread_id | where mvcount(Time)=2 | eval response_time=tonumber(mvindex(Time,1))-tonumber(mvindex(Time,0)) | convert ctime(Time)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:01:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-get-my-searches-to-run-against-the-logs-of-each-server/m-p/264085#M79274</guid>
      <dc:creator>cj039165</dc:creator>
      <dc:date>2020-09-29T12:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get my searches to run against the logs of each server, not across all servers?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-get-my-searches-to-run-against-the-logs-of-each-server/m-p/264086#M79275</link>
      <description>&lt;P&gt;You should add &lt;CODE&gt;host&lt;/CODE&gt; to your group by clause. Like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=hdx_payer host=* source="/hdx2/was70-32/AppServer/profiles/AppSrv01/logs/PRD2_PY0/UNITED_Receive.log" OR source="/hdx2/was70-32/AppServer/profiles/AppSrv01/logs/PRD2_PY0/UNITED_Send.log" | eval Time=_time | stats values(Time) as Time by host thread_id | where mvcount(Time)=2 | eval response_time=tonumber(mvindex(Time,1))-tonumber(mvindex(Time,0)) | convert ctime(Time)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 06 Dec 2016 20:17:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-get-my-searches-to-run-against-the-logs-of-each-server/m-p/264086#M79275</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-12-06T20:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get my searches to run against the logs of each server, not across all servers?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-get-my-searches-to-run-against-the-logs-of-each-server/m-p/264087#M79276</link>
      <description>&lt;P&gt;Thanks for the help.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2016 20:23:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-get-my-searches-to-run-against-the-logs-of-each-server/m-p/264087#M79276</guid>
      <dc:creator>cj039165</dc:creator>
      <dc:date>2016-12-06T20:23:38Z</dc:date>
    </item>
  </channel>
</rss>

