Skip to content

Instantly share code, notes, and snippets.

@ssbarnea
Last active February 19, 2020 12:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ssbarnea/132f6763403d78ae26e40eff80d2ea90 to your computer and use it in GitHub Desktop.
Save ssbarnea/132f6763403d78ae26e40eff80d2ea90 to your computer and use it in GitHub Desktop.
  • artcl_commands_extras - A dictionary of additional commands to be run during collection. Defined keys will override implicit ones from defaults artcl_commands which is not expected to be changed by user.

    Top level keys are used to uniqly identify a command and determine the default output filename, unless is mentioned via capture_file property.

    cmd contains the shell command that would be run.

    collect_log_type is a the category from collect_log_types list, role will run only commands from that list.

artcl_commands_extras:
  key1:
    cmd: df
    collect_log_type: system
    # will save output to /var/log/extras/key1.log
  key2:
    cmd: touch /foo.txt
    collect_log_type: openstack
    capture_disable: true # <-- disable implicit std redirection
  key3:
    cmd: mount -a
    collect_log_type: system
    capture_file: /mounts.txt  # <-- custom capture file location
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment