Sponsored Content
Top Forums UNIX for Dummies Questions & Answers How to keep server out of logs? Post 302895374 by postcd on Monday 31st of March 2014 01:32:32 PM
Old 03-31-2014
How to keep server out of logs?

Hi,

there you may read some anonymous services like VPN service dont keep logs of their members activity.

So i want to ask how i can make my personal linux servers be without any logs of accessing IPs, hostnames.

I know there is "/var/log/lastlog", but are there any other files in default linux to be deleted (securelly)?
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Shell script to view logs of a server

Please share a shell script to collect logs of a server (like cpu utilization, memory etc) for a perticular time interval by giving date, time and server name as input. (1 Reply)
Discussion started by: abhishek27
1 Replies

2. UNIX for Dummies Questions & Answers

File Server Logs - Samba and Netatalk

I have installed a linux file server and it works great. At my location we have a mix of Mac & Windows systems. Netatalk and Samba are setup on the server. The problem is recently someone has deleted file or files haven't been put on the server properly. Two different departments are pointing... (1 Reply)
Discussion started by: odysseus1977
1 Replies

3. Red Hat

Sending all apache logs to Syslog Server

Hi All, I need to send all apache logs to local syslog and then to syslog server (STRM – Security Threat response manager). I follow these steps:- vi /etc/httpd/conf/httpd.conf Added these lines :- ErrorLog syslog:local1 LogLevel notice Then in syslog.conf:- local1.crit... (3 Replies)
Discussion started by: sidhurana
3 Replies

4. Solaris

Login and logout logs in server

Hi, Can you please let me know how can and where we will find the logs. ie,which user is login and logout from server and by using which ip address they accessed server. please let me know the steps and folder, file names to trace the logs from server . we are using System = SunOS 5.10. Please... (10 Replies)
Discussion started by: kancherla.sree
10 Replies

5. Shell Programming and Scripting

Email alerts whenever someone logs into server via SSH any user?

Hi all, Thanks in Advance!! I dont know how to start to write script for this process, my requirement is if any user logs into server automatically Admin get mail alert. how is this possible? any one guide me to complete this process. (1 Reply)
Discussion started by: anishkumarv
1 Replies

6. UNIX for Dummies Questions & Answers

Program: How to FTP logs from a Server to Desktop

Hi guys, Good day! Anyone there could suggest on how can I create a program that will get (ftp) the logs I need from a remote Server (running in Linux) into my Desktop (running in Windows 7). For Perl program suggestions, FYI that I'm using Active Perl version. The reason why I need this one is... (2 Replies)
Discussion started by: rymnd_12345
2 Replies

7. Linux

How to push Tomcat logs to remote syslog server?

I found a script for automatically push tomcat logs to syslog server which is locate in same server. How do I change it to push logs to remote server? log4j.rootLogger=INFO, WARN, console, file, SYSLOG log4j.appender.file=org.apache.log4j.RollingFileAppender log4j.appender.file.append=true... (2 Replies)
Discussion started by: heshandh
2 Replies

8. Red Hat

Comprehensive Disk & Server Logs.

Hello All, I'm using a RHEL6.4 on IBM X3850 X5 server. I want to get a comprehensive report containing disk-wise health status as well as overall server status. I see there's utility "ibm_utl_dsa_dsytd3h-9.51_portable_rhel6_x86-64.bin" which is also used to do diagnostics tasks. I'm not sure of... (1 Reply)
Discussion started by: vaibhavvsk
1 Replies

9. UNIX for Dummies Questions & Answers

Flow control state changed in server logs

Hi, We observe below logs from switch - the database servers rebooted becaause they couldn't do I/O on vfiler -Any pointers looking at below logs please? Switch logs: 2016 Apr 30 07:41:16.729 EAG-ECOM-POD111GPU-SWF1 %ETHPORT-5-IF_DOWN_LINK_FAILURE: Interface Ethernet152/1/8 is down (Link... (0 Replies)
Discussion started by: admin_db
0 Replies

10. Shell Programming and Scripting

Shell commands and ps and server logs

Good afternoon all!! I am writing a shell script that will generate a random phrase to be used as a password. this is the line I use to generate the password echo `head -n 10 /dev/urandom | tr -cd "*+,-/:;<=>?_" | cut -c '1-'$3` The third input in the command is the length of the password i... (6 Replies)
Discussion started by: cptkirkh
6 Replies
Perlbal::Manual::Logging(3pm)				User Contributed Perl Documentation			     Perlbal::Manual::Logging(3pm)

NAME
Perlbal::Manual::Logging - How Perlbal's logging system works VERSION Perlbal 1.78. DESCRIPTION Perlbal supports logging of a few messages (and you can log your messages in your plugins, for instance). This document describes how to achieve that. IMPORTANT: foreground vs. background If Perlbal is running on the foreground, it logs by calling "printf", which means you should get the logs on "STDOUT". If Perlbal is running on the background, it logs through Sys::Syslog. If Sys::Syslog is not available, there will be no logging, and THAT'S THE MOST IMPORTANT THING TO KNOW ABOUT PERLBAL'S LOGGING SYSTEM. How to log a message You can log a message by calling "Perlbal::log" as you'd call Sys::Syslog's "syslog": Perlbal::log( $priority, $format, @args ); You should read the documentation for Sys::Syslog for more information, but here's an example: Perlbal::log( 'info', 'beginning run' ); And here's another example: Perlbal::log( 'crit', "this thing crashed: $!" ); What is logged? o When we try to read from or write to a filehandle that is undefined, Perlbal::AIO logs a critical message: Perlbal::log("crit", "Undef $fh: $stack_trace"); o When failing to create a socket, Perlbal::BackendHTTP logs a critical message: Perlbal::log('crit', "Error creating socket: $!"); o When "inet_aton" fails to create a socket, Perlbal::BackendHTTP logs a critical message: Perlbal::log('crit', "inet_aton failed creating socket for $ip"); o When writing to a client, if we try to read more than we should from the backend, Perlbal::ClientHTTPBase logs a warning message: Perlbal::log('warning', "tried to readahead negative bytes. filesize=$self->{reproxy_file_size}, offset=$self->{reproxy_file_offset}"); o When opening a file being PUT for writing to disk, if there's an error (which is going to originate a 500 server error), Perlbal::ClientHTTPBase logs a warning message: Perlbal::log('warning', "system error: $msg ($info)"); o If we receive a request with a content length different from the actual length of the request, Perlbal::ClientProxy logs a critical message: Perlbal::log('crit', "Content length of $clen declared but $self->{buoutpos} bytes written to disk"); o When trying to buffer data to disk, if the operation fails Perlbal::ClientProxy logs a critical message: Perlbal::log('crit', "Failure to open $fn for buffered upload output"); o After buffering data to disk, if the file is empty, Perlbal::ClientProxy logs a critical message: Perlbal::log('crit', "Error writing buffered upload: $!. Tried to do $len bytes at $self->{buoutpos}."); o When purging a buffered upload on the disk, if an error occurs, Perlbal::ClientProxy logs a critical message: Perlbal::log('warning', "Unable to link $self->{bufilename}: $!"); o When marking a backend as pending, if there's already another one in that ip/port, Perlbal::Service will log a couple of warning messages: Perlbal::log('warning', "Warning: attempting to spawn backend connection that already existed."); Perlbal::log('warning', " -- [$filename:$line] $package::$subroutine"); o When deciding whether we should spawn one or more backend connections, if the total of pending conections is negative, Perlbal::Service will log a critical message: Perlbal::log('crit', "Bogus: service $self->{name} has pending connect count of $self->{pending_connect_count}?! Resetting."); o When spawning a backend connection, if there is no IP address for the backend, Perlbal::Service will log a critical message: Perlbal::log('crit', "No backend IP for service $self->{name}"); o When starting, Perlbal will log an info message: Perlbal::log('info', 'beginning run'); o When shutting down, Perlbal will log an info message: Perlbal::log('info', 'ending run'); o After each loop, is some error occurred, Perlbal will log a critical message: Perlbal::log('crit', "crash log: $_") foreach split(/ ? /, $@); o When attempting to create the pidfile, if unsuccessful, Perlbal will log an info message: Perlbal::log('info', "couldn't create pidfile '$file': $!" ); o When attempting to write to the pidfile, if unsuccessful, Perlbal will log an info message: Perlbal::log('info', "couldn't write into pidfile '$file': $!" ); Generating more logs by sending a USR1 signal to perlbal If you send a USR1 signal to perlbal, that tells it to log some basic statistics to the syslog. It's similar to connecting to a management service and issue a "show service" for each service, plus a "states" and a "queues" commands. Where is it logged to? The way Perlbal opens Sys::Syslog, it logs to /var/log/daemon.log by default. SEE ALSO You can tweek Sys::Syslog's configuration under /etc/syslog.conf. See Sys::Syslog for more details. perl v5.14.2 2012-03-23 Perlbal::Manual::Logging(3pm)
All times are GMT -4. The time now is 08:01 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy