year value for ausearch?
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]
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]
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 invalidbut
% 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
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]
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