Skip to contentSkip to conversation

year value for ausearch?

DISCUSSION LC Bruzenak 2 participants 5 messages Apr 29, 2010 – May 3, 2010

lore
Share & tools
lore
#0 lore raw

Just got word back from a non-US fielded system that the ausearch -ts DAY/MONTH/YEAR doesn't work, e.g. :
% ausearch -ts 04/29/2010
says that the year value is invalid

but
% ausearch -ts 04/29/10 works.

Something with locale? It's F10 audit.

Thx,
LCB.

Signature · 2 lines
LC (Lenny) Bruzenak
[email protected]
#1 lore raw
Quoted 5 lines · LC Bruzenak

Just got word back from a non-US fielded system that the ausearch -ts DAY/MONTH/YEAR doesn't work, e.g. :
% ausearch -ts 04/29/2010
says that the year value is invalid

Quoted 7 lines

but
% ausearch -ts 04/29/10 works.

Something with locale? It's F10 audit.

Thx,
LCB.

Sorry I meant MONTH/DAY/YEAR as in the example.

Looking at the code it appears to use the locale's format, so it is likely I will need to change the ausearch input to match.?.

LCB.

Signature · 2 lines
LC (Lenny) Bruzenak
[email protected]
#2 lore raw
Quoted 10 lines · LC Bruzenak
Quoted 9 lines · LC Bruzenak

Just got word back from a non-US fielded system that the ausearch -ts DAY/MONTH/YEAR doesn't work, e.g. :
% ausearch -ts 04/29/2010
says that the year value is invalid

but
% ausearch -ts 04/29/10 works.

Something with locale? It's F10 audit.

Yes, exactly.

Quoted 4 lines

Sorry I meant MONTH/DAY/YEAR as in the example.

Looking at the code it appears to use the locale's format, so it is likely I will need to change the ausearch input to match.?.

Yes. It should be documented in the --start --end portion of the man page. What the exact format is for the locale you are in is not covered.

-Steve

#3 lore raw
Quoted 3 lines · Steve Grubb

Yes. It should be documented in the --start --end portion of the man page. What the exact format is for the locale you are in is not covered.

Thanks Steve, I believe if I use the "%x" date switch I will get what I need for the ausearch input start time, regardless of the locale.

LCB.

Signature · 2 lines
LC (Lenny) Bruzenak
[email protected]
#4 lore raw
Quoted 6 lines · LC Bruzenak
Quoted 2 lines · Steve Grubb

Yes. It should be documented in the --start --end portion of the man page. What the exact format is for the locale you are in is not covered.

Thanks Steve, I believe if I use the "%x" date switch I will get what I need for the ausearch input start time, regardless of the locale.

You can also do this on the command line:

LANG=en_US.UTF-8; ausearch --start 01/30/2010

-Steve