log format


 
Thread Tools Search this Thread
Operating Systems HP-UX log format
# 1  
Old 08-01-2006
log format

hi everyone,
can any one explain me abt the below log and what does it mean : (xx stands for the numerics or the ipaddress )
i would like to know why the ipaddress is coming where the login type (like ssh,telnet,ftp, etc...) should be coming.
(the below logs were obtained using last/lastb command)
root xxx.xx.x.x:0 xxx.xx.x.x:0 Tue Nov 22 14:15


usually the logs are in the below format :

root pts/ta xxx.xx.x.xxx Fri Nov 18 16:28 - 16:29 (00:00)
root ssh:notty xxx.xx.x.xx Wed Jul 26 13:33
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Format log data

I have hundreds of lines similar to this: Oct 30 10:06:40 localhost kernel: sd 2:0:0:0: Attached scsi generic sg1 type 0 Oct 30 10:06:40 localhost kernel: sd 2:0:0:0: Attached scsi generic sg1 type 0 i want to add a comma after the date, and then print the remaining text to the end of the... (1 Reply)
Discussion started by: SkySmart
1 Replies

2. Shell Programming and Scripting

Monitor log entries in log files with no Date format? - Efficient logcheck?

is there a way to efficiently monitor logfiles that do not have a date or time format? i have several logs on several different servers that need to be monitored. but i realized writing a script for this would be very complex and time consuming giving the variety of things i need to check for i.e.... (2 Replies)
Discussion started by: SkySmart
2 Replies

3. Shell Programming and Scripting

format log file

Hello, I am on solaris here is what I have *****LIST OF ATTRIBUTS FROM FILES***** FILE='/N1B/2002/05/ACL1B_2002_05_01_B_00.TAR ... (5 Replies)
Discussion started by: Aswex
5 Replies

4. Shell Programming and Scripting

Format LOG File

Hello, I just need help to format log file that contain huge amont of lines: Here is what I am getting : STAS022 RC = 0 I Suppression de /OPERATIONNEL/SATURNE/PGN/HD/SATURNE_1DAV_20100415_20110415_ISI_R20110430.NC effectuee STAS034 RC = 0 I Deroulement correct STAF067 RC = 9 E... (7 Replies)
Discussion started by: Aswex
7 Replies

5. Shell Programming and Scripting

Format log file - SED

Hello, I need help to format a log file...again ; )) Here is what I have : FILE='/OPERATIONNEL/SATURNE/MASTER/SATURNE_MASTER_PRE_R20110119.TAR.GZ ... (5 Replies)
Discussion started by: Aswex
5 Replies

6. Shell Programming and Scripting

Format log file

Hello, I need help to format log file. I am looking for the most short way to to it here is what I have : /data_val/SATURNE/MASTER/PRE/SATURNE_1dAV_20110301_20110302_T3D_T_FCST_R20110216.nc 3581376 here is what I need : SATURNE_1dAV_20110301_20110302_T3D_T_FCST_R20110216.nc 3581376... (8 Replies)
Discussion started by: Aswex
8 Replies

7. Shell Programming and Scripting

Log File - Format

Dear all, I need help to format a log file : Here is the output (Go to the end of the Wrap Code to see caracter at the end of line): FILE='/OPERATIONNEL/SATURNE/PHYS_MOD/NOWMOD/SATURNE_1DAV_20110201_20110202_ICEMOD_R20110202.NC ... (5 Replies)
Discussion started by: Aswex
5 Replies

8. UNIX for Dummies Questions & Answers

Log file format!

DO log files have 1 universal format. And if any body know how to depict the $1 to $10 arguments of this file. (4 Replies)
Discussion started by: nixhead
4 Replies

9. UNIX for Dummies Questions & Answers

Format log file

Hi, I need help to format log file that look like this : FILE='/BD_TOTO/MMX_RNX/MMX_RNX_2009_282_0001.TGZ ';; SIZE(Ko)='32528 ' ARC_DATE='2009-10-13' ;;... (6 Replies)
Discussion started by: Aswex
6 Replies

10. Shell Programming and Scripting

convert date format to mysql date format in log file

I have a comma delimited log file which has the date as MM/DD/YY in the 2nd column, and HH:MM:SS in the 3rd column. I need to change the date format to YYYY-MM-DD and merge it with the the time HH:MM:SS. How will I got about this? Sample input 02/27/09,23:52:31 02/27/09,23:52:52... (3 Replies)
Discussion started by: hazno
3 Replies
Login or Register to Ask a Question
LASTLOGIN(8)						    BSD System Manager's Manual 					      LASTLOGIN(8)

NAME
lastlogin -- indicate last login time of users SYNOPSIS
lastlogin [-nrt] [-f filename] [-H hostsize] [-L linesize] [-N namesize] [user ...] DESCRIPTION
lastlogin will list the last login session of specified users, or for all users by default. Each line of output contains the user name, the tty from which the session was conducted, any hostname, and the start time for the session. If multiple users are given, the session information for each user is printed in the order given on the command line. Otherwise, information for all users is printed, sorted by uid. lastlogin differs from last(1) in that it only prints information regarding the very last login session. The last login database is never turned over or deleted in standard usage. The following options are available: -f filename Process input from filename. If the file ends with an ``x'', then it is assumed that it is a lastlogx(5) file, else it is assumed to be a lastlog(5) file. -H hostlen Set the field width for host output to hostlen characters. -L linelen Set the field width for line output to linelen characters. -N namelen Set the field width for name output to namelen characters. -n Attempt to print numeric host addresses. This option is only supported with lastlogx(5) format files. -r Reverse the order of the sort. -t Sort by last login time (most recent first.) FILES
/var/log/lastlogx default last login database /var/log/lastlog compatibility last login database EXAMPLES
lastlogin looks by default to the /var/log/lastlogx database, where some old programs that are not utmpx(5) aware might only write to /var/log/lastlog. To look at the old database one can use: lastlogin -f /var/log/lastlog SEE ALSO
last(1), lastlog(5), lastlogx(5), ac(8) AUTHORS
John M. Vinopal wrote this program in January 1996 and contributed it to the NetBSD project. BSD
March 4, 2005 BSD