Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [timestamp]

The tag has no usage guidance.

39
votes
8answers
28k views

Rsync : copying over timestamps only

Currently I have two directories A/ and B/ which are identical in every respect, with the exception of the timestamps. Therefore if I run the command : rsync --dry-run -crvv A/ B/ then all files ...
39
votes
6answers
36k views

How to determine the “age” of a linux system since installation?

I thought that I could easily check the timestamp of particular files. Then I realized that it wouldn't be so easy when I saw timestamps like 1991.
21
votes
1answer
109k views

What switches can robocopy use to preserve file and directory times on the target?

After using robocopy to copy files to a new drive I realized that all the file and directory creation times and been reset to the time of copying. Are there some switches to make robocopy keep the ...
10
votes
2answers
27k views

Why is scp not overwriting my destination file?

I'm trying to back up a file via the command scp /tmp/backup.tar.gz hostname:/home/user/backup.tar.gz When I run it, the scp progress bar shows up and it looks like its transferring the file, ...
9
votes
1answer
3k views

No response to some SYN packets when timestamps are enabled

I have a TCP server listening on a machine ("the server") running Ubuntu 12.04.3 (kernel 3.8.0-31-generic). It receives connections from 2 different client machines. Machine A is running Ubuntu 12.04....
8
votes
2answers
205 views

linux system time temporally jumps

I saw a strange system time changing behavior in some (hardware) servers: in /var/logs/syslog, the date time preceding each log message sometimes change to a random one and gets back to normal in the ...
7
votes
2answers
4k views

How to allow multiple people to change mtime -timestamp of a file through sftp?

I have a directory that multiple users have access to. They change, upload, and delete files in the directory. They all belong to the same user group. The files in the directory have access rights of ...
7
votes
3answers
3k views

How to see if/when a long file copy operation actually completed?

Having to move several very large files (VHDs) between two servers, I launched the file copy operation using Windows Explorer in a Remote Desktop session, and then closed the session without logging ...
7
votes
6answers
3k views

How to generate good serials for DNS zones with Puppet?

My tradition is to set all zone serials to the timestamp at modification. Now that Puppet is my new religion, I want to set serial timestamps when building zone files from exported resources. A ...
5
votes
2answers
11k views

Block ICMP timestamp & timestamp reply with firewalld

OS: CentOS 7.0 Per the results of a security scan, it has been suggested that we block ICMP timestamp & timestamp reply messages using the firewall (CVE-1999-0524). I've used firewalld to set up ...
5
votes
1answer
8k views

How can i manipulate the find command to “find” the directories the “found” file is in?

So i'm trying to use the find command to find all files in my system with mtime -x. It does this but it does not "find" the directories of the file. find . -mtime -2 -exec rsync -av {} /destination/ ...
5
votes
2answers
2k views

linux timestamp permission error with winscp

I added a user to a group and set the file and dir content to 775. When i use winscp to modify a file it complains it cant set the timestamp bc of a permission error. But it is able to update the file ...
5
votes
1answer
2k views

Need to make all the timestamps on local files match their corresponding ftp hosted file's timestamp

I screwed up and downloaded ~10GB worth of files from my offsite backup location (ftp server) without checking the 'preserve timestamp' option in the client. The PC with the local files is a netbook ...
4
votes
1answer
11k views

DNS Record Timestamps Are Not Updating on Server 2008 R2 DNS Server

I have 2 Server 2008 R2 domain controllers with a AD integrated DNS zone for the domain. Previously, scavenging was not enabled. I enabled scavenging a week ago and now that I am seeing old stale ...
4
votes
1answer
2k views

Adding timestamps to supervisord logs

Is it possible to let supervisord add timestamps to the outputs in stdout_logfile and stderr_logfile? I couldn't find it anything about that in the documentation.
3
votes
4answers
1k views

Disallow -p on sftp

We have a server that acts as a "dropbox" for (outside) users to upload data to us over sftp/ssh. We need to process these files (gpg decrypt, unzip, etc) as they come in. In the past, we simply ...
3
votes
1answer
2k views

Bash: How do I copy timestamps using touch and regex?

Since this is more of a Bash question I think this is better suited for serverfault than superuser, even though I'm talking about media files. I had to make a batch conversion of several media files, ...
3
votes
2answers
5k views

How does one make sure or even guarantee server time are sync correctly between dozens of servers across multiple datacenter on different location?

Currently our web applications contain a logic to check if the data sent to the web server is expired or not by comparing the timestamp of the data with the date/time of the server. Everything goes ...
3
votes
2answers
916 views

How do I identify an Authenticode timestamp vs. an RFC 3161 compliant timestamp?

When signing code with Microsoft's Signtool, there are a couple different options when specifying a timestamp URL, /t and /tr. /t can specify an Authenticode timestamp URL and /tr is supposed to be ...
3
votes
1answer
67 views

Does 'right clicking on the file' update its last access time?

I am checking file's last access time using GetFileTime, It works. But it even gives me the time the time I last right clicked on it, is this expected ? but it doesn't show up in Accessed: field in ...
3
votes
1answer
4k views

Can nginx log time in ISO 8601 format, but include milliseconds?

We have Nginx as a reverse proxy in front of Tomcat. Both of them log access with ISO 8601 timestamps, but tomcat adds in milliseconds (which is part of the standard). So if Nginx gets a request and ...
3
votes
1answer
103 views

Interpreting timestamp format on iDRAC servers

The timestamp format on the DELL iDRAC format I have is the following: 20160714195526.000000+000 20150325225105.000000+000 20150311200640.000000-300 How should I interpret it (I want to parse it to ...
3
votes
1answer
1k views

Logstash event @timestamp adjustment

I have standard Windows IIS log files with event date/time stamp information and timetaken (in milliseconds). I would like to be able to adjust the event time (@timestamp) by subtracting the "...
3
votes
1answer
1k views

batch - File last modification time with seconds

I want to know when a file has been modified for the last time. I can get these infos using the following batch script: FOR %%i IN (myfile) DO SET modif_time=%%~ti The problem is how to get the ...
3
votes
1answer
960 views

How do I make rsync also check ctime?

rsync detects files modification by comparing size and mtime. However, if for any reason, the mtime is unchanged, rsync won't detect the change, although it's possible to spot it by looking at the ...
2
votes
4answers
1k views

Is there an easy way to insert data/time in front of a log file with just shell scripting?

Say I want to monitor memory usage on a java process overnight. I can do something like top | grep java > out.log I will get a log file with a whole bunch of lines. Is there an easy way to get a ...
2
votes
2answers
452 views

How does one keep a file's timestamp (date modified) after a logrotate?

Title says it all, I have a log rotate set up daily for some rather large log files. Sometimes we can generate 3 of these a day, sometimes we only generate 1, they're each about 500MB. Is there a way ...
2
votes
2answers
5k views

many different TCP timestamps through NAT device cause server to drop packets (PAWS)

Various workstations behind the client side Network Address Translation (NAT) firewall are sending timestamp information on the TCP packet to our server. The packets from many workstations arrive ...
2
votes
3answers
1k views

What is timestamp format of iptables recent proc-file?

I want to understand meaning of records in /proc/net/xt_recent/ip_list file (which is created by recent extension of iptables), e.g: src=127.0.0.1 ttl: 128 last_seen: 4298627364 oldest_pkt: 3 ...
2
votes
1answer
171 views

NetBSD syslog timestamp format

Syslog uses a timestamps like the following: Sep 19 13:36:56 Is there a way to adjust the format (to add the year for example) without touching the source code? I am some what shocked to find that ...
2
votes
1answer
656 views

rsyslog: How do I split the events in a log file into separate files if it contains a keyword?

I'm receiving syslog data in a .log file. That file contains two types of events. An event that only contains the syslog datetime stamp and an event that contains the syslog datetime stamp and a "...
2
votes
0answers
157 views

Apache directory listing show seconds in “Last modified” (full time)

Is it possible in Apache Directory listing to show full time, including seconds in "Last modified" column? Can I change the format of this timestamp?
1
vote
1answer
747 views

Timestamp comparison on AIX without date -d

I have a bash script on AIX 7 that runs a database query and the output I get is a timestamp in the following format: 201607130319. Now I would like to compare the timestamp with current time (date +%...
1
vote
1answer
12k views

How to disable windows server 2008 timestamp response

Posted this question on stackoverflow but then got instructed to post it here: I was using Rapid7's Nexpose to scan one of our web servers (windows server 2008), and got a vulnerability for timestamp ...
1
vote
2answers
24k views

How to view specific interval of timestamp in huge log file?

How to view what happened to server in specific time period and specific date? For example: I want to see what happened 23.03.2013 from 6-8am i want to use command line, maybe cat+grep+sort ? log ...
1
vote
1answer
59 views

Why is find not excluding old files?

I want to copy all gzipped files from my apache logs that were created less than 43 days ago. As a test, I simply listed my files from find: sudo find /var/log/apache2/ -mindepth 1 -ctime -43 -name "...
1
vote
1answer
3k views

timestamp +5 hours logstash

I am using logstash to send syslog data to elasticsearch. Everything is working fine except the logstash agent is sending data with the timestamp +5 hours. Here is my config: input { file { ...
1
vote
3answers
417 views

File timestamp not changing even with touch

I have the following problem. I have a bash script that uses wget to get a few files from the build server, and then scp's them over to the production system: Here is the relevant snippet: #Several ...
1
vote
1answer
65 views

Is GNU tar incremental backup reliable if ext4 is mounted with noatime?

My system is running on SSD on top of LVM logical volume, formatted to ext4. I'm using noatime option at my fstab for this partition. I'm going to do incremental backups of system partition using LVM ...
1
vote
2answers
106 views

Download and save a file with proof that it was downloaded from a specific server/url on a specific date?

Assuming the file was downloaded over http is this possible? I'm guessing there could be some way to do it using a hash and a timestamp however I'm not sure how you could prove nothing was tampered ...
1
vote
2answers
738 views

Ubuntu Enterprise Cloud - NCs down and time synchronization

I'm having trouble with my cloud installation. I've installed everything from the Ubuntu Server 11.04 CD, then upgraded the system to the latest version (apt-get update && apt-get dist-...
1
vote
1answer
2k views

High count packets rejects in established connections because of timestamp

I am trying to set up a Wowza media server using a Dell R710 with 24GB memory and a 10Gbit connection and all the calculations say it should be able to handle around 20k connections however when I get ...
1
vote
1answer
2k views

After applying archive log in oracle, what time is it now?

I have restored the database and applied the archive log. How can I tell the latest transaction timestamp I have recovered to? This is oracle 10g R2 standard (no flashback enable)
1
vote
0answers
30 views

Convert absolute time in log lines to relative intervals

Given a normal text-format line-oriented log file with timestamps in absolute form, is there any convenient tool that converts them to relative time-intervals? e.g. 2019-01-11 19:31:35 UTC LOG: ...
1
vote
1answer
75 views

No timestamp on standard error

Using fping and redirecting stout and stderr to the same file. fping -lDf IPlist >IPoutput 2>&1 The "host unreachable" error messages in the file have no timestamps. How do I get ...
1
vote
0answers
108 views

Does Authenticator Timestamps in Kerberos Tickets from Active Directory have Microsecond Granularity?

We have a problem with false positives in Kerberos replay detection. It happens more often than we would expect. Our KDC is Active Directory. I have come to suspect that the timestamps in the ...
1
vote
0answers
94 views

server large jiffies during boot(Calibrating delay loop…)

The server behaves abnormal, I checked the dmesg log , found the jiffies is very large during boot, between Detected cpu and Calibrating delay loop.. reboot the server does not solve the problem. ...
1
vote
1answer
2k views

Linux clients can't connect, server and TCP Windows Size / Timestamps issue

We have a problem that a number of clients (all linux Ubuntu) are sometimes not able to connect to a remote server over SSH. If the problem occurs, Windows clients don't have that problem and can ...
1
vote
0answers
310 views

DNS Timestamps don't appear to be updating since enabling Secure Only Updates

We have a Windows Server 2008 R2 Active Directory Domain. There are 4 domain controllers each running DNS with a Active Directory-Integrated zone. There are 2 member servers running DHCP with Name ...
0
votes
2answers
161 views

Forensics on tons of file changes [closed]

It has come to my attention that my CentOS 5.6 5.11 VPS has over 16,000 files with a timestamp during a 3-day period in September this year. I can't figure out why that is, as I did not log in via SSH ...