Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for checkForNativeLogger (0.17 sec)

  1. pkg/kubelet/kubelet_server_journal_others.go

    func getLoggingCmd(n *nodeLogQuery, services []string) (string, []string, error) {
    	return "", []string{}, errors.New("Operating System Not Supported")
    }
    
    // checkForNativeLogger on unsupported operating systems returns false
    func checkForNativeLogger(ctx context.Context, service string) bool {
    	return false
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 15:54:36 UTC 2023
    - 1K bytes
    - Viewed (0)
  2. pkg/kubelet/kubelet_server_journal_windows.go

    	}
    	psCmd += " | Format-Table -AutoSize -Wrap"
    
    	args = append(args, psCmd)
    
    	return powershellExe, args, nil
    }
    
    // checkForNativeLogger always returns true for Windows
    func checkForNativeLogger(ctx context.Context, service string) bool {
    	cmd := exec.CommandContext(ctx, powershellExe, []string{
    		"-NonInteractive", "-ExecutionPolicy", "Bypass", "-Command",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 15:54:36 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  3. 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)
  4. 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