10-23-2013
Shell Script for viewing multiple logs from multiple server
I am new to Shell scripting and below is my requirement.
I need to search some specific word e.g. "exception" or "transaction" from log file.
We have multiple env e.g. Level1 , Level2 etc and each env have Multiple boxes e.g. For Level 1 env we have "test11.test.com" , "test12.test.com".
Each box has multiple logs with box specific name e.g "stdout_test11.log" , "transaction_test11.log".
We need to SSH to each box.
So what is the best way and can we configure the things like Level , Box , Log name ?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
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. Shell Programming and Scripting
Hi Gurus,
I'm a unix newbie and I would like to connect to multiple unix servers from unix server using shell script i.e from server a to server b,c,d etc. I want to copy the files from unix server a to server b, c, d. I can access staright using ssh without the need to have password and user... (5 Replies)
Discussion started by: sexyTrojan
5 Replies
3. Shell Programming and Scripting
I am currently trying to develop a script to connect to mulltiple servers, reading specifc data from log files on the servers and append the data from each file into a single tab delimited row. So, at the end I am planning to have a report with all the extracted data with each row per server. I am... (5 Replies)
Discussion started by: scriptingnewbie
5 Replies
4. Shell Programming and Scripting
Hey guys. I know pratically 0 about Linux, so could anyone please give me instructions on how to accomplish this ?
The distro is RedHat 4.1.2 and i need to find and replace a multiple lines string in several php files across subdirectories.
So lets say im at root/dir1/dir2/ , when i execute... (12 Replies)
Discussion started by: spfc_dmt
12 Replies
5. Shell Programming and Scripting
Hi all,
I am developing a log parsing agent in perl to send windows Event logs to Zenoss Monitoring tool. Using Win32::EventLog i can able to get the Event messages but only one Eventype eg Application or System could able to parse at a time. Can you please help to how to open mutiple eventlogs... (3 Replies)
Discussion started by: kar_333
3 Replies
6. Shell Programming and Scripting
Hi,
I have to find a mount point called... /opt/recall on multiple servers.. .Could someone give me a suggestion on how I could do this? (2 Replies)
Discussion started by: gartie
2 Replies
7. Shell Programming and Scripting
Hi folks,
I have logs folder in which different type of logs are generated , I am monitoring them by the below command
tail -f *.log
but I want that if exception come in any of the logs then it should be catch so what i should prefix with tail -f *.log so that it imeediatley catches and... (3 Replies)
Discussion started by: punpun66
3 Replies
8. Red Hat
I have a tar file uploaded in a FTP server and it needs to be deployed in some 300 linux machines in a path like /opt/oracle/scripts and untar the file. it needs to be executed with one shell script by executing on all the the servers. this tar needs to deployed by doing pbrun su - user.... (4 Replies)
Discussion started by: appoo4
4 Replies
9. Shell Programming and Scripting
Hi All,
I am having a log file
ERROR 2016-12-08 10:22:23.542 some data
**** some data******
**** some data******
**** some data******
DEBUG 2016-12-08 10:23:23.542 some data
**** some data******
**** some data******
**** some data******
when i grep the log file with ERROR am getting... (3 Replies)
Discussion started by: mohanalakshmi
3 Replies
10. UNIX for Beginners Questions & Answers
Hello All,
just wanted to export multiple tables from oracle sql using unix shell script to csv file and the below code is exporting only the first table.
Can you please suggest why? or any better idea?
export FILE="/abc/autom/file/geo_JOB.csv"
Export= `sqlplus -s dev01/password@dEV3... (16 Replies)
Discussion started by: Hope
16 Replies
LEARN ABOUT DEBIAN
box2_6
Box(3I) InterViews Reference Manual Box(3I)
NAME
Box, HBox, VBox - tile interactors in a box
SYNOPSIS
#include <InterViews/box.h>
DESCRIPTION
A box is a scene of interactors that are tiled side-by-side in the available space. Interactors are placed left-to-right in a horizontal
box, and top-to-bottom in a vertical box.
A box will try to stretch or shrink the interactors inside it to fit the available space. The natural size of a box is the sum of its ele-
ments along the major axis, and the maximum along its minor axis. A box's stretchability (shrinkability) is the sum of its elements along
its major axis and the minimum of its elements along its minor axis.
PUBLIC OPERATIONS
HBox(...)
VBox(...)
Create a new box. Zero to seven interactors may be passed as arguments; the interactors are inserted into the box.
void Align(Alignment)
Set the alignment mode that the box uses to place elements along the minor axis. The default alignment for an hbox is Bottom; other
choices are Top and Center. The default alignment for a vbox is Left; other choices are Right and Center.
void Insert(Interactor*)
Append an interactor to the box. Components of an hbox (vbox) will appear left-to-right (top-to-bottom) in the order in which they
are inserted.
void Change(Interactor*)
Notify the box that the given interactor's shape has changed. If change propagation is true, the box will modify its own shape to
reflect the change and notify its parent. Regardless of propagation, the box will recompute the positions of the component interac-
tors and update any that have changed.
void Remove(Interactor*)
Take an element of out a box. Remove does not cause any immediate change to the other components in the box; the Change operation
must be called after one or more Removes to update the component positions.
SEE ALSO
Glue(3I), Interactor(3I), Scene(3I), Shape(3I)
InterViews 15 June 1987 Box(3I)