AUPARSE_GET_TIMESTAMP(3) Linux Audit API AUPARSE_GET_TIMESTAMP(3)NAME
auparse_get_timestamp - access timestamp of the event
SYNOPSIS
#include <auparse.h>
const au_event_t *auparse_get_timestamp(auparse_state_t *au);
DESCRIPTION
auparse_get_timestamp provides an accessor function for the event's timestamp data structure. The data structure is as follows:
typedef struct
{
time_t sec; // Event seconds
unsigned int milli; // millisecond of the timestamp
unsigned long serial; // Serial number of the event
const char *host; // Machine's node name
} au_event_t;
RETURN VALUE
Returns NULL if an error occurs; otherwise, a valid pointer to the data.
SEE ALSO auparse_get_time(3), auparse_get_milli(3), auparse_get_serial(3), auparse_get_node(3), auparse_timestamp_compare(3).
AUTHOR
Steve Grubb
Red Hat Sept 2007 AUPARSE_GET_TIMESTAMP(3)
Check Out this Related Man Page
AUPARSE_GET_TIMESTAMP(3) Linux Audit API AUPARSE_GET_TIMESTAMP(3)NAME
auparse_get_timestamp - access timestamp of the event
SYNOPSIS
#include <auparse.h>
const au_event_t *auparse_get_timestamp(auparse_state_t *au);
DESCRIPTION
auparse_get_timestamp provides an accessor function for the event's timestamp data structure. The data structure is as follows:
typedef struct
{
time_t sec; // Event seconds
unsigned int milli; // millisecond of the timestamp
unsigned long serial; // Serial number of the event
const char *host; // Machine's node name
} au_event_t;
RETURN VALUE
Returns NULL if an error occurs; otherwise, a valid pointer to the data.
SEE ALSO auparse_get_time(3), auparse_get_milli(3), auparse_get_serial(3), auparse_get_node(3), auparse_timestamp_compare(3).
AUTHOR
Steve Grubb
Red Hat Sept 2007 AUPARSE_GET_TIMESTAMP(3)
Hi everyone,
does someone know a function to get a 32-bit timestamp, precise enough to cover more than seconds, such as gettimeofday() for example?
And also a function for the 64-bit NTP timestamp??
I am experimenting with RTP, where i need this kind of timestamps!
thanks
to all (0 Replies)
hi all
how do we get the milli seconds in sun unix?
i am using
date +%Y%m%d%H%M%S
to get the unique id and create the file based on this.
but the problem is that if process to load the table takes only less than 1 sec i am getting errror on my table which have the primary key.
how... (2 Replies)
hi all
how do we get the milli seconds in sun unix?
i am using
date +%Y%m%d%H%M%S
to get the unique id and create the file based on this.
but the problem is that if process to load the table takes only less than 1 sec i am getting errror on my table which have the primary key.
how... (1 Reply)
hi all UNIX Gurus,
this is my first post...so i posting this with great expectations:o...hoping to get the similar replies...
my question is....
need to get timestamp with millisecond in UNIX. Date command gives Year,month day, hour,minute and second but it does not give millisecond.
Any... (5 Replies)
Hi.
I have a file containing something like this:
1141 2 12355 0 0 1196418669 Runtime error
field number $6 is a unix timestamp. I would like to convert this timestamp to something readable like: (1196418669=Fri Nov 30 11:31:09 2007)
Fri Nov 30 11:31:09 2007 ... (2 Replies)
Hi,
The file format is like the following.
timestamp=2008-02-28-23.50.29.550675;category=CONTEXT;audit event=CONNECT;
event correlator=2;
database=CURDOMS;userid=inst3;authid=INST3;
origin node=0;coordinator node=0;
application id=AC122081.FA97.054468155029;application... (2 Replies)
Hello all,
In C - Is there a way of setting a timestamp for a file, and keeping it unchanged?
Status information of the file in structure stat is modified automatically, and therefore, as I understand, is not good for that purpose ...
...
Thank you in advance. (3 Replies)
Hi All,
could any body let me know.
how to get timestamp with millisecond precision in unix bash shell.
example -->2005-12-06- 4-22-35-195
please help me.
Thanks,
Krupa:wall: (3 Replies)
Hi,
Could you please tell me the commands to find Total storage space and Serial number of Linux server.
OS -- Red Hat Enterprise Linux Server release 6.6 (Santiago)
This is 2 node cluster.
Regards,
Maddy (1 Reply)
Hi,
I have a data file where the timestamp is in the style of:
2016-10-11 07:01:23.375-500
which is yyyy-mm-dd hh-mm-ss-000 then time conversion from UTC
What i need to do is convert these timestamps from the above format to a the Serial Date format (i.e 42,654.2920446 )
now.. if... (14 Replies)