Search This Blog

Thursday, 21 January 2021

Searching a log files in Linux

 Being a Developer and Administrator, It is our everyday duty to analyze log files of bi server, scheduler, presentation or nodemanager log. 

When logs are growing, it is difficult to identify and track it. For e.g: When hundred Agents are scheduled, it is creating 200 files everyday with .log and .err files in scheduler log location. 

When you want to search yesterday or today or 10 days before with the particular agent log file, the following syntax will help you to bring up the files.

[logs]$ find . -iname "Agent-111-*" -atime -2 -type f -ls

The above syntax will list out all the files starts with Agent id 111 before 2 days.

Customize the syntax based on your need.


Cheers!

Bose 

What is Oracle Database Link and How to create database link (DB Link)

 https://www.oracletutorial.com/oracle-administration/oracle-create-database-link/

Recent Posts