<?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 Set up splunk Alert - a complicated one in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Set-up-splunk-Alert-a-complicated-one/m-p/305323#M5486</link>
    <description>&lt;P&gt;Here is my log file having a key word "error":&lt;/P&gt;

&lt;P&gt;My search is : index=abc host="123" "error"  source="efg/*"&lt;/P&gt;

&lt;P&gt;My search returns results as below (check out the timings ) , suppose below is the event section:&lt;/P&gt;

&lt;P&gt;Time                                              Event&lt;BR /&gt;
5/20/17 1:00:45.000 AM            Completed at Sat May 20 03:00:45 2017&lt;/P&gt;

&lt;P&gt;Under the _time section , the time which is displayed is 2hrs less than the time that is displayed in the logs(as you can see from the event section).&lt;/P&gt;

&lt;P&gt;Now , suppose there is a failure in my log which I came to know right now. I go to splunk and check I do not see any result for the last 15 minutes even but when I do last 2 hours , I get to see the result. &lt;/P&gt;

&lt;P&gt;Please tell me how do i set this alert. if I am setting to check every 5 minutes, I do not get any alert . When I did -2h as start time and now as finish time , I still did not get any alert . Now I did it -2h@h which I am sure will work or not until there is a failure.&lt;/P&gt;

&lt;P&gt;Also, I have selected Run every minute while setting the alert.&lt;/P&gt;</description>
    <pubDate>Sun, 21 May 2017 04:45:06 GMT</pubDate>
    <dc:creator>loveforsplunk</dc:creator>
    <dc:date>2017-05-21T04:45:06Z</dc:date>
    <item>
      <title>Set up splunk Alert - a complicated one</title>
      <link>https://community.splunk.com/t5/Alerting/Set-up-splunk-Alert-a-complicated-one/m-p/305323#M5486</link>
      <description>&lt;P&gt;Here is my log file having a key word "error":&lt;/P&gt;

&lt;P&gt;My search is : index=abc host="123" "error"  source="efg/*"&lt;/P&gt;

&lt;P&gt;My search returns results as below (check out the timings ) , suppose below is the event section:&lt;/P&gt;

&lt;P&gt;Time                                              Event&lt;BR /&gt;
5/20/17 1:00:45.000 AM            Completed at Sat May 20 03:00:45 2017&lt;/P&gt;

&lt;P&gt;Under the _time section , the time which is displayed is 2hrs less than the time that is displayed in the logs(as you can see from the event section).&lt;/P&gt;

&lt;P&gt;Now , suppose there is a failure in my log which I came to know right now. I go to splunk and check I do not see any result for the last 15 minutes even but when I do last 2 hours , I get to see the result. &lt;/P&gt;

&lt;P&gt;Please tell me how do i set this alert. if I am setting to check every 5 minutes, I do not get any alert . When I did -2h as start time and now as finish time , I still did not get any alert . Now I did it -2h@h which I am sure will work or not until there is a failure.&lt;/P&gt;

&lt;P&gt;Also, I have selected Run every minute while setting the alert.&lt;/P&gt;</description>
      <pubDate>Sun, 21 May 2017 04:45:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Set-up-splunk-Alert-a-complicated-one/m-p/305323#M5486</guid>
      <dc:creator>loveforsplunk</dc:creator>
      <dc:date>2017-05-21T04:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: Set up splunk Alert - a complicated one</title>
      <link>https://community.splunk.com/t5/Alerting/Set-up-splunk-Alert-a-complicated-one/m-p/305324#M5487</link>
      <description>&lt;P&gt;You need to fix the timezone of your logs first. The 2hr difference is because of the logs being set to incorrect timezone.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/6.6.0/Data/Applytimezoneoffsetstotimestamps"&gt;https://docs.splunk.com/Documentation/Splunk/6.6.0/Data/Applytimezoneoffsetstotimestamps&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I suggest you get the TZ attribute in props.conf for the sourcetype.&lt;BR /&gt;
This will fix the timezone issue and logs will appear real time.&lt;/P&gt;</description>
      <pubDate>Sun, 21 May 2017 06:17:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Set-up-splunk-Alert-a-complicated-one/m-p/305324#M5487</guid>
      <dc:creator>dineshraj9</dc:creator>
      <dc:date>2017-05-21T06:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: Set up splunk Alert - a complicated one</title>
      <link>https://community.splunk.com/t5/Alerting/Set-up-splunk-Alert-a-complicated-one/m-p/305325#M5488</link>
      <description>&lt;P&gt;But for the same server , I have alert set up for other logs as well. For those I get the expected output . Only for this particular log I do not get, not sure why. &lt;/P&gt;

&lt;P&gt;Do u mean , there is a way to set up timezone for particular logs ??&lt;/P&gt;

&lt;P&gt;In my Splunk user settings , my timezone set is correct  and the logs timezone in its server as I see is also the same as mine  , then why do I get something else in _time ?&lt;/P&gt;</description>
      <pubDate>Sun, 21 May 2017 15:10:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Set-up-splunk-Alert-a-complicated-one/m-p/305325#M5488</guid>
      <dc:creator>loveforsplunk</dc:creator>
      <dc:date>2017-05-21T15:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: Set up splunk Alert - a complicated one</title>
      <link>https://community.splunk.com/t5/Alerting/Set-up-splunk-Alert-a-complicated-one/m-p/305326#M5489</link>
      <description>&lt;P&gt;it has nothing to do with your users timezone,&lt;BR /&gt;
check the link in the answer&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2017 00:14:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Set-up-splunk-Alert-a-complicated-one/m-p/305326#M5489</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2017-05-22T00:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: Set up splunk Alert - a complicated one</title>
      <link>https://community.splunk.com/t5/Alerting/Set-up-splunk-Alert-a-complicated-one/m-p/305327#M5490</link>
      <description>&lt;P&gt;Yes, you can setup for timezone for each log in different ways. &lt;/P&gt;

&lt;P&gt;In props.conf, you can set TZ attribute for the particular sourcetype.&lt;/P&gt;

&lt;P&gt;In inputs.conf, you can set _tzhint field for the particular log monitor stanza.&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2017 05:07:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Set-up-splunk-Alert-a-complicated-one/m-p/305327#M5490</guid>
      <dc:creator>dineshraj9</dc:creator>
      <dc:date>2017-05-22T05:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: Set up splunk Alert - a complicated one</title>
      <link>https://community.splunk.com/t5/Alerting/Set-up-splunk-Alert-a-complicated-one/m-p/305328#M5491</link>
      <description>&lt;P&gt;oh ok. I will work on this. Thank you so much Dinesh.&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2017 16:49:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Set-up-splunk-Alert-a-complicated-one/m-p/305328#M5491</guid>
      <dc:creator>loveforsplunk</dc:creator>
      <dc:date>2017-05-22T16:49:06Z</dc:date>
    </item>
  </channel>
</rss>

