You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/operator-nexus/howto-kubernetes-cluster-log-collector-script.md
+43-4Lines changed: 43 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,17 +13,56 @@ ms.custom: template-how-to
13
13
14
14
Microsoft support may need deeper visibility within the Nexus Kubernetes cluster in certain scenarios. To facilitate this, a log-collection script is available for you to use. This script retrieves all the necessary logs, enabling Microsoft support to gain a better understanding of the issue and troubleshoot it effectively.
15
15
16
-
The log collection script is designed to retrieve different kinds of system and application logs from the node. It gathers common operating system logs, details about the system’s mount points and volumes, and logs related to Multus—a multi-network plugin for Kubernetes, if they're present.
16
+
## What it collects?
17
17
18
-
Among the system-related logs, it captures kernel logs, sysctl information, and IP Virtual Server administration data. Additionally, the script collects networking information, including connection tracking details, Container Network Interface (CNI) configuration (if available), and interface settings.
18
+
The log collector script is designed to comprehensively gather data across various aspects of the system for troubleshooting and analysis purposes. Below is an overview of the types of diagnostic data it collects:
19
19
20
-
Furthermore, the script does network connectivity tests by pinging the default gateway and the API server, provided a kubeconfig file exists.
20
+
### System and Kernel Diagnostics
21
+
22
+
- Kernel Information: Logs, human-readable messages, version, and architecture, for in-depth kernel diagnostics.
23
+
- Operating System Logs: Essential logs detailing system activity and container logs for system services.
24
+
25
+
### Hardware and Resource Usage
26
+
27
+
- CPU and IO Throttled Processes: Identifies throttling issues, providing insights into performance bottlenecks.
28
+
- Network Interface Statistics: Detailed statistics for network interfaces to diagnose errors and drops.
29
+
30
+
### Software and Services
31
+
32
+
- Installed Packages: A list of all installed packages, vital for understanding the system's software environment.
33
+
- Active System Services: Information on active services, process snapshots, and detailed system and process statistics.
34
+
- Container Runtime and Kubernetes Components Logs: Logs for Kubernetes components and other vital services for cluster diagnostics.
35
+
36
+
### Networking and Connectivity
37
+
38
+
- Network Connection Tracking Information: Conntrack statistics and connection lists for firewall diagnostics.
39
+
- Network Configuration and Interface Details: Interface configurations, IP routing, addresses, and neighbor information.
40
+
- Multicard Interface Configuration Logs: Logs related to the configuration of multi-network card interfaces.
41
+
- Network Connectivity Tests: Tests external network connectivity and Kubernetes API server communication.
42
+
- DNS Resolution Configuration: DNS resolver configuration for diagnosing domain name resolution issues.
43
+
- Networking Configuration and Logs: Comprehensive networking data including connection tracking and interface configurations.
44
+
- Container Network Interface (CNI) Configuration: Configuration of CNI for container networking diagnostics.
45
+
46
+
### Security and Compliance
47
+
48
+
- SELinux Status: Reports the SELinux mode to understand access control and security contexts.
49
+
- IPtables Rules: Configuration of IPtables rulesets for insights into firewall settings.
50
+
51
+
### Storage and Filesystems
52
+
53
+
- Mount Points and Volume Information: Detailed information on mount points, volumes, disk usage, and filesystem specifics.
54
+
55
+
### Configuration and Management
56
+
57
+
- System Configuration: Sysctl parameters for a comprehensive view of kernel runtime configuration.
58
+
- Kubernetes Configuration and Health: Kubernetes setup details, including configurations and service listings.
59
+
- Container Runtime Information: Configuration, version information, and details on running containers.
60
+
- Container Runtime Interface (CRI) Information: Operations data for container runtime interface, aiding in container orchestration diagnostics.
21
61
22
62
## Prerequisite
23
63
24
64
Before proceeding, ensure that you have [SSH access to the Nexus Kubernetes cluster node](./howto-kubernetes-cluster-connect.md#azure-arc-for-servers).
25
65
26
-
27
66
## Execution steps
28
67
29
68
- Connect to the Nexus Kubernetes cluster node using SSH.
0 commit comments