<?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 write a search to track system time change in a Linux system? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-track-system-time-change-in-a-Linux/m-p/270817#M81519</link>
    <description>&lt;P&gt;Hi vkumar6.&lt;BR /&gt;
The way to find if a server system time has changed is to take logs from  &lt;CODE&gt;/var/log/messages&lt;/CODE&gt; and create a search like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=your_index source="/var/log/messages" “Time has been changed” | ...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;before to do this you have to be sure that system time changes are correctly logged, if not you have to add following to the audit.rules file. Should record any attempt to set or adjust time from on—privileged user or root:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;-S clock_settime –S settimeofday –S adjtimex
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
    <pubDate>Sun, 11 Dec 2016 09:31:21 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2016-12-11T09:31:21Z</dc:date>
    <item>
      <title>How to write a search to track system time change in a Linux system?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-track-system-time-change-in-a-Linux/m-p/270815#M81517</link>
      <description>&lt;P&gt;I need an example search to track system time change in a Linux system. Please help me.&lt;/P&gt;</description>
      <pubDate>Sun, 11 Dec 2016 00:29:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-track-system-time-change-in-a-Linux/m-p/270815#M81517</guid>
      <dc:creator>vkumar6</dc:creator>
      <dc:date>2016-12-11T00:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a search to track system time change in a Linux system?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-track-system-time-change-in-a-Linux/m-p/270816#M81518</link>
      <description>&lt;P&gt;Would you please be more specific about what you are trying to do?&lt;/P&gt;</description>
      <pubDate>Sun, 11 Dec 2016 01:59:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-track-system-time-change-in-a-Linux/m-p/270816#M81518</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2016-12-11T01:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a search to track system time change in a Linux system?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-track-system-time-change-in-a-Linux/m-p/270817#M81519</link>
      <description>&lt;P&gt;Hi vkumar6.&lt;BR /&gt;
The way to find if a server system time has changed is to take logs from  &lt;CODE&gt;/var/log/messages&lt;/CODE&gt; and create a search like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=your_index source="/var/log/messages" “Time has been changed” | ...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;before to do this you have to be sure that system time changes are correctly logged, if not you have to add following to the audit.rules file. Should record any attempt to set or adjust time from on—privileged user or root:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;-S clock_settime –S settimeofday –S adjtimex
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Sun, 11 Dec 2016 09:31:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-track-system-time-change-in-a-Linux/m-p/270817#M81519</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2016-12-11T09:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a search to track system time change in a Linux system?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-track-system-time-change-in-a-Linux/m-p/270818#M81520</link>
      <description>&lt;P&gt;Thank you ... &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2016 10:31:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-track-system-time-change-in-a-Linux/m-p/270818#M81520</guid>
      <dc:creator>vkumar6</dc:creator>
      <dc:date>2016-12-12T10:31:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a search to track system time change in a Linux system?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-track-system-time-change-in-a-Linux/m-p/270819#M81521</link>
      <description>&lt;P&gt;Thankyou Rich I got answer from Giuseppe..&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2016 10:33:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-track-system-time-change-in-a-Linux/m-p/270819#M81521</guid>
      <dc:creator>vkumar6</dc:creator>
      <dc:date>2016-12-12T10:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a search to track system time change in a Linux system?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-track-system-time-change-in-a-Linux/m-p/270820#M81522</link>
      <description>&lt;P&gt;Hi vkumar6.&lt;BR /&gt;
if the solution solves your needs, please accept my answer.&lt;BR /&gt;
By.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2016 15:36:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-track-system-time-change-in-a-Linux/m-p/270820#M81522</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2016-12-12T15:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a search to track system time change in a Linux system?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-track-system-time-change-in-a-Linux/m-p/270821#M81523</link>
      <description>&lt;P&gt;Hi Giuseppe,&lt;/P&gt;

&lt;P&gt;Is there any event code for linux when system time changes. Like windows we have Event code 4616 in the same do we have any event code for linux&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2016 10:40:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-track-system-time-change-in-a-Linux/m-p/270821#M81523</guid>
      <dc:creator>vkumar6</dc:creator>
      <dc:date>2016-12-13T10:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a search to track system time change in a Linux system?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-track-system-time-change-in-a-Linux/m-p/270822#M81524</link>
      <description>&lt;P&gt;Hi vkumar6,&lt;BR /&gt;
No, for my knoledge there aren't eventcodes in Linux but the message “Time has been changed” in "/var/log/messages" it's sufficient to trap this event.&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2016 10:48:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-track-system-time-change-in-a-Linux/m-p/270822#M81524</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2016-12-13T10:48:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a search to track system time change in a Linux system?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-track-system-time-change-in-a-Linux/m-p/270823#M81525</link>
      <description>&lt;P&gt;modify your inputs.conf to take also "/var/log/messages".&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2016 14:13:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-track-system-time-change-in-a-Linux/m-p/270823#M81525</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2016-12-13T14:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a search to track system time change in a Linux system?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-track-system-time-change-in-a-Linux/m-p/270824#M81526</link>
      <description>&lt;P&gt;Hi Giuseppe,&lt;/P&gt;

&lt;P&gt;Thnakyou so much i m able to get logs .&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Vijay&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2016 14:47:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-track-system-time-change-in-a-Linux/m-p/270824#M81526</guid>
      <dc:creator>vkumar6</dc:creator>
      <dc:date>2016-12-13T14:47:21Z</dc:date>
    </item>
  </channel>
</rss>

