Faq - Ontap - Data Ontap Log Overview

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 8

1/19/2019 FAQ: ONTAP/Data ONTAP Log Overview

Knowledgebase

FAQ: ONTAP/Data ONTAP Log Overview

Document ID FA96 Answer ID 1001023

Published Date 04/25/2018 Views 294

Ratings 0 Categories Data ONTAP,ONTAP EMS

Question
What are the logging features of ONTAP/Data ONTAP?

Answer

Logging in ONTAP/Data ONTAP


Logs are event-triggered messages ranging in severity that are generated by the clustered
Data ONTAP operating system and recorded in flat text files on the cluster. Logs are the
primary resource for administrators, NetApp Support, and AutoSupport™ systems to
determine and isolate root causes for a wide range of issues.

Logs can be collected, viewed, and forwarded using several different methods. All logs are
stored in /mroot/etc/log and /mroot/etc/log/mlog, including EMS, audit logs, and
user space application logs. Logs in /mroot/etc/log rotate once per week, with a
maximum of five rotations before the oldest log is deleted. Logs in
/mroot/etc/log/mlog rotate once per day, with a maximum of 35 rotations before the
oldest log is deleted.
Event Management System
The event management system (EMS) is the clustered Data ONTAP messaging facility built
on the syslog standard. EMS simplifies the management of cluster wide events and how
the administrator chooses to be notified. EMS provides a cataloged logging mechanism,
and every event has a formal definition. This allows EMS to provide services such as
automatic spam management (such as message suppression), configurable notifications,
assistance with translating low-level data into understandable text, NVRAM backing of
messages, and automatic tagging of messages.

EMS contains thousands of predefined messages that are triggered on the corresponding
event. The dot-separated, tree-style naming scheme of the messages provides significant

https://kb.netapp.com/app/answers/answer_view/a_id/1001023/related/1 1/8
1/19/2019 FAQ: ONTAP/Data ONTAP Log Overview

accuracy pertaining to the messages’ origin and meaning. The formal event definition
describes the meaning of the event in the context of the cluster. Each event contains a
corrective action description, which can assist and accelerate the decisions the
administrator needs to make in response to the event. This standardization and accuracy
also carry over to NetApp’s manageability tools, which utilize EMS data.
Note: EMS does not contain command history or administrative auditing.

EMS events are viewed at the command line with:


cluster::> event log show
Time Node Severity Event
------------------- ---------------- ------------- ---------------------------
3/18/2014 13:00:04 cluster-01 INFORMATIONAL kern.uptime.filer: 1:00pm up
20:17

Audit Logs
Audit logging is essential for the administrative security of the clustered Data ONTAP
system. The audit log records the commands sent to the cluster, the user who is sending
them, and the success or failure of the command. This applies to command line interface
(CLI), Data ONTAP API (ONTAPI®) calls (such as commands from NetApp manageability
tools), and HTTP requests.

In Data ONTAP 8.3 and earlier, the audit log is stored in


/mroot/etc/log/mlog/command-history.log. Command history can also be viewed
in the MGWD log, located in /mroot/etc/log/mlog/mgwd.log. Beginning in ONTAP 9,
the command-history.log file is replaced by audit.log, and the mgwd.log file no
longer contains audit information.
How ONTAP implements audit logging
Management activities recorded in the audit log are included in standard AutoSupport
reports, and certain logging activities are included in EMS messages. You can also forward
the audit log to destinations that you specify, and you can display audit log files by using
the CLI or a web browser.

ONTAP logs management activities that are performed on the cluster, for example, what
request was issued, the user who triggered the request, the user's access method, and the
time of the request.
The management activities can be one of the following types:
Set requests, which typically apply to non-display commands or operations
These requests are issued when you run a create, modify, or delete command, for
instance.

https://kb.netapp.com/app/answers/answer_view/a_id/1001023/related/1 2/8
1/19/2019 FAQ: ONTAP/Data ONTAP Log Overview

Set requests are logged by default.


Get requests, which retrieve information and display it in the management interface
These requests are issued when you run a show command, for instance.
Get requests are not logged by default, but you can use the security audit
modify command to control whether get requests sent from the ONTAP CLI (-
cliget) or from the ONTAP APIs (-ontapiget) are logged in the file.

ONTAP records management activities in the /mroot/etc/log/mlog/audit.log file of


a node. Commands from the three shells for CLI commands—the clustershell, the
nodeshell, and the non-interactive systemshell (interactive systemshell commands are not
logged)—as well as API commands are logged here. Audit logs include timestamps to
show whether all nodes in a cluster are time synchronized.
The audit.log file is sent by the AutoSupport tool to the specified recipients. You can
also forward the content securely to external destinations that you specify; for example, a
Splunk or a syslog server.
The audit.log file is rotated daily. The rotation also occurs when it reaches 100 MB in
size, and the previous 34 copies are preserved (with a maximum total of 35 files). When
the audit file performs its daily rotation, no EMS message is generated. If the audit file
rotates because its file size limit is exceeded, an EMS message is generated.

You can use the security audit log show command to display audit entries for
individual nodes or merged from multiple nodes in the cluster. You can also display the
content of the /mroot/etc/log/mlog directory on a single node by using a web
browser.
AutoSupport
The AutoSupport (ASUP™) system is the clustered Data ONTAP automated health-
monitoring facility that enables error reporting and, in some instances, can generate a
NetApp Support case. Reporting might be triggered by an error condition using an EMS
event or by schedule. ASUP alerts can be sent to the administrator’s internal IT
organization using e-mail and/or to NetApp Support for automated analysis. The ASUP
message contains important log data from EMS and other user space applications. Exactly
which logs ASUP collects is discussed in the next section.
Other Logs
EMS events follow the syslog standard because they have the ability to be forwarded to a
syslog server for real-time monitoring and because EMS events are the most relevant
events to an administrator. The rest of the logs generated by the clustered Data ONTAP
operating system are generated from user space applications that are constantly logging
their activity. These logs are lower level and not targeted for administrators, but are mostly
utilized by NetApp Support, development, and QA.

https://kb.netapp.com/app/answers/answer_view/a_id/1001023/related/1 3/8
1/19/2019 FAQ: ONTAP/Data ONTAP Log Overview

Table 1) Logs in /mroot/etc/log/

Log or directory Description

· Sent to ASUP
acp/ · Shelf Alternate Control Path Management (ACP)
logs

· Logs node shell commands (i.e., node run


commands)
· Equivalent is command-history.log in 8.3 and
auditlog.log
earlier.
· Sent in Autosupport starting in clustered Data
ONTAP 8.2.2

· Directory for the compressed archives containing


autosupport/
the log files to be sent to ASUP

backup.log · Log for NDMP backup procedures such as SMTape

bcomka/ · Debug-level logs for the SAN kernel module

clone.log · Logs LUN cloning

· EMS events
ems, ems.log
· Sent in Autosupport

· Binary formatted file, used by NetApp Support in


ems_persist
certain circumstances

· Memory information, pertinent mostly for


leak_data, leak_data_filtered
debugging purposes

· Node level logs


messages, messages.log · Logs are links to
/mroot/etc/log/mlog/messages.log

· Contents of this directory are sent to ASUP ·


mlog/
Contains management component application logs

named.log · Name service logs

nbu_snapvault.log · SnapVault® logs

playlist_diag · Logs absent FileIDs from the WAFL® playlist

plxcoeff/ · Contains PLX PCI-E switch logs · Sent to ASUP

https://kb.netapp.com/app/answers/answer_view/a_id/1001023/related/1 4/8
1/19/2019 FAQ: ONTAP/Data ONTAP Log Overview

starting in clustered Data ONTAP 8.2.1

rastrace/ · Debug SAN trace logs

servprocd/ · Service processor logs

shelflog/ · Shelf logs

sis, sis.log · Deduplication logs

ssram/ · System scratchpad RAM log

stats/ · Performance-related logs

snapmirror.log,
snapmirror_audit.log, · SnapMirror® logs
snapmirror_error.log

· Logs for the treecompare process that compare


treecompare.log data integrities in volumes and/or qtrees using
Snapshot® copies

volread.log · Logs for the volread engine used by SnapMirror

Table 2) Logs in /mroot/etc/log/mlog/

Log or directory Description

.last_rotate.log · Records history of log rotations

· Logs history of access to the apache server


apache_access.log · Contains history of GET requests for log files
over HTTP(S)

apache_error.log · Logs apache errors

· Audit log for ONTAP 9.0 and later


· Records commands from CLI, ONTAPI, HTTP
audit.log
· Always records set requests, but can toggle
recording of get requests

· Logs for the BCOM daemon, which handles SAN


bcomd.log interaction between the management component
and SCSI blade

command-history.log · Audit log for clustered Data ONTAP 8.3 and


https://kb.netapp.com/app/answers/answer_view/a_id/1001023/related/1 5/8
1/19/2019 FAQ: ONTAP/Data ONTAP Log Overview

earlier
· Records commands from CLI, ONTAPI, HTTP
· Always records set requests, but can toggle
recording of get requests

debug.log · Logs at the DEBUG severity level

fpolicy.log · Logs for FPolicy®

hashd.log · Logs for the BranchCache hash daemon

· Contains list of jobs that the job manager has


jm-restart.log
restarted

memsnap-*.log (asterisk is a
wildcard, because there are several · Contains memory information
types of memsnap logs)

· The messages log in clustered Data ONTAP


· Contains important logs throughout cluster
messages.log
· Some overlap with EMS, but no EMS features
such as suppression

· Contains logs from the management component


mgwd.log · Records set requests by default, but can be
toggled

ndmpd.log · Contains logs for the NDMP daemon

· Contains logs for the NOTIFY daemon, which


notifyd.log
handles ASUP

· Contains logs for the PHP process


php.log · Contains history of syncing logs across nodes in
the cluster

· Contains logs for the SecD daemon, which


secd.log handles various authentication tasks, such as NAS
authentication

servprocd.log · Contains logs on the service processor daemon

sktlog/ · Debug-level logs for the main kernel

sktlogd.log · Debug-level log for the main kernel

· Contains logs related to abnormal events from


spdebug.log
the service processor

spmd.log
https://kb.netapp.com/app/answers/answer_view/a_id/1001023/related/1 6/8
1/19/2019 FAQ: ONTAP/Data ONTAP Log Overview

· Contains logs on the service process manager


daemon, which monitors user space applications
to make sure they are healthy and running

· Contains logs related to interfaces and


vifmgr.log
networking

· Contains logs on the volume location database


vldb.log
application

Note: If you are unable to view the entire content of this article please log in to
kb.netapp.com
NetApp provides no representations or warranties regarding the accuracy or reliability or
serviceability of any information or recommendations provided in this publication or with
respect to any results that may be obtained by the use of the information or observance of
any recommendations provided herein. The information in this document is distributed AS IS
and the use of this information or the implementation of any recommendations or techniques
herein is a customer's responsibility and depends on the customer's ability to evaluate and
integrate them into the customer's operational environment. This document and the
information contained herein may be used solely in connection with the NetApp products
discussed in this document.

Recently Viewed
 OSSV: What are the Operating System Backup Issues?
 What ports should be open for SnapVault for Open Systems (OSSV) to work?
 What are the appropriate log files to collect for OSSV troubleshooting?
 Best Practices for Network Configuration with NetApp Storage Systems
 Top 10 SnapMirror issues and solutions

Translations
Deutsch
日本語
中文
This web content has been translated for your convenience using a machine translation
software powered by SDL. Reasonable efforts have been made to provide an accurate
translation, however, no automated translation is perfect nor is it intended to replace human
translators.

https://kb.netapp.com/app/answers/answer_view/a_id/1001023/related/1 7/8
1/19/2019 FAQ: ONTAP/Data ONTAP Log Overview

ADDITIONAL RESOURCES

Get Support Follow on Twitter

Bug Tools NetApp KB TV

Knowledgebase Feedback

COMPANY SALES

Our Story How To Buy

News@NetApp Find A Partner

Events US Public Sector Contracts

Customer Stories E-Based OEM Partners

Investors NetApp Capital Solutions

Careers Executive Briefing Center

LEGAL RESOURCES

Privacy & Cookie Policy Subscriptions

Copyright Library

Trademarks Site Map

Community Terms of Use

Slavery and Human Trafficking Statement

Accessibility

© 2019 NetApp

Have feedback for our website? Let us know

https://kb.netapp.com/app/answers/answer_view/a_id/1001023/related/1 8/8

You might also like