securely access to application logs
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix administration > securely access to application logs




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    securely access to application logs  
kona_iron@yahoo.fr


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-14-05 10:55 PM

Hello,
We have a lot of Solaris servers with each multiple applications that
generate application logs.
Some application logs have to be read by "non privilege" users.
We can not give direct accesse on these logs. So the idea is to have a
log server.
These applications do not use syslog. So it is not easy to export these
logs to amother servers.
What do you suggest me ?
We need a solution as secure as possible. So no NFS or Samba

Thank's a lot for any advices






[ Post a follow-up to this message ]



    Re: securely access to application logs  
Michael Vilain


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-15-05 01:06 PM

In article <1108422851.143107.293540@z14g2000cwz.googlegroups.com>,
kona_iron@yahoo.fr wrote:

> Hello,
> We have a lot of Solaris servers with each multiple applications that
> generate application logs.
> Some application logs have to be read by "non privilege" users.
> We can not give direct accesse on these logs. So the idea is to have a
> log server.
> These applications do not use syslog. So it is not easy to export these
> logs to amother servers.
> What do you suggest me ?
> We need a solution as secure as possible. So no NFS or Samba
>
> Thank's a lot for any advices

Setup sudo to use a paginator that doesn't allow shelling-out.  Build
"less" to not allow a shell and create scripts that provide listing the
log files.  Use sudo to allow non-priv users to access them.

This require they login to a non-privileged account running a restricted
shell and use an UNIX command line.  If they are grown up enough to
require access to log files, they can deal with a command line.

--
DeeDee, don't press that button!  DeeDee!  NO!  Dee...








[ Post a follow-up to this message ]



    Re: securely access to application logs  
kona_iron@yahoo.fr


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-15-05 11:02 PM

Thank you Mickael.
Some of our Solaris servers was not prepared to become "guest" users. A
lot of Application were installed with "other" access right. We can not
remove this access right so easy without to be sure that they are no
impact.
So in between time I also think to use SUDO. But I'm not sure that SUDO
can solve my problem, because of some files that are too "open" (other
acces).
And restricted shell can not prevent acces a file if I know his path,
right ?
Regards.

Michael Vilain wrote:
> In article <1108422851.143107.293540@z14g2000cwz.googlegroups.com>,
>  kona_iron@yahoo.fr wrote:
> 
that[vbcol=seagreen] 
have a[vbcol=seagreen] 
these[vbcol=seagreen] 
>
> Setup sudo to use a paginator that doesn't allow shelling-out.  Build

> "less" to not allow a shell and create scripts that provide listing
the
> log files.  Use sudo to allow non-priv users to access them.
>
> This require they login to a non-privileged account running a
restricted
> shell and use an UNIX command line.  If they are grown up enough to
> require access to log files, they can deal with a command line.
>
> --
> DeeDee, don't press that button!  DeeDee!  NO!  Dee...






[ Post a follow-up to this message ]



    Re: securely access to application logs  
Michael Vilain


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-16-05 07:48 AM

In article <1108502934.853182.283030@g14g2000cwa.googlegroups.com>,
kona_iron@yahoo.fr wrote:
[vbcol=seagreen]
> Thank you Mickael.
> Some of our Solaris servers was not prepared to become "guest" users. A
> lot of Application were installed with "other" access right. We can not
> remove this access right so easy without to be sure that they are no
> impact.
> So in between time I also think to use SUDO. But I'm not sure that SUDO
> can solve my problem, because of some files that are too "open" (other
> acces).
> And restricted shell can not prevent acces a file if I know his path,
> right ?
> Regards.
>
> Michael Vilain wrote: 
> that 
> have a 
> these 
> 
> the 
> restricted 

The only other thing I can think of is you write a CGI web interface
that can access the files.  You'll still have the access rights problem,
but you'll have that problem regardless of the solution.  You have to
balance the "skill level" (aka stupidity) of your users vs. their need
to access this information.

I don't envy you this task.  You have to either allow full access or
break the application.  I'd start working with the developers to fix the
access problems.  You won't get anywhere with this until they fix their
code.

--
DeeDee, don't press that button!  DeeDee!  NO!  Dee...








[ Post a follow-up to this message ]



    Re: securely access to application logs  
harv


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-17-05 01:48 AM

kona_iron@yahoo.fr wrote:
> Hello,
> We have a lot of Solaris servers with each multiple applications that
> generate application logs.
> Some application logs have to be read by "non privilege" users.
> We can not give direct accesse on these logs. So the idea is to have a
> log server.
> These applications do not use syslog. So it is not easy to export these
> logs to amother servers.
> What do you suggest me ?
> We need a solution as secure as possible. So no NFS or Samba
>
> Thank's a lot for any advices
>
How about using "logger" and sending to a syslog server... bit like this:
logger -p local1.notice -t APPSERV01 -f /path/logfile
should read the file "/path/logfile" line by line and sent it to syslog
with the priority of "local1.notice" and tag with "APPSERV01"
Then setup syslog for remote logging for local1.notice etc.

Might have to get a little more tricky doing something like:

cat <logfile> >> <store log> && logger -p local0.notice -t APPSERV01 -f
<logfile> && cat /dev/nul > <logfile>

Giving you a full set of log on the application server <store log> and a
running log to send to syslog.

Wack it in cron and your away.


Other possible options I can think of:
Is replacing the application log file with a named pipe and running the
logger command on that.
Or even use scp to go and get the files every 5 mins or so if realtime
is not that important.

-Harv





[ Post a follow-up to this message ]



    Re: securely access to application logs  
kona_iron@yahoo.fr


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-17-05 10:54 PM

Hi Harv,
Thank you, good advices.

harv wrote:
> kona_iron@yahoo.fr wrote: 
that[vbcol=seagreen] 
have a[vbcol=seagreen] 
these[vbcol=seagreen] 
> How about using "logger" and sending to a syslog server... bit like
this:
> logger -p local1.notice -t APPSERV01 -f /path/logfile
> should read the file "/path/logfile" line by line and sent it to
syslog
> with the priority of "local1.notice" and tag with "APPSERV01"
> Then setup syslog for remote logging for local1.notice etc.
>
> Might have to get a little more tricky doing something like:
>
> cat <logfile> >> <store log> && logger -p local0.notice -t APPSERV01
-f
> <logfile> && cat /dev/nul > <logfile>
>
> Giving you a full set of log on the application server <store log>
and a
>   running log to send to syslog.
>
> Wack it in cron and your away.
>
>
> Other possible options I can think of:
> Is replacing the application log file with a named pipe and running
the
> logger command on that.
> Or even use scp to go and get the files every 5 mins or so if
realtime
> is not that important.
>
> -Harv






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 05:00 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register