2.7. hammer 审计


搜索审计跟踪。

Usage:
    hammer audit [OPTIONS] SUBCOMMAND [ARG] ...

Parameters:
 SUBCOMMAND                    Subcommand
 [ARG] ...                     Subcommand arguments

Subcommands:
 info, show                    Show an audit
 list, index                   List all audits

Options:
 -h, --help                    Print help

2.7.1. hammer 审计信息

显示审计

Usage:
    hammer audit <info|show> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field sets only. (See below)
                                         Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                         JSON is acceptable and preferred way for complex parameters
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

Predefined field sets:
  --------------------------|-----|---------|-----
  FIELDS                    | ALL | DEFAULT | THIN
  --------------------------|-----|---------|-----
  Id                        | x   | x       | x
  At                        | x   | x       |
  Ip                        | x   | x       |
  User                      | x   | x       |
  Action                    | x   | x       |
  Audit type                | x   | x       |
  Audit record              | x   | x       |
  Request uuid              | x   | x       |
  Audited changes/attribute | x   | x       |
  Audited changes/value     | x   | x       |
  Audited changes/old       | x   | x       |
  Audited changes/new       | x   | x       |
  --------------------------|-----|---------|-----

2.7.2. hammer 审计列表

列出所有审计

Usage:
    hammer audit <list|index> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field sets only. (See below)
                                         Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                         JSON is acceptable and preferred way for complex parameters
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --order ORDER                           Sort field and order, eg. ‘id DESC’
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --page PAGE                             Page number, starting at 1
 --per-page PER_PAGE                     Number of results per page to return, 'all' to return all results
 --search SEARCH                         Filter results
 -h, --help                              Print help

Predefined field sets:
  -------------|-----|---------|-----
  FIELDS       | ALL | DEFAULT | THIN
  -------------|-----|---------|-----
  Id           | x   | x       | x
  At           | x   | x       |
  Ip           | x   | x       |
  User         | x   | x       |
  Action       | x   | x       |
  Audit type   | x   | x       |
  Audit record | x   | x       |
  Request uuid | x   |         |
  -------------|-----|---------|-----

Search / Order fields:
  action                 string
  auditable_id           integer
  changes                text
  comment                string
  host                   string
  hostgroup              string
  hostgroup_title        string
  id                     integer
  interface_fqdn         string
  interface_ip           string
  interface_mac          string
  location               string
  location_id            integer
  organization           string
  organization_id        integer
  os                     string
  os_title               string
  parameter              string
  partition_table        string
  provisioning_template  string
  puppetclass            string
  remote_address         string
  request_uuid           string
  setting                string
  time                   datetime
  type                   Values: role, ptable, provisioning_template, user, filter, subnet, remote_execution_feature, hostgroup, http_proxy, katello/repository, smart_proxy, katello/host/content_facet, katello/hostgroup/content_facet, katello/host/subscription_facet, usergroup, katello/content_view, katello/kt_environment, architecture, compute_attribute, domain, medium, environment, puppetclass, model, personal_access_token, ssh_key, compute_profile, bookmark, config_group, host_class, image, key_pair, report_template, realm, job_template, job_invocation, ansible_role, discovery_rule, katello/activation_key, katello/gpg_key, katello/host_collection, katello/product, katello/sync_plan, foreman_virt_who_configure/config, foreman_openscap/policy, foreman_openscap/scap_content, foreman_openscap/tailoring_file, foreman_openscap/oval_content, foreman_openscap/oval_policy, lookup_value, hostgroup_class, katello/root_repository, auth_source, compute_resource, host, interface, location, organization, os, override_value, parameter, partition_table, setting, smart_class_parameter
  user                   string
  username               string
Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.