General :: Script Two Look Into 2 Different Logs And Action?
Feb 4, 2011
I have a server with logs running. People connect to server. This server is running the same application as a failover just in case it stops. I have a doubt that some clients are connecting from different places as the nodeID is changed SO I need to make a script which reads both logs that are called server1.log and server2.log and where it finds a nodeID which does not match in both logs it action with fail2ban
I don't know whether this can be done directly via fail2ban since it is the program which I know that reads between logs but as far as I know it cannot match data with another log
This is an Example:
Code:
Log 1
03:00:08.905 client qwe696s@894b226f7846d9df, running version 2.1
Log 2
03:00:08.905 client qwe696s@894b226f7846d9dd, running version 2.1
Quote:
qwe696s is the username
894b226f7846d9df is the NODEID
AS you can see from the logs nodeid is different
View 5 Replies
ADVERTISEMENT
May 2, 2011
I want to know how to set variable in procmailrc action block or condition block I want to set a variable as a random file name to store emails but I don't know how to set a variable in procmailrc action block or condition block .this is my example:Quote:
:0b
* ^FROM.*
{
code]...
View 2 Replies
View Related
Jan 11, 2010
I have security guidelines for my business OS which require me to active screensaver.
Nevertheless, I dislike screensavers because I sometime read a while, but I do not want to go offline from my IM in the meantime.
Anyways, I am looking for a solution. So I though about writing a little shell script (connected with a cronjob), which just moves the mouse every 10 minutes or so.
Unfortunately, I have no clue how to interact with the mouse in a shell script.
View 4 Replies
View Related
Mar 22, 2010
I have a following string."machine=IFLMUD5HP0581&group1=Stop"I have created 2 variables namely machine and action.machine should containIFLMUD5HP0581action should containStop
View 7 Replies
View Related
Mar 14, 2011
When I try something like
php -i | less
Less is not responding to hotkeys, but prints them like pressing "q" results in statusline
:q
PageDown
:^[[6~
Pressing ENTER like "executes" the keycode and less perfoems the action. Piping trivial small stuff work however... OS: Fedora 14
View 1 Replies
View Related
May 20, 2011
I use the Actions feature of KDE's Klipper utility to run certain commands when I copy something into the clipboard that matches a particular regular expression. Unfortunately, I have to turn on Enable Clipboard Actions and select the command from a menu every time I copy something that I want to run the command on. I'd like to have that command run automatically instead.
You'd think this was possible, as there is an automatic checkbox in the action settings dialog box:
Unfortunately, that appears to do nothing. The documentation included with Klipper does not indicate what that checkbox is supposed to do.
Is it possible to configure Klipper to run a command automatically if the contents of the clipboard matches a regular expression? If not, is there another way to accomplish this?
View 1 Replies
View Related
Feb 1, 2010
I want to use a combination that avoids alphabetic/punctuation characters because that way I have a consistent physical position on different layouts. Control_R+Menu fits that requirement and is also located at a very convenient position.This combination used to work in KDE 3.5 for the global kxkb switch action, or any keyboard action for that matter. In KDE 4, trying to assign Menu by pressing the Menu key always activates the keyboard trap widget's context menu, in this case giving me the What's this?How do I work around that problem? Alternatively, do you have a snippet that I can paste into $HOME/.kde/share/config/kglobalshortcutsrc and which works?
View 1 Replies
View Related
Dec 8, 2010
I want window to be closed when i middle click on the corresponding taskbar item. Can this is be configured in KDE4?
View 1 Replies
View Related
Feb 17, 2010
i recently install openoffice in fedora 12 and error occured the error is : the action could not be completed because the name org.freedesktop.packagekit was not provided by any .service files. what is link to download latest openoffice for my fedora 12,?my laptop model is asus k50in.
View 1 Replies
View Related
Apr 19, 2010
When I try to login as me - it gets pretty far but then something happens and automatically logs out. This happens in Gnome, Kde too. Now - I have no problem logging in a Root. Is there a way I can try to stop the login process before it kicks me out, or is there a way to look at some files to tell me what's going on?
View 3 Replies
View Related
Jan 29, 2010
On our app server the logs from the Sybase Mobilink service get logged to /var/log because of that I did a chmod a+rx /var/log and all is well until.... the next day QA logs in goes to check the logs and gets:
Quote:
qa@dwdb [~]$ ls /var/log
ls: /var/log: Permission denied
qa@dwdb [~]$
View 18 Replies
View Related
May 13, 2010
Ubuntu one does not synchronize files since I upgraded from 9.10 to 10.04. The preferences panel keeps showing "Synchronization in progress...", but files are not downloaded from the repository. It does not show any error message.
Where do I find the programm logs, where I can investigate my problem?
View 2 Replies
View Related
Jun 10, 2011
How to get the Q2 patching logs of particular server (Linux 2.6.9-100.EL)
View 1 Replies
View Related
May 6, 2010
where kernel logs are stored in linux
View 5 Replies
View Related
Nov 29, 2010
I have captured a file in my linux showing logs captured from many modules concurrently. Please find attached a sample of the file. As you see, there are logs from individual modules that have been captured concurrently. For example, there are logs from IPTR,SNMP,HLR,TCAP,XAPP,and SCCP modules but they are coming concurrently.Each log has the header name of its accompanied module in the beginning. I need to have the log of each modules separately. Can you please show me the power of linux on how to separate individual module's logs from the whole?
View 3 Replies
View Related
Apr 23, 2011
how to turn off all mysql logs because mysql is using too many resources. I turned slow queries log and there is no slow queries here is what I want to turn off the logs maybe this is causing mysql to high load ?
View 2 Replies
View Related
Mar 3, 2010
I have been following the link:[URL]for understanding the log4sh.How can I put it to work for my jboss GC logs?I dont want to use log4j for some reason.
View 1 Replies
View Related
Dec 5, 2009
I need with JBoss application Server.All I have JBOSS running without any issue.All I want is leading the Jboss logs to be deposited at /var/log/jboss.Say, if there are more than one instance running then create a seperate logs like /var/log/jboss-insta1, /var/log/jboss-insta2 etc.
View 2 Replies
View Related
Jul 29, 2010
I'm trying to find out where the logs from slapd.conf (loglevel -1) go? I know in RH is /var/log/ldap.log cant find it on Debian. Its probably too late
Btw. does Debian have something like /etc/syslog.conf. If yes where?
View 1 Replies
View Related
Dec 30, 2009
Is there a tool already out there that will split error logs based on the virtual host they belong to? Or perhaps a somewhat simple way to write a script that can do this? I'll keep looking for a solution but I thought I'd ask in case someone here has one to offer.
View 2 Replies
View Related
Mar 16, 2010
I recently installed Suse Linux enterprise Desktop 11 on my box. I created an user and logged in first time into a GNOME session without any problems. Last time I logged in I selected the session as TWM and that got me into the T windows manager just fine. Now when I log out and try to log back into a GNOME session, it will still log me into the TVM sessionI have tried restarting the boxHowever, when I remote log in to the machine it will let me get on the GNOME session just fine. I'm guessing this is probably a really simple fix, however I am a Linux newbie and doing a google search isn't yielding me what I'm looking for.
View 1 Replies
View Related
Feb 23, 2011
I'm using pidgin on both, windows and linux on several pc. To sync my log, I use dropbox. For linux, it's easy. Just a matter of symlink. However, I don't know how to sync it on windows, without manual copy-paste once I'm done on windows.
backup and delete current log (it's located at C:Users{your user name}Roaming.purplelogs)
mklink /D "C:Users{your user name}Roaming.purplelogs" "E:My Dropboxsomepathpurplelogs"
"C:Users{your user name}Roaming.purplelogs" is where you want your symlink at
"E:My Dropboxsomepathpurplelogs" is there you have your dropboxed logs.
View 1 Replies
View Related
Jan 13, 2011
I've activated my AdSense account and then I received a confirmation from GoogleJust for curiosity, I connected to my server to snoop the logs and I've found a Russian website doing something :|
Code:
66.249.71.215 - - [12/Jan/2011:14:05:58 -0300] "GET /robots.txt HTTP/1.1" 404 1144
66.249.71.215 - - [12/Jan/2011:14:05:59 -0300] "GET / HTTP/1.1" 302 -
[code]....
View 2 Replies
View Related
May 7, 2009
I had full backup in mysql. now i added some tables .i got new binary logs. how i can i use these logs to have incremental backup.
View 3 Replies
View Related
Aug 9, 2010
i installed php-syslog-ng 2.9.8m in RHEL5 box. I saw logs from the local machine once the cron execute in every one minute.I dont need to appear those in my syslog console. I want to disable these from my linux box.How can i archive this
View 1 Replies
View Related
Dec 26, 2010
I am installing RHEL 5.5 to be a syslog server to collects logs from servers (HP-UX, Linux, Windows and Cisco Network Devices). and i can now collect logs from my windows PC on syslog linux server by using Datagram SyslogAgent software. can collect logs from HP-UX 11.23 server. and i configuring the Unix server as in the steps below:
1. Log in as root
2. Go to /etc/syslog.conf
3. Add a line: *.*<tab>@<Sentinel Server IP Address>
*.* @10.15.1.5
4. Save and Close
# netstat -na | grep 514
tcp 0 0 *.514 *.* LISTEN
udp 0 0 *.514 *.*
[code]....
View 1 Replies
View Related
Mar 30, 2010
I have been requested to deliver the logs for last friday, but the problem is that I have configured squid logs to be weekly, not daily. How can I extract the logs generated friday from the week file?
View 3 Replies
View Related
Nov 19, 2009
The requirement was to write a shell script for a cron job set for every two hours for all days.The Script has to scan log files (*.log) for the logs posted only for the last two hours.... and append them in a new file...I am clueless abt how to scan/compare based on time stamp seen in above logs.
View 2 Replies
View Related
Jul 29, 2011
How can I view a live log on a Linux Server, so that I can see new log entries instantly as they are being added?
View 1 Replies
View Related
Feb 4, 2011
My server is rebooting frequently(4 to 5times a day) without any logs, can any one help me out to fined the cause for the unexpected reboots of the server. reboot system boot 2.6.18-194.3.1.e Fri Feb 4 15:16 (00:-24)
[root@elastix log]# cat /etc/redhat-release
CentOS release 5.5 (Final)
[root@elastix log]# uname -a
Linux elastix 2.6.18-194.3.1.el5 #1 SMP Thu May 13 13:09:10 EDT 2010 i686 i686 i386 GNU/Linux
[code]...
View 2 Replies
View Related