Click here to Skip to main content
12,689,794 members (25,783 online)
   

Java

 
AnswerRe: how to Use Java to get the database info by Internet Protocol Pin
Richard MacCutchan5-Nov-12 6:24
mvpRichard MacCutchan5-Nov-12 6:24 
GeneralRe: how to Use Java to get the database info by Internet Protocol Pin
XMafei5-Nov-12 14:58
memberXMafei5-Nov-12 14:58 
GeneralRe: how to Use Java to get the database info by Internet Protocol Pin
Richard MacCutchan5-Nov-12 23:13
mvpRichard MacCutchan5-Nov-12 23:13 
AnswerRe: how to Use Java to get the database info by Internet Protocol Pin
jschell5-Nov-12 9:33
memberjschell5-Nov-12 9:33 
Questionaddress book in java Pin
Shah Baba5-Nov-12 4:19
memberShah Baba5-Nov-12 4:19 
AnswerRe: address book in java Pin
Richard MacCutchan5-Nov-12 4:24
mvpRichard MacCutchan5-Nov-12 4:24 
Questionhi Pin
Md Abdullah Al Masud4-Nov-12 20:00
memberMd Abdullah Al Masud4-Nov-12 20:00 
Questionjava progarm Pin
hardikv923-Nov-12 23:45
memberhardikv923-Nov-12 23:45 
AnswerRe: java progarm Pin
Richard MacCutchan4-Nov-12 3:05
mvpRichard MacCutchan4-Nov-12 3:05 
AnswerRe: java progarm Pin
Gowtham Gutha15-Nov-12 2:15
memberGowtham Gutha15-Nov-12 2:15 
AnswerRe: java progarm Pin
Member 1111060025-Sep-14 17:52
memberMember 1111060025-Sep-14 17:52 
QuestionUpdating content of JtextField through jbutton in sql server 2005 using netbeans ide and jdk 1.6 Pin
Member 95656712-Nov-12 1:14
memberMember 95656712-Nov-12 1:14 
AnswerRe: Updating content of JtextField through jbutton in sql server 2005 using netbeans ide and jdk 1.6 Pin
Richard MacCutchan2-Nov-12 1:47
mvpRichard MacCutchan2-Nov-12 1:47 
Question[JAVA] web log file Pin
mariankral1-Nov-12 2:53
membermariankral1-Nov-12 2:53 
Hi,
sorry for my bad English.
I need in JAVA.

I have a log file from a Web server with 120,000 lines.
Example of input file:
10.160.0.10;16.11.2011 12:56;/;-;"Mozilla/5.0 (Windows NT 5.1; rv:2.0) Gecko/20100101 Firefox/4.0"
10.160.0.100;14.11.2011 7:22;/;-;"Mozilla/5.0 (Windows NT 5.1; rv:2.0) Gecko/20100101 Firefox/4.0"
10.160.0.100;14.11.2011 10:45;/;-;"Mozilla/5.0 (Windows NT 5.1; rv:2.0) Gecko/20100101 Firefox/4.0"
10.160.0.100;14.11.2011 10:53;/;-;"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0)"


I need to compare the IP address in the first line with IP in the second line
and at the same time
to compare the last box that contains the version of the web browser with version in the second line.
And second line with third line etc.

If first IP is same as second IP and together first version is same as second version
then add to the end of line info example #1 (that will be mean that it is first user)

If IP or version are different then add to the end of line #2 (second user).

It identifies users based on IP address and User-Agent field (based on different versions of a web browser).

Example of ouput file:
10.160.0.10;16.11.2011 12:56;/;-;"Mozilla/5.0 (Windows NT 5.1; rv:2.0) Gecko/20100101 Firefox/4.0";#1
10.160.0.100;14.11.2011 7:22;/;-;"Mozilla/5.0 (Windows NT 5.1; rv:2.0) Gecko/20100101 Firefox/4.0";#2
10.160.0.100;14.11.2011 10:45;/;-;"Mozilla/5.0 (Windows NT 5.1; rv:2.0) Gecko/20100101 Firefox/4.0";#2
10.160.0.100;14.11.2011 10:53;/;-;"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0)";#3


Do you have any idea how to do this?
Which method to use?
Thank you for help.
AnswerRe: [JAVA] web log file Pin
TorstenH.1-Nov-12 5:03
memberTorstenH.1-Nov-12 5:03 
Questionquestion Pin
dina rajab28-Oct-12 1:14
memberdina rajab28-Oct-12 1:14 
AnswerRe: question Pin
Richard MacCutchan28-Oct-12 1:23
mvpRichard MacCutchan28-Oct-12 1:23 
Questionjava Pin
dina rajab28-Oct-12 1:11
memberdina rajab28-Oct-12 1:11 
AnswerRe: java Pin
Richard MacCutchan28-Oct-12 1:23
mvpRichard MacCutchan28-Oct-12 1:23 
AnswerRe: java Pin
TorstenH.29-Oct-12 1:38
memberTorstenH.29-Oct-12 1:38 
AnswerRe: java Pin
April Fans26-Dec-12 18:13
memberApril Fans26-Dec-12 18:13 
QuestionForcing Eclipse webapp home page when debugging Pin
kmg36526-Oct-12 12:53
memberkmg36526-Oct-12 12:53 
AnswerRe: Forcing Eclipse webapp home page when debugging Pin
hbwhypw31-Oct-12 23:46
memberhbwhypw31-Oct-12 23:46 
GeneralRe: Forcing Eclipse webapp home page when debugging Pin
kmg3651-Nov-12 11:24
memberkmg3651-Nov-12 11:24 
GeneralRe: Forcing Eclipse webapp home page when debugging Pin
hbwhypw1-Nov-12 17:04
memberhbwhypw1-Nov-12 17:04 
QuestionIam Facing Problem While Storing record’s in Access Using Applet … Pin
Prabakaran199325-Oct-12 23:06
memberPrabakaran199325-Oct-12 23:06 
AnswerRe: Iam Facing Problem While Storing record’s in Access Using Applet … Pin
Nagy Vilmos26-Oct-12 0:08
memberNagy Vilmos26-Oct-12 0:08 
GeneralRe: Iam Facing Problem While Storing record’s in Access Using Applet … Pin
Prabakaran199326-Oct-12 9:30
memberPrabakaran199326-Oct-12 9:30 
GeneralRe: Iam Facing Problem While Storing record’s in Access Using Applet … Pin
jschell26-Oct-12 9:49
memberjschell26-Oct-12 9:49 
AnswerRe: Iam Facing Problem While Storing record’s in Access Using Applet … Pin
jschell26-Oct-12 9:55
memberjschell26-Oct-12 9:55 
GeneralRe: Iam Facing Problem While Storing record’s in Access Using Applet … Pin
Prabakaran19932-Nov-12 21:59
memberPrabakaran19932-Nov-12 21:59 
Questiondisplay GROUP BY result Pin
uti123fil23-Oct-12 22:48
memberuti123fil23-Oct-12 22:48 
AnswerRe: display GROUP BY result Pin
Richard MacCutchan23-Oct-12 23:05
mvpRichard MacCutchan23-Oct-12 23:05 
GeneralRe: display GROUP BY result Pin
uti123fil23-Oct-12 23:36
memberuti123fil23-Oct-12 23:36 
GeneralRe: display GROUP BY result Pin
Richard MacCutchan23-Oct-12 23:41
mvpRichard MacCutchan23-Oct-12 23:41 
AnswerRe: display GROUP BY result Pin
Richard MacCutchan24-Oct-12 2:14
mvpRichard MacCutchan24-Oct-12 2:14 
GeneralRe: display GROUP BY result Pin
uti123fil8-Nov-12 18:11
memberuti123fil8-Nov-12 18:11 
QuestionHow to make GAME by Java? Pin
nghia09t322-Oct-12 17:05
membernghia09t322-Oct-12 17:05 
AnswerRe: How to make GAME by Java? Pin
TorstenH.22-Oct-12 21:32
memberTorstenH.22-Oct-12 21:32 
AnswerRe: How to make GAME by Java? Pin
Richard MacCutchan22-Oct-12 23:38
mvpRichard MacCutchan22-Oct-12 23:38 
AnswerRe: How to make GAME by Java? Pin
Gowtham Gutha9-Nov-12 10:05
memberGowtham Gutha9-Nov-12 10:05 
QuestionDeveloping Cloud Storage Services Pin
Member 925151319-Oct-12 5:20
memberMember 925151319-Oct-12 5:20 
AnswerRe: Developing Cloud Storage Services Pin
TorstenH.22-Oct-12 1:28
memberTorstenH.22-Oct-12 1:28 
GeneralRe: Developing Cloud Storage Services Pin
Member 925151322-Oct-12 2:24
memberMember 925151322-Oct-12 2:24 
AnswerRe: Developing Cloud Storage Services Pin
jschell22-Oct-12 9:30
memberjschell22-Oct-12 9:30 
QuestionAbout java swings Pin
lkishore32818-Oct-12 22:07
memberlkishore32818-Oct-12 22:07 
AnswerRe: About java swings Pin
Richard MacCutchan19-Oct-12 0:22
mvpRichard MacCutchan19-Oct-12 0:22 
Questionjava code for a law firm application Pin
kibuule18-Oct-12 9:33
memberkibuule18-Oct-12 9:33 
AnswerRe: java code for a law firm application Pin
jschell18-Oct-12 11:04
memberjschell18-Oct-12 11:04 
AnswerRe: java code for a law firm application Pin
Joan Murt21-Oct-12 21:53
memberJoan Murt21-Oct-12 21:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web02 | 2.8.170113.4 | Last Updated 10 Jan 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid