coreReadFilePath

Reference to an "os.read-file" collect spec by path

This content is associated with a legacy version of the Replicated product. For the current Replicated product documentation, see docs.replicated.com.

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 string

  • identity - The file

  • regexpCapture - Evaluates a regular expression on the file. Returns the first match

  • regexpCaptureAll - Evaluates a regular expression on the file. Returns all matches

  • scannable - Will read the file one line at a time and apply the variable expressions