LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-08-2012, 04:27 AM   #1
rlug
LQ Newbie
 
Registered: Jan 2009
Location: INDIA
Distribution: CentOS, RHEL
Posts: 6

Rep: Reputation: 5
Need Shell Script to parse Zimbra Sync.log


Hi All,

Want to Get Max Information From Below Logs by Shell Script

Example of Extracted Information

User Name :.... Used Device Type : ....... Having DeviceID: ..... Version: ......

Something like that .....

Total Number of Unique Users : ....
Total Number of Device ID: .....
Total Number of Device Type : ....
Total Number of OS Used: ....


Below is a Sample of Zimbra Sync.log File



2009-12-16 00:00:43,970 INFO [btpool0-12194://webmail.amit.com/Microsoft-Server-ActiveSync?Cmd=Ping&User=rahul%40kke.amit.com&DeviceId=androidc986729649&DeviceType=Android] [] sync - POST Microsoft-Server-ActiveSync?Cmd=Ping&User=ritesh%40kke.amit.com&DeviceId=androidc986729649&DeviceType=Android

2009-12-16 00:00:43,971 INFO [btpool0-12194://webmail.amit.com/Microsoft-Server-ActiveSync?Cmd=Ping&User=mohan%40kke.amit.com&DeviceId=androidc986729649&DeviceType=Android] [] sync - DeviceID=androidc986729649; DeviceType=Android; UA=Android/0.3; Protocol=12.0; PolicyKey=null

2009-12-16 00:00:43,971 INFO [btpool0-12194://webmail.amit.com/Microsoft-Server-ActiveSync?Cmd=Ping&User=rahul%40kke.amit.com&DeviceId=androidc986729649&DeviceType=Android] [name=rahul@kke.amit.com;mid=3041;Cmd=Ping;DeviceID=androidc986729649;Version=12.0;] sync - Response size 13 bytes

2009-12-16 00:00:43,971 INFO [btpool0-12194://webmail.amit.com/Microsoft-Server-ActiveSync?Cmd=Ping&User=rahul%40kke.amit.com&DeviceId=androidc986729649&DeviceType=Android] [name=rahul@kke.amit.com;mid=3041;Cmd=Ping;DeviceID=androidc986729649;Version=12.0;] sync - HTTP/1.1 200 OK

2009-12-16 00:00:47,278 INFO [btpool0-12161://webmail.amit.com/Microsoft-Server-ActiveSync?Cmd=Ping&User=hotblast%40amit.com&DeviceId=Moxier359496033451946&DeviceType=MoxierAndroid] [] sync - POST Microsoft-Server-ActiveSync?Cmd=Ping&User=hotblast%40amit.com&DeviceId=Moxier359496033451946&DeviceType=MoxierAndroid

Hope I get good shell Script to parse above Zimbra Sync.log file

Thanks in Advance

Amit
 
Old 01-08-2012, 08:29 AM   #2
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Moderator response

Hi,

What have you done to find a solution to the problem? Other than to post here.

We will aid you when you help yourself to a solution. Provide us with what you have attempted and then maybe someone will be able to assist. 


 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I configure a shell script which will parse ldap data in for each dn: vikki Linux - Server 2 12-28-2011 07:38 AM
[SOLVED] How do I make an AWK script parse a Shell Variable Nerdio Linux - Newbie 4 11-16-2011 01:16 PM
[SOLVED] How to parse and modify these keywords using shell script? corone Programming 17 04-26-2011 07:33 AM
Help w/ script to read file and parse log message shyork2001 Linux - General 4 04-06-2010 11:48 AM
[shell script] execute command and parse output stoiss Programming 2 01-26-2009 01:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration