Tomcat logs

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

kool_kid
Posts: 179
Joined: Wed Dec 05, 2007 7:27 am

Tomcat logs

Postby kool_kid » Tue Apr 01, 2008 12:45 pm

Hey

I would like to record all the ips that are trying to view my Scalix login page, how do I accomplish this?

Valerion
Scalix Star
Scalix Star
Posts: 2730
Joined: Thu Feb 26, 2004 7:40 am
Location: Johannesburg, South Africa
Contact:

Postby Valerion » Wed Apr 02, 2008 4:20 am

Check your apache access log. It gets logged even before the redirect to tomcat gets done.

kool_kid
Posts: 179
Joined: Wed Dec 05, 2007 7:27 am

Postby kool_kid » Thu Apr 03, 2008 12:37 pm

Whats the location /var/logs/httpd ??

Valerion
Scalix Star
Scalix Star
Posts: 2730
Joined: Thu Feb 26, 2004 7:40 am
Location: Johannesburg, South Africa
Contact:

Postby Valerion » Fri Apr 04, 2008 3:27 am

On my machine it is /var/log/httpd, but it may vary between systems.

kool_kid
Posts: 179
Joined: Wed Dec 05, 2007 7:27 am

Postby kool_kid » Fri Apr 04, 2008 5:39 am

Thanks that helped me.

By the way I have a list of ip that I need to block from accessing my scalix login page or even login to any account, how do I do it?

Valerion
Scalix Star
Scalix Star
Posts: 2730
Joined: Thu Feb 26, 2004 7:40 am
Location: Johannesburg, South Africa
Contact:

Postby Valerion » Fri Apr 04, 2008 7:51 am

To get a list of his to do access control in apache, have a look at

http://httpd.apache.org/docs/2.2/howto/access.html and then http://httpd.apache.org/docs/2.2/howto/auth.html

To integrate this with mod_proxy, have a look at http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#access, it uses the allow/deny syntax from the first set of URLs.

kool_kid
Posts: 179
Joined: Wed Dec 05, 2007 7:27 am

Postby kool_kid » Sat Apr 05, 2008 4:34 pm

Hey one more thing, I would like to get the logs of my users when they login to scalix from any internet or use any public IP. The logs which says similar to

Code: Select all

" User A" login from 206.54.236.47 ....



something of this kind. I can now get te logs of IP which tried to access scalix login page but I want to get the logs of IP on user base.

Valerion
Scalix Star
Scalix Star
Posts: 2730
Joined: Thu Feb 26, 2004 7:40 am
Location: Johannesburg, South Africa
Contact:

Postby Valerion » Mon Apr 07, 2008 3:50 am

Auditing on the interfaces (RCI and IMAP) can do this for you with SWA. You will then get an entry in the audit log.

kool_kid
Posts: 179
Joined: Wed Dec 05, 2007 7:27 am

Postby kool_kid » Mon Apr 07, 2008 12:13 pm

How can I set it up? some steps please

mikevl
Scalix Star
Scalix Star
Posts: 596
Joined: Mon Feb 02, 2004 8:32 pm
Location: New Zealand

Postby mikevl » Mon Apr 07, 2008 6:51 pm

Hi

omconfaud rci 11
omconfaud -a imap 11

omoff -d0 rci imap
omon rci imap

Mike

kool_kid
Posts: 179
Joined: Wed Dec 05, 2007 7:27 am

Postby kool_kid » Mon Apr 07, 2008 6:59 pm

where can I check the logs i mean how do i confirm whether its working or no.

mikevl
Scalix Star
Scalix Star
Posts: 596
Joined: Mon Feb 02, 2004 8:32 pm
Location: New Zealand

Postby mikevl » Mon Apr 07, 2008 7:03 pm

Hi

The logs are is

/var/opt/scalix/xx/s/logs/audit

Mike

kool_kid
Posts: 179
Joined: Wed Dec 05, 2007 7:27 am

Postby kool_kid » Tue Apr 08, 2008 8:59 am

after issuing those commands i did

Code: Select all

tail -f /var/opt/scalix/el/s/logs/audit
part-size 706
part-type 2133 HTML
recipient-bcc Archive A / email/CN=Archive
ack-req 0 none
queue LOCAL
max-nest-depth 0
message-size 5189
part-count 3
delivered-count


Apart from this I don't get any output. I even restarted the scalix services (all).

Valerion
Scalix Star
Scalix Star
Posts: 2730
Joined: Thu Feb 26, 2004 7:40 am
Location: Johannesburg, South Africa
Contact:

Postby Valerion » Tue Apr 08, 2008 9:01 am

You need to use less to view the file, not tail as it will only give you the last few lines of text. Or use tail -f and then log in to check the change.

kool_kid
Posts: 179
Joined: Wed Dec 05, 2007 7:27 am

Postby kool_kid » Tue Apr 08, 2008 9:41 am

Code: Select all

tail -f /var/opt/scalix/el/s/logs/audit


I used tail -f. I have posted the logs after I logged in.


Return to “Scalix Server”



Who is online

Users browsing this forum: No registered users and 3 guests

cron