OWA logs

Is there any way to  find out the IP address of client machine from where user has accessed the OWA of my organization.
Exchnage server 2010 Sp3
Manish KumarSr. Technical ConsultantAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Muhammad MullaSystems AdministratorCommented:
The logs will be on the servers holding the CAS roles.

You will need to download MS Log Parser tool to make the logs readable.

Copy the log files from the appropriate inetpub folder (probably something like C:\inetpub\logs\LogFiles\W3SVC1) to a temp or working folder of your choice on your workstation.

Merge the logs together using:

logparser.exe -i:iisw3c “select * into c:\temp\complete.log from c:\temp\*” -o:csv

Open in new window

Extract the relevant data from the logs:

LogParser -i:csv “SELECT cs-username, date, time, c-ip, cs-uri-stem, cs(User-Agent) FROM C:\temp\complete.log TO C:\temp\Output.csv WHERE cs-method LIKE ‘%get%’ and cs-uri-stem LIKE ‘%owa%’

Open in new window

Manish KumarSr. Technical ConsultantAuthor Commented:
I got the below error

C:\Program Files\Log Parser 2.2>LogParser -i:csv "SELECT cs-username, date, time
, c-ip, cs-uri-stem, cs(User-Agent) FROM C:\Users\kumarman\Desktop\u_ex150912.lo
g TO C:\Users\kumarman\Desktop\Output.csv" WHERE cs-method LIKE `%get%' and cs-u
ri-stem LIKE `%owa%'
Error: detected extra argument "cs-username," after query
Muhammad MullaSystems AdministratorCommented:

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Manish KumarSr. Technical ConsultantAuthor Commented:
the query is not running even in Log Parser Studio as well
Jeff GloverSr. Systems AdministratorCommented:
Did you try it without the quotation marks before SELECT and after Output.csv?
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Email Clients

From novice to tech pro — start learning today.