code: def stats(syslog_ng_sbin_dir=None):
      '''
      Returns statistics from the running syslog-ng instance. If
      syslog_ng_sbin_dir is specified, it is added to the PATH during the
      execution of the command syslog-ng-ctl.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' syslog_ng.stats
          salt '*' syslog_ng.stats /home/user/install/syslog-ng/sbin
      '''
      try:
          ret = _run_command_in_extended_path(syslog_ng_sbin_dir,
                                              'syslog-ng-ctl',
                                              ('stats',))
      except CommandExecutionError as err:
          return _format_return_data(retcode=-1, stderr=six.text_type(err))
  
      return _format_return_data(ret['retcode'],
                                 ret.get('stdout'),
                                 ret.get('stderr')f stats(syslog_ng_sbin_dir=None):
      '''
      Returns statistics from the running syslog-ng instance. If
      syslog_ng_sbin_dir is specified, it is added to the PATH during the
      execution of the command syslog-ng-ctl.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' syslog_ng.stats
          salt '*' syslog_ng.stats /home/user/install/syslog-ng/sbin
      '''
      try:
          ret = _run_command_in_extended_path(syslog_ng_sbin_dir,
                                              'syslog-ng-ctl',
                                              ('stats',))
      except CommandExecutionError as err:
          return _format_return_data(retcode=-1, stderr=six.text_type(err))
  
      return _format_return_data(ret['retcode'],
                                 ret.get('stdout'),
                                 ret.get('stderr'))
docs: Returns statistics from the running syslog-ng instance. If
      syslog_ng_sbin_dir is specified, it is added to the PATH during the
      execution of the command syslog-ng-ctl.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' syslog_ng.stats
          salt '*' syslog_ng.stats /home/user/install/syslog-ng/sbin