Fortinet Comprehensive Guide on Config Log Syslogd Setting and Fortigate Syslog CLI Commands

Page 54

log syslogd setting

config CLI commands

log syslogd setting

Use this command to configure the FortiBridge unit to send a syslog message to a remote syslog server when action on failure is set to send a syslog message.

Command syntax pattern

config log syslogd setting set <keyword> <variable>

end

config log syslogd setting unset <keyword>

get log syslogd setting

show log syslogd setting

Keywords and variables

Description

Default

 

 

 

csv {disable enable}

Enable formatting log messages in Comma Separated Value

disable

 

(CSV) format. If you do not enable CSV format the FortiBridge

 

 

unit produces plain text log messages.

 

 

 

 

facility {alert audit

Enter the facility type, which identifies the source of the log

local7

auth authpriv clock

message to the syslog server. You might want to change facility

 

cron daemon ftp

to distinguish log messages from different FortiBridge units.

 

 

 

kernel local0 local1

 

 

local2 local3

 

 

local4 local5 local6

 

 

local7 lpr mail

 

 

news ntp syslog

 

 

user uucp}

 

 

port <port_integer>

Enter the port number for communication with the syslog server.

514

server <address_ipv4>

Enter the IP address of the syslog server that stores the logs.

No default.

status {disable enable}

Enter enable to enable logging to a remote syslog server.

disable

Example

This example shows how to enable logging to a remote syslog server, configure an IP address and port for the server, and enable logging in CSV format.

config log syslogd setting

set status enable

set server 220.210.200.190 set port 601

set csv enable end

This example shows how to display the log setting for logging to a remote syslog server.

get log syslogd setting

This example shows how to display the configuration for logging to a remote syslog server.

show log syslogd setting

If the show command returns you to the prompt, the settings are at default.

Related Commands

probe setting

54

FortiBridge Version 3.0 Administration Guide

09-30000-0163-20061109

Image 54
Contents M i n i s t r a t i o n G u i d e Trademarks Regulatory complianceContents Configuration and operating procedures Using the CLIConfig CLI commands Execute CLI commands IndexPage About FortiBridge About this documentFortinet tools and documentation CD Customer service and technical supportFortinet documentation Fortinet Knowledge CenterFortiBridge operating principles Example FortiBridge applicationConnecting the FortiBridge unit Connecting the FortiBridge-1000 copper gigabit ethernetNormal mode operation Connecting the FortiBridge-1000F fiber gigabit ethernetHow the FortiBridge unit monitors the FortiGate unit Normal mode operation Probes and FortiGate firewall policiesEnabling probes to detect FortiGate hardware failure Enabling probes to detect FortiGate software failureProbe interval and probe threshold Bypass mode operation FortiBridge power failureExample FortiGate HA cluster FortiBridge application Example configuration with other FortiGate interfaces Example configuration with other FortiGate interfaces Example configuration with other FortiGate interfaces FortiBridge-1000 Package contents FortiBridge unit basic informationFortiBridge-1000F Package contents Mounting instructionsTechnical specifications LED indicatorsConnectors Factory default configurationConnecting and turning on the FortiBridge unit Connecting and turning on the FortiBridge-1000 unitConnecting and turning on the FortiBridge-1000F unit To connect and turn on the FortiBridge-1000 unitTo connect and turn on the FortiBridge-1000F unit FortiBridge-1000 login Connecting to the command line interface CLIConnecting to the FortiBridge console To connect to the FortiBridge console for the first timeTo connect to the CLI using Telnet Completing the basic FortiBridge configurationConnecting to the FortiBridge CLI using Telnet Welcome FortiBridge-1000 #Changing the management IP address Adding an administrator passwordTo add an administrator password To change the management IP addressTo change DNS server IP addresses Changing DNS server IP addressesAdding static routes To add static routesAllowing management access to the EXT 1 interface Adding administrator accountsChanging the system time and date Resetting to the factory default configuration Installing FortiBridge unit firmwareTo reset to factory defaults from the FortiBridge CLI Execute restore image FBG1000-v10-build010-FORTINET.out To upgrade to a new firmware versionExecute restore image namestr tftpip Upgrading to a new firmware versionReverting to a previous firmware version To revert to a previous firmware versionHit any key to stop autoboot Installing firmware from a system rebootTo install firmware from a system reboot Enter Tftp server addressEnter firmware image file image.out Get system statusConfiguration and operating procedures Example network settingsConfiguring FortiBridge probes Configuring FortiBridge probesProbe settings To configure probe settingsTo enable and configure FortiBridge probes Config probe probelist ping set status enable EndEnabling probes To verify that probes are functioning Config probe probelist Imap set status enable EndVerifying that probes are functioning Go to System Status SessionConfiguring FortiBridge alerts Tuning the failure threshold and probe intervalFortiBridge alert email To configure alert emailConfig alertemail setting set server mail.myorg.com End FortiBridge syslogTo configure FortiBridge syslog Config log syslogd setting set server EndFortiBridge Snmp Config system snmp community edit Set name snmp1 End Recovering from a FortiGate failureTo add and enable an Snmp community To resume normal operation from bypass modeExecute switch-mode Manually switching between FortiBridge operating modesBacking up and restoring the FortiBridge configuration To back up the FortiBridge configurationBacking up and restoring the FortiBridge configuration Backing up and restoring the FortiBridge configuration To use the CLI to configure SSH or Telnet access Connecting to the FortiBridge CLI using SSH or TelnetSetting administrative access for SSH or Telnet CLI basicsSet allowaccess ping telnet ssh Other access methodsConnecting to the FortiBridge CLI using SSH Get system interface namestrTo connect to the CLI using SSH Connecting to the FortiBridge CLI using SSH or Telnet Config CLI commands Alertemail setting Command syntax patternExamples Related Commands Log syslogd setting ExampleGet probe probelist http Probe probelist ping http ftp pop3 smtp imapGet probe probelist Show probe probelistProbe setting SyslogSystem accprofile Rw wGet system accprofile Get system accprofile policyprofileShow system accprofile System admin Password passwordstrGet system admin Get system admin newadminShow system admin Get system console Config system console set EndSystem console Show system consoleSystem dns Get system dnsShow system dns Get system status System failclose FailbypassSystem failclose System global MinutesintegerGet system global Show system globalSystem interface internal external Get system interface internalShow system interface internal Config system manageip Set ip 192.168.2.80 255.255.255.0 end System manageipSystem route DistanceintegerConfig hosts System snmp communityGet system snmp community Show system snmp communityExecute CLI commands Execute backup config filenamestr tftp-serveripv4 BackupCommand syntax Execute backup config fbdg.cfgDate Execute date datestr datestr has the form mm/dd/yyyy, whereExecute date 09/17/2004 Factoryreset Execute factoryresetPing Execute ping addressipv4 host-namestrReboot Execute rebootRestore Execute restore config backupconfigSwitch-mode Time Execute time timestrTime Index 09-30000-0163-20061109 Snmp SSH