How to set up and use OMC Log Analytics --Linux version -

Log Analytics of Oracle Management Cloud is a service that can aggregate and analyze various logs such as OS, Middleware, Database, etc. in a cross-cutting manner. Here, we will introduce the setting procedure and basic analysis method for actually acquiring typical Linux logs.

--Select Log Analytics-> Log Management-> Entity from the menu icon in the upper left image.png

--Click on New Association image.png

--Select the entity type as Host (Linux) and click Add Entity image.png

--Host registered as an entity can be selected, so check it and click Select image.png

--Choose to continue image.png

--Select Linux Secure Logs and Linux SysLogs Logs and click the Continue button at the bottom image.png

--Click Entity Association image.png

--This completes the settings for Cloud Agent to collect two OS log files. image.png

--The opc user who installed Cloud Agent does not have access permission to the log file in the / var / log directory, so grant reference permission with the following command.

$ sudo setfacl -m u:opc:r /var/log/messages*
$ sudo setfacl -m u:opc:r /var/log/secure*

--When Syslog and SecureLog are displayed on the Log Analytics screen, the settings are OK. image.png

--Select a record with a histogram from the visualization image.png

--Time series log output status image.png

--When you select a cluster from the visualization, the logs are clustered (classified). It makes it easier to identify target records, such as potentially problematic records and rarely occurring records. image.png

Cloud Agent periodically sends updated log records to OMC, and the log data is always up to date. This time, I set up to import basic Linux logs, but in addition to this, Log Analytics has a log parser prepared in advance.

Available List of log parsers

If you have a unique log format that is not here, you can also capture and analyze the log by creating your own custom parser. Below you will find instructions on how to manually capture logs and a custom parser.

Click here for information related to Oracle Management Cloud (https://qiita.com/western24/items/1e44bfcaa77f3251a263)

Recommended Posts

How to set up and use OMC Log Analytics --Linux version -
Beginners! Basic Linux commands and how to use them!
How to set up and compile your Cython environment
How to set up Ubuntu for Windows Subsystem for Linux 2 (WSL2)
How to install and use Tesseract-OCR
How to use .bash_profile and .bashrc
How to install and use Graphviz
How to check Linux OS version
How to set up WSL2 on Windows 10 and create a study environment for Linux commands
How to set up the development environment of ev3dev [Windows version]
[Linux] How to subdivide files and folders
How to set up SVM using Optuna
[Linux] How to use the echo command
How to use the Linux grep command
python: How to use locals () and globals ()
How to use Python zip and enumerate
How to use is and == in Python
How to use pandas Timestamp and date_range
How to use lists, tuples, dictionaries, and sets
Introducing Sinatra-style frameworks and how to use them
How to set up Random forest using Optuna
How to set up Random forest using Optuna
How to switch between Linux and Mac shells
[Python] How to use hash function and tuple.
How to set up a local development server
How to install Cascade detector and how to use it
How to set up public key authentication in ssh
How to use xml.etree.ElementTree
How to use virtualenv
[Python] [Django] How to use ChoiceField and how to add options
How to use Seaboan
How to use image-match
How to use shogun
How to use Pandas 2
How to set up a Python environment using pyenv
How to use Virtualenv
How to use numpy.vectorize
How to use pytest_report_header
How to set up a VPN gateway to establish a connection between Alibaba Cloud and AWS
How to use partial
How to use SymPy
How to use x-means
How to use WikiExtractor.py
How to use IPython
Linux user addition, how to use the useradd command
How to allow nologin users to log in on Linux
How to use the grep command and frequent samples
How to use virtualenv
How to use Matplotlib
How to use iptables
How to use numpy
Julia Quick Note [01] How to use variables and constants
How to use TokyoTechFes2015
How to use venv
How to use dictionary {}
How to use Pyenv
[Introduction to Udemy Python3 + Application] 30. How to use the set
How to use argparse and the difference between optparse
How to use list []
How to use python-kabusapi
How to use Decorator in Django and how to make it