readlog

package
v1.17.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2026 License: MIT Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package readlog records what a collector reads from a host: each file and directory it opens or looks at, and each command it runs. Sources gives a collector a host with nothing on it, so a collector reads what it would try first on a real host, and the log says what that was.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Log

type Log struct {
	// contains filtered or unexported fields
}

Log is what one collector read.

func Sources

func Sources(
	family string,
) (source.Sources, *Log)

Sources is an empty host of family, and the log of what is read from it.

func (*Log) Commands

func (l *Log) Commands() []string

Commands are the commands that the collector ran, each as its program and its arguments, sorted.

func (*Log) Files

func (l *Log) Files() []string

Files are the paths that the collector read or looked at, sorted.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL