A network log is a container to group security groups or ports for logging.
Specified resources can be logged via these event (ALL, ACCEPT or
DROP).
Network v2
List supported loggable resources
openstack network loggable resources list
[-f {csv,json,table,value,yaml}]
[-c COLUMN]
[--max-width <integer>]
[--fit-width]
[--print-empty]
[--noindent]
[--quote {all,minimal,none,nonnumeric}]
[--sort-column SORT_COLUMN]
[--long]
-f <FORMATTER>, --format <FORMATTER>¶the output format, defaults to table
-c COLUMN, --column COLUMN¶specify the column(s) to include, can be repeated
--max-width <integer>¶Maximum display width, <1 to disable. You can also use the CLIFF_MAX_TERM_WIDTH environment variable, but the parameter takes precedence.
--fit-width¶Fit the table to the display width. Implied if –max-width greater than 0. Set the environment variable CLIFF_FIT_WIDTH=1 to always enable
--print-empty¶Print empty table if there is no data to show.
--noindent¶whether to disable indenting the JSON
--quote <QUOTE_MODE>¶when to include quotes, defaults to nonnumeric
--sort-column SORT_COLUMN¶specify the column(s) to sort the data (columns specified first have a priority, non-existing columns are ignored), can be repeated
--long¶List additional fields in output
This command is provided by the python-neutronclient plugin.
Create a new network log
openstack network log create
[-f {json,shell,table,value,yaml}]
[-c COLUMN]
[--max-width <integer>]
[--fit-width]
[--print-empty]
[--noindent]
[--prefix PREFIX]
[--description <description>]
[--enable | --disable]
[--project <project>]
[--project-domain <project-domain>]
[--event <event>]
--resource-type <resource-type>
[--resource <resource>]
[--target <target>]
<name>
-f <FORMATTER>, --format <FORMATTER>¶the output format, defaults to table
-c COLUMN, --column COLUMN¶specify the column(s) to include, can be repeated
--max-width <integer>¶Maximum display width, <1 to disable. You can also use the CLIFF_MAX_TERM_WIDTH environment variable, but the parameter takes precedence.
--fit-width¶Fit the table to the display width. Implied if –max-width greater than 0. Set the environment variable CLIFF_FIT_WIDTH=1 to always enable
--print-empty¶Print empty table if there is no data to show.
--noindent¶whether to disable indenting the JSON
--prefix <PREFIX>¶add a prefix to all variable names
--description <description>¶Description of the network log
--enable¶Enable this log (default is disabled)
--disable¶Disable this log
--project <project>¶Owner’s project (name or ID)
--project-domain <project-domain>¶Domain the project belongs to (name or ID). This can be used in case collisions between project names exist.
--event <event>¶An event to store with log
--resource-type <resource-type>¶Network log type(s). You can see supported type(s) with following command: $ openstack network loggable resource list
--resource <resource>¶Security group (name or ID) for logging. You can control for logging target combination with –target option.
--target <target>¶Port (name or ID) for logging. You can control for logging target combination with –resource option.
name¶Name for the network log
This command is provided by the python-neutronclient plugin.
Delete network log(s)
openstack network log delete <network-log> [<network-log> ...]
network-log¶Network log(s) to delete (name or ID)
This command is provided by the python-neutronclient plugin.
List network logs
openstack network log list
[-f {csv,json,table,value,yaml}]
[-c COLUMN]
[--max-width <integer>]
[--fit-width]
[--print-empty]
[--noindent]
[--quote {all,minimal,none,nonnumeric}]
[--sort-column SORT_COLUMN]
[--long]
-f <FORMATTER>, --format <FORMATTER>¶the output format, defaults to table
-c COLUMN, --column COLUMN¶specify the column(s) to include, can be repeated
--max-width <integer>¶Maximum display width, <1 to disable. You can also use the CLIFF_MAX_TERM_WIDTH environment variable, but the parameter takes precedence.
--fit-width¶Fit the table to the display width. Implied if –max-width greater than 0. Set the environment variable CLIFF_FIT_WIDTH=1 to always enable
--print-empty¶Print empty table if there is no data to show.
--noindent¶whether to disable indenting the JSON
--quote <QUOTE_MODE>¶when to include quotes, defaults to nonnumeric
--sort-column SORT_COLUMN¶specify the column(s) to sort the data (columns specified first have a priority, non-existing columns are ignored), can be repeated
--long¶List additional fields in output
This command is provided by the python-neutronclient plugin.
Set network log properties
openstack network log set
[--description <description>]
[--enable | --disable]
[--name <name>]
<network-log>
--description <description>¶Description of the network log
--enable¶Enable this log (default is disabled)
--disable¶Disable this log
--name <name>¶Name of the network log
network-log¶Network log to set (name or ID)
This command is provided by the python-neutronclient plugin.
Display network log details
openstack network log show
[-f {json,shell,table,value,yaml}]
[-c COLUMN]
[--max-width <integer>]
[--fit-width]
[--print-empty]
[--noindent]
[--prefix PREFIX]
<network-log>
-f <FORMATTER>, --format <FORMATTER>¶the output format, defaults to table
-c COLUMN, --column COLUMN¶specify the column(s) to include, can be repeated
--max-width <integer>¶Maximum display width, <1 to disable. You can also use the CLIFF_MAX_TERM_WIDTH environment variable, but the parameter takes precedence.
--fit-width¶Fit the table to the display width. Implied if –max-width greater than 0. Set the environment variable CLIFF_FIT_WIDTH=1 to always enable
--print-empty¶Print empty table if there is no data to show.
--noindent¶whether to disable indenting the JSON
--prefix <PREFIX>¶add a prefix to all variable names
network-log¶Network log to show (name or ID)
This command is provided by the python-neutronclient plugin.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.