coreReadFilePath
type object
Reference to an “os.read-file” collect spec by path
analyze:
v1:
- registerVariables:
- coreReadFilePath:
paths:
- /proc/cpuinfo
regexpCaptureAll:
regexp: 'processor\s+:\s+(\d+)'
index: 1
Required Parameters
paths
- A list of paths as a reference to the “os.read-file” collect spec
Optional Parameters
eval
- Evaluates a templated stringidentity
- The fileregexpCapture
- Evaluates a regular expression on the file. Returns the first matchregexpCaptureAll
- Evaluates a regular expression on the file. Returns all matchesscannable
- Will read the file one line at a time and apply the variable expressions