<?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 to pick the time range for different source file in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/how-to-pick-the-time-range-for-different-source-file/m-p/109937#M23092</link>
    <description>&lt;P&gt;hey &lt;/P&gt;

&lt;P&gt;thanks for the answer but that is not working should i specify germany in the place of country or it automatically picks &lt;/P&gt;</description>
    <pubDate>Thu, 09 Jul 2015 10:24:54 GMT</pubDate>
    <dc:creator>deepthi5</dc:creator>
    <dc:date>2015-07-09T10:24:54Z</dc:date>
    <item>
      <title>how to pick the time range for different source file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-pick-the-time-range-for-different-source-file/m-p/109935#M23090</link>
      <description>&lt;P&gt;Hello ,&lt;/P&gt;

&lt;P&gt;I have got an urgent requirement pls help  me &lt;/P&gt;

&lt;P&gt;I am different countries data pulled and indexed into SPLUNK daily &lt;BR /&gt;
ex,Australia.csv,Budapest .csv,germany.csv etc for which i am generating 95th percentile values &lt;/P&gt;

&lt;P&gt;Now  the requirement is i should be able to generate 95th percentile only from Monday to Friday and only in working hours of that particular country which seems to be difficult &lt;/P&gt;

&lt;P&gt;Right now i havve got an idea using the following query :&lt;/P&gt;

&lt;P&gt;source="C:\germany.csv" host="SEZ00VVM-153"   sourcetype="csv" date_wday!=saturday AND date_wday!=sunday   date_hour&amp;gt;=9 date_hour&amp;lt;= 17 | eval Intraffic=IN/1048576 |timechart span=1h perc95(Intraffic) AS 95thPercentile&lt;/P&gt;

&lt;P&gt;but when multiple files are indexing how  should i tell splunk that working hours of germany is 9 to 5 and budapest is 10 to 4 etcc&lt;/P&gt;

&lt;P&gt;thanks ,&lt;BR /&gt;
Deepthi &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 06:37:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-pick-the-time-range-for-different-source-file/m-p/109935#M23090</guid>
      <dc:creator>deepthi5</dc:creator>
      <dc:date>2020-09-29T06:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: how to pick the time range for different source file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-pick-the-time-range-for-different-source-file/m-p/109936#M23091</link>
      <description>&lt;P&gt;You could create a lookup file that contains country name and working hours.  For example, the file might contain&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Country, start_hour, end_hour
germany, 9, 17
budapest, 10, 16
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then your query becomes&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="C:germany.csv" host="SEZ00VVM-153" sourcetype="csv" date_wday!=saturday AND date_wday!=sunday | lookup Country OUTPUT start_hour end_hour | where date_hour&amp;gt;=start_hour AND date_hour&amp;lt;= end_hour | eval Intraffic=IN/1048576 |timechart span=1h perc95(Intraffic) AS 95thPercentile
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 08 Jul 2015 12:55:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-pick-the-time-range-for-different-source-file/m-p/109936#M23091</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-07-08T12:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: how to pick the time range for different source file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-pick-the-time-range-for-different-source-file/m-p/109937#M23092</link>
      <description>&lt;P&gt;hey &lt;/P&gt;

&lt;P&gt;thanks for the answer but that is not working should i specify germany in the place of country or it automatically picks &lt;/P&gt;</description>
      <pubDate>Thu, 09 Jul 2015 10:24:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-pick-the-time-range-for-different-source-file/m-p/109937#M23092</guid>
      <dc:creator>deepthi5</dc:creator>
      <dc:date>2015-07-09T10:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: how to pick the time range for different source file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-pick-the-time-range-for-different-source-file/m-p/109938#M23093</link>
      <description>&lt;P&gt;You will need to populate a field called 'Country' with the name of the country in question.  Or you could replace 'Country' with another field from your query that contains the country name.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2015 11:51:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-pick-the-time-range-for-different-source-file/m-p/109938#M23093</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-07-10T11:51:54Z</dc:date>
    </item>
  </channel>
</rss>

