473,394 Members | 1,831 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

parsing of squid log

how parsing of squid log is done in java i want to transfer the log into oracle server help me out
Oct 16 '07 #1
4 2229
r035198x
13,262 8TB
how parsing of squid log is done in java i want to transfer the log into oracle server help me out
What do you mean by "transfer it to oracle server"? Do you mean store it in a database column? Have a look at the CharacterLargeOBject (CLOB) type.
Oct 16 '07 #2
i have squid log file and i want to parse it such a way that i can put ip address in 1 column, site accesed in other column , so there are 5-6 field which i want to put in database such as oracle server.
Oct 16 '07 #3
r035198x
13,262 8TB
i have squid log file and i want to parse it such a way that i can put ip address in 1 column, site accesed in other column , so there are 5-6 field which i want to put in database such as oracle server.
Then you just read the file using Scanner, or FileReader and then get the values you want perhaps from a StringBuilder representation of the file using regex.
Oct 16 '07 #4
ok thx for this.
my squid log file will besay 200 records.Is it possible for me to parse the file and save it in notepad and then work on that file.since after parsing the log my one of the field will be sites visited by the students.i want to find most accesed sites. i was thinking of using to keep some count.is there any other way by which i can find this.
and whether it is posible without using database.
Oct 17 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Marcus Ogden | last post by:
Hello, A client of ours using the Squid proxy server (version 2.5.STABLE6-3.4E.12.1) on Red Hat Enterprise Linux 4 is experiencing a problem when running our .NET 2.0 client application, which...
1
by: smitanaik | last post by:
suggest me best language to do parsing of squid log file in linux
1
by: smitanaik | last post by:
hi, i want to know whether we can do parsing of squid log file and transfering that data into sql server using php. and on linux platform or is there any other language which will be easier
1
by: ntech | last post by:
hello, Before, i run the squid in my system, the CPU is almost idle but as soon a run the squid, the CPU consumes 99% of the system. so i don't understand the problem. i have even rotated the squid...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.