Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for checkForNativeLogger (0.22 sec)

  1. pkg/kubelet/kubelet_server_journal_linux.go

    	}
    
    	if n.Boot != nil {
    		args = append(args, "--boot", fmt.Sprintf("%d", *n.Boot))
    	}
    
    	return "journalctl", args, nil
    }
    
    // checkForNativeLogger checks journalctl output for a service
    func checkForNativeLogger(ctx context.Context, service string) bool {
    	// This will return all the journald units
    	cmd := exec.CommandContext(ctx, "journalctl", []string{"--field", "_SYSTEMD_UNIT"}...)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jan 11 01:09:28 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  2. pkg/kubelet/kubelet_server_journal.go

    		// Check the journalctl output to figure if the service is using journald or not. This is not needed in the
    		// Get-WinEvent case as the command returns an error if a service is not logging to the Application provider.
    		if checkForNativeLogger(ctx, service) {
    			nativeLoggers = append(nativeLoggers, service)
    		} else {
    			fileLoggers = append(fileLoggers, service)
    		}
    	}
    	return nativeLoggers, fileLoggers
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 26 18:56:28 UTC 2023
    - 13.5K bytes
    - Viewed (0)
Back to top