Log parse script
Hello Experts,
i am trying to write script to monitor replication, fir this i need to read the replication log file and report if my condition is matched. i have below file Code:
stream id: 8ad5917c1992e82b0c5a9577124603ab/beer-sample/beer-sample my requirement is to read stream id and its status (below line) and report only failed portion (3 lines below stream id (status, source, target). could you please help me to solve this puzzle. Thank you, |
Please review the following link Welcome to LQ
Please realize that the intention of LQ is that you learn how to help yourself. Check some of the links in my signature which refer to BASH scripting. Attempt to write a BASH script of your own, or some other means to try to resolve your problem. Post what you've tried. You say you're trying to write a script, then please post what you have thus far. Note that people do not know your level of expertise if you don't at least show what you've tried to resolve this problem on your own. If you've tried nothing except asking a question, then a suggestion is to at least perform a web search to find a potential answer for your question. |
Quote:
|
Quote:
Where did you read it? What have you tried? Show us your work. |
Hello Experts,
Thank you so much for reply. i have completed my script. Quote:
|
Does the script do what you wished it to do? If so, then it's good that you posted it and then also please mark the thread as solved. If there are problems, then it might be helpful to describe those problems.
|
I realise you have only shown a snippet of your script, but am curious how the first line shown would execute correctly if the definition is coming after it is called? Unless of course you have
multiple definitions of the same function?? (if so this could cause a headache in the future) |
All times are GMT -5. The time now is 11:23 AM. |