# Cisco Meraki - Configuring a Syslog Server

#### **<span style="color: rgb(53, 152, 219);">Method 1: Using GUI</span>**

##### <span style="color: rgb(53, 152, 219);">**Configure log forwarding**</span>

<div class="body taskbody" id="bkmrk-sign-in-to-the%C2%A0merak"><section>1. <span class="ph cmd">Sign in to the <span style="color: rgb(0, 0, 0);">**[Meraki Dashboard](https://account.meraki.com/secure/login/dashboard_login)**</span> with administrator permissions.</span>
2. <span class="ph cmd">If your account is a member of multiple organizations, select the organization that you want to configure in the **<span class="ph uicontrol">Organization</span>** list.</span>
3. <span class="ph cmd">In the **<span class="ph uicontrol">Network</span>** list, select the network that you want to configure.</span>
4. <span class="ph cmd">In the navigation menu, click <span class="ph menucascade">**<span class="ph uicontrol">Network-wide</span>**<abbr title="and then"> &gt; </abbr>**<span class="ph uicontrol">Configure</span>**<abbr title="and then"> &gt; </abbr>**<span class="ph uicontrol">General</span>**</span>.</span>
5. <span class="ph cmd">In the **<span class="ph uicontrol">Reporting</span>** section, click **<span class="ph uicontrol">Add a syslog server</span>**.</span>
6. <span class="ph cmd">In the **<span class="ph uicontrol">Syslog servers</span>** table, configure these settings:</span><div class="itemgroup info">
    - **<span class="ph uicontrol">Server IP</span>** - Enter the IP address of your Syslog Server.
    - **<span class="ph uicontrol">Port</span>** - the default UDP port value of <span class="ph uicontrol">514</span>.
    - **<span class="ph uicontrol">Roles</span> -** Select **<span class="ph uicontrol">Security events</span>**, **<span class="ph uicontrol">Flows</span>**, and **<span class="ph uicontrol">URL</span>**.
    
    </div>
7. <span class="ph cmd">In the **<span class="ph uicontrol">Traffic Analysis</span>** section, select **<span class="ph uicontrol">Detailed: collect destination hostnames</span>**.</span>
8. <span class="ph cmd">Click **<span class="ph uicontrol">Save</span>**.</span>
9. <span class="ph cmd">In the navigation menu, click **<span class="ph menucascade"><span class="ph uicontrol">Security &amp; SD-WAN</span><abbr title="and then"> &gt; </abbr><span class="ph uicontrol">Firewall</span></span>**.</span>
10. <span class="ph cmd">In the **<span class="ph uicontrol">Layer 3</span>** section, mark the **<span class="ph uicontrol">Syslog</span>** checkbox for every rule.</span>
11. <span class="ph cmd">Click **<span class="ph uicontrol">Save</span>**.</span>

</section></div>
#### <span style="color: rgb(53, 152, 219);">**<span class="TextRun SCXW84153380 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXW84153380 BCX0" data-ccp-parastyle="heading 2">Method 2 : Linux System</span></span><span class="EOP SCXW84153380 BCX0" data-ccp-props="{"134245418":true,"134245529":true,"335559738":160,"335559739":80}"> </span>**</span>

##### <span style="color: rgb(53, 152, 219);">**<span class="TextRun SCXW84153380 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXW84153380 BCX0" data-ccp-parastyle="heading 2">Step 1: Install the syslog application:</span></span><span class="EOP SCXW84153380 BCX0" data-ccp-props="{"134245418":true,"134245529":true,"335559738":160,"335559739":80}"> </span>**</span>

<span class="TextRun SCXW84153380 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SpellingErrorV2Themed SCXW84153380 BCX0" data-ccp-parastyle="heading 2">sysadmin@ubuntu</span><span class="NormalTextRun SCXW84153380 BCX0" data-ccp-parastyle="heading 2">:~$ </span><span style="color: rgb(0, 0, 0);">**<span class="NormalTextRun SpellingErrorV2Themed SCXW84153380 BCX0" data-ccp-parastyle="heading 2">sudo</span><span class="NormalTextRun SCXW84153380 BCX0" data-ccp-parastyle="heading 2"> apt-get install syslog-ng</span>**</span></span><span style="color: rgb(0, 0, 0);">**<span class="EOP SCXW84153380 BCX0" data-ccp-props="{"134245418":true,"134245529":true,"335559738":160,"335559739":80}"> </span>**</span>

<span class="EOP SCXW84153380 BCX0" data-ccp-props="{"134245418":true,"134245529":true,"335559738":160,"335559739":80}"> </span><span class="TextRun SCXW84153380 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXW84153380 BCX0" data-ccp-parastyle="heading 2">Once syslog-ng has been installed it needs to be configured to receive log messages from the MX</span><span class="NormalTextRun SCXW84153380 BCX0" data-ccp-parastyle="heading 2">. </span><span class="NormalTextRun SCXW84153380 BCX0" data-ccp-parastyle="heading 2">These instructions will configure syslog-ng to store each of the role categories in their own log file</span><span class="NormalTextRun SCXW84153380 BCX0" data-ccp-parastyle="heading 2">. </span><span class="NormalTextRun SCXW84153380 BCX0" data-ccp-parastyle="heading 2">There will be an individual log file for URLs, Event Logs, etc</span><span class="NormalTextRun ContextualSpellingAndGrammarErrorV2Themed SCXW84153380 BCX0" data-ccp-parastyle="heading 2">. Alternatively</span><span class="NormalTextRun SCXW84153380 BCX0" data-ccp-parastyle="heading 2">, it could be configured to store all logs in one file</span><span class="NormalTextRun SCXW84153380 BCX0" data-ccp-parastyle="heading 2">. </span><span class="NormalTextRun SCXW84153380 BCX0" data-ccp-parastyle="heading 2">Use any </span><span class="NormalTextRun SCXW84153380 BCX0" data-ccp-parastyle="heading 2">appropriate editor</span><span class="NormalTextRun SCXW84153380 BCX0" data-ccp-parastyle="heading 2"> to make changes to the syslog-ng configuration file</span><span class="NormalTextRun SCXW84153380 BCX0" data-ccp-parastyle="heading 2">. </span><span class="NormalTextRun SCXW84153380 BCX0" data-ccp-parastyle="heading 2">In this example nano is used to edit the file.</span></span><span class="EOP SCXW84153380 BCX0" data-ccp-props="{"134245418":true,"134245529":true,"335559738":160,"335559739":80}"> </span>

<span class="TextRun SCXW84153380 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SpellingErrorV2Themed SCXW84153380 BCX0" data-ccp-parastyle="heading 2">sysadmin@ubuntu</span><span class="NormalTextRun SCXW84153380 BCX0" data-ccp-parastyle="heading 2">:~$ </span><span style="color: rgb(0, 0, 0);">**<span class="NormalTextRun SpellingErrorV2Themed SCXW84153380 BCX0" data-ccp-parastyle="heading 2">sudo</span><span class="NormalTextRun SCXW84153380 BCX0" data-ccp-parastyle="heading 2"> nano /</span><span class="NormalTextRun SpellingErrorV2Themed SCXW84153380 BCX0" data-ccp-parastyle="heading 2">etc</span><span class="NormalTextRun SCXW84153380 BCX0" data-ccp-parastyle="heading 2">/syslog-ng/syslog-</span><span class="NormalTextRun SpellingErrorV2Themed SCXW84153380 BCX0" data-ccp-parastyle="heading 2">ng.conf</span>**</span></span><span style="color: rgb(0, 0, 0);">**<span class="EOP SCXW84153380 BCX0" data-ccp-props="{"134245418":true,"134245529":true,"335559738":160,"335559739":80}"> </span>**</span>

<span class="TextRun SCXW84153380 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXW84153380 BCX0" data-ccp-parastyle="heading 2">The LAN IP of the MX in this example will be 192.168.10.1. The syslog server is listening on 192.168.10.241 UDP port 514. Update as needed to reflect the LAN IP of the MX and the syslog server being configured</span><span class="NormalTextRun SCXW84153380 BCX0" data-ccp-parastyle="heading 2">. </span><span class="NormalTextRun SCXW84153380 BCX0" data-ccp-parastyle="heading 2">The first section of code will configure all syslog messages from the MX to be stored in /var/log/meraki.log</span><span class="NormalTextRun SCXW84153380 BCX0" data-ccp-parastyle="heading 2">. </span><span class="NormalTextRun SCXW84153380 BCX0" data-ccp-parastyle="heading 2">The second section of code will use regular expressions to match each of the role categories and store them in individual log files</span><span class="NormalTextRun SCXW84153380 BCX0" data-ccp-parastyle="heading 2">. </span><span class="NormalTextRun SCXW84153380 BCX0" data-ccp-parastyle="heading 2">Only one of the options needs to be configured.</span></span><span class="EOP SCXW84153380 BCX0" data-ccp-props="{"134245418":true,"134245529":true,"335559738":160,"335559739":80}"> </span>

##### <span style="color: rgb(53, 152, 219);">**<span class="TextRun SCXW84153380 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXW84153380 BCX0" data-ccp-parastyle="heading 2">Step 2: Log all messages to /var/log/meraki.log:</span></span><span class="EOP SCXW84153380 BCX0" data-ccp-props="{"134245418":true,"134245529":true,"335559738":160,"335559739":80}"> </span>**</span>

<span class="TextRun SCXW84153380 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXW84153380 BCX0" data-ccp-parastyle="heading 2">\#define syslog source</span></span>

<span style="color: rgb(0, 0, 0);">**<span class="TextRun SCXW84153380 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXW84153380 BCX0" data-ccp-parastyle="heading 2">source </span><span class="NormalTextRun SpellingErrorV2Themed SCXW84153380 BCX0" data-ccp-parastyle="heading 2">s\_net</span><span class="NormalTextRun SCXW84153380 BCX0" data-ccp-parastyle="heading 2"> { </span><span class="NormalTextRun SpellingErrorV2Themed SCXW84153380 BCX0" data-ccp-parastyle="heading 2">udp</span><span class="NormalTextRun SCXW84153380 BCX0" data-ccp-parastyle="heading 2">(</span><span class="NormalTextRun SpellingErrorV2Themed SCXW84153380 BCX0" data-ccp-parastyle="heading 2">ip</span><span class="NormalTextRun SCXW84153380 BCX0" data-ccp-parastyle="heading 2">(192.168.10.241) </span><span class="NormalTextRun ContextualSpellingAndGrammarErrorV2Themed SCXW84153380 BCX0" data-ccp-parastyle="heading 2">port(</span><span class="NormalTextRun SCXW84153380 BCX0" data-ccp-parastyle="heading 2">514))</span><span class="NormalTextRun ContextualSpellingAndGrammarErrorV2Themed SCXW84153380 BCX0" data-ccp-parastyle="heading 2">; }</span><span class="NormalTextRun SCXW84153380 BCX0" data-ccp-parastyle="heading 2">;</span></span><span class="EOP SCXW84153380 BCX0" data-ccp-props="{"134245418":true,"134245529":true,"335559738":160,"335559739":80}"> </span>**</span>

<span class="TextRun SCXW84153380 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXW84153380 BCX0" data-ccp-parastyle="heading 2"> </span><span class="NormalTextRun SCXW84153380 BCX0" data-ccp-parastyle="heading 2">\#</span><span class="NormalTextRun ContextualSpellingAndGrammarErrorV2Themed SCXW84153380 BCX0" data-ccp-parastyle="heading 2">create</span><span class="NormalTextRun SCXW84153380 BCX0" data-ccp-parastyle="heading 2"> filter to match traffic (this filter will catch all syslog messages that come from the MX</span></span><span class="EOP SCXW84153380 BCX0" data-ccp-props="{"134245418":true,"134245529":true,"335559738":160,"335559739":80}"> </span>

<span style="color: rgb(0, 0, 0);">**<span class="TextRun SCXW84153380 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXW84153380 BCX0" data-ccp-parastyle="heading 2">filter </span><span class="NormalTextRun SpellingErrorV2Themed SCXW84153380 BCX0" data-ccp-parastyle="heading 2">f\_meraki</span> <span class="NormalTextRun ContextualSpellingAndGrammarErrorV2Themed SCXW84153380 BCX0" data-ccp-parastyle="heading 2">{ host</span><span class="NormalTextRun ContextualSpellingAndGrammarErrorV2Themed SCXW84153380 BCX0" data-ccp-parastyle="heading 2">( "</span><span class="NormalTextRun SCXW84153380 BCX0" data-ccp-parastyle="heading 2">192.168.10.1</span><span class="NormalTextRun ContextualSpellingAndGrammarErrorV2Themed SCXW84153380 BCX0" data-ccp-parastyle="heading 2">" )</span><span class="NormalTextRun SCXW84153380 BCX0" data-ccp-parastyle="heading 2">; };</span></span><span class="EOP SCXW84153380 BCX0" data-ccp-props="{"134245418":true,"134245529":true,"335559738":160,"335559739":80}"> </span>**</span>

<span class="TextRun SCXW84153380 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXW84153380 BCX0" data-ccp-parastyle="heading 2">\#define a destination for the syslog messages</span></span><span class="EOP SCXW84153380 BCX0" data-ccp-props="{"134245418":true,"134245529":true,"335559738":160,"335559739":80}"> </span>

<span style="color: rgb(0, 0, 0);">**<span class="TextRun SCXW84153380 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXW84153380 BCX0" data-ccp-parastyle="heading 2">destination </span><span class="NormalTextRun SpellingErrorV2Themed SCXW84153380 BCX0" data-ccp-parastyle="heading 2">df\_meraki</span> <span class="NormalTextRun ContextualSpellingAndGrammarErrorV2Themed SCXW84153380 BCX0" data-ccp-parastyle="heading 2">{ file</span><span class="NormalTextRun SCXW84153380 BCX0" data-ccp-parastyle="heading 2">("/var/log/meraki.log")</span><span class="NormalTextRun ContextualSpellingAndGrammarErrorV2Themed SCXW84153380 BCX0" data-ccp-parastyle="heading 2">; }</span><span class="NormalTextRun SCXW84153380 BCX0" data-ccp-parastyle="heading 2">;</span></span><span class="EOP SCXW84153380 BCX0" data-ccp-props="{"134245418":true,"134245529":true,"335559738":160,"335559739":80}"> </span>**</span>

<span class="TextRun SCXW84153380 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXW84153380 BCX0" data-ccp-parastyle="heading 2">\#</span><span class="NormalTextRun ContextualSpellingAndGrammarErrorV2Themed SCXW84153380 BCX0" data-ccp-parastyle="heading 2">bundle</span><span class="NormalTextRun SCXW84153380 BCX0" data-ccp-parastyle="heading 2"> the source, filter, and destination rules together with a logging rul</span><span class="NormalTextRun SCXW84153380 BCX0" data-ccp-parastyle="heading 2">e</span></span><span class="EOP SCXW84153380 BCX0" data-ccp-props="{"134245418":true,"134245529":true,"335559738":160,"335559739":80}"> </span>

<span style="color: rgb(0, 0, 0);">**<span class="TextRun SCXW84153380 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXW84153380 BCX0" data-ccp-parastyle="heading 2">log </span><span class="NormalTextRun ContextualSpellingAndGrammarErrorV2Themed SCXW84153380 BCX0" data-ccp-parastyle="heading 2">{ source</span><span class="NormalTextRun SCXW84153380 BCX0" data-ccp-parastyle="heading 2"> ( </span><span class="NormalTextRun SpellingErrorV2Themed SCXW84153380 BCX0" data-ccp-parastyle="heading 2">s\_net</span><span class="NormalTextRun SCXW84153380 BCX0" data-ccp-parastyle="heading 2"> ); filter( </span><span class="NormalTextRun SpellingErrorV2Themed SCXW84153380 BCX0" data-ccp-parastyle="heading 2">f\_meraki</span><span class="NormalTextRun SCXW84153380 BCX0" data-ccp-parastyle="heading 2"> ); destination ( </span><span class="NormalTextRun SpellingErrorV2Themed SCXW84153380 BCX0" data-ccp-parastyle="heading 2">df\_meraki</span><span class="NormalTextRun SCXW84153380 BCX0" data-ccp-parastyle="heading 2"> ); };</span></span>** <span class="TextRun SCXW84153380 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXW84153380 BCX0" data-ccp-parastyle="heading 2"> </span></span><span class="EOP SCXW84153380 BCX0" data-ccp-props="{"134245418":true,"134245529":true,"335559738":160,"335559739":80}"> </span></span>

##### **<span style="color: rgb(53, 152, 219);"><span class="TextRun SCXW84153380 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXW84153380 BCX0" data-ccp-parastyle="heading 2">Step 3: Restart the syslog-ng process:</span></span><span class="EOP SCXW84153380 BCX0" data-ccp-props="{"134245418":true,"134245529":true,"335559738":160,"335559739":80}"> </span></span>**

<span class="TextRun SCXW84153380 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SpellingErrorV2Themed SCXW84153380 BCX0" data-ccp-parastyle="heading 2">sysadmin@ubuntu</span><span class="NormalTextRun SCXW84153380 BCX0" data-ccp-parastyle="heading 2">:~$ </span><span style="color: rgb(0, 0, 0);">**<span class="NormalTextRun SpellingErrorV2Themed SCXW84153380 BCX0" data-ccp-parastyle="heading 2">sudo</span><span class="NormalTextRun SCXW84153380 BCX0" data-ccp-parastyle="heading 2"> /</span><span class="NormalTextRun SpellingErrorV2Themed SCXW84153380 BCX0" data-ccp-parastyle="heading 2">etc</span><span class="NormalTextRun SCXW84153380 BCX0" data-ccp-parastyle="heading 2">/</span><span class="NormalTextRun SpellingErrorV2Themed SCXW84153380 BCX0" data-ccp-parastyle="heading 2">init.d</span><span class="NormalTextRun SCXW84153380 BCX0" data-ccp-parastyle="heading 2">/syslog-ng restart</span>**</span></span>**<span class="EOP SCXW84153380 BCX0" data-ccp-props="{"134245418":true,"134245529":true,"335559738":160,"335559739":80}"> </span>**

*<span class="EOP SCXW84153380 BCX0" data-ccp-props="{"134245418":true,"134245529":true,"335559738":160,"335559739":80}">Source: [https://documentation.meraki.com/General\_Administration/Monitoring\_and\_Reporting/Syslog\_Server\_Overview\_and\_Configuration#Configuring\_a\_Syslog\_Server](https://documentation.meraki.com/General_Administration/Monitoring_and_Reporting/Syslog_Server_Overview_and_Configuration#Configuring_a_Syslog_Server)</span>*

#### <span style="color: rgb(53, 152, 219);">**<span class="TextRun SCXW71272603 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXW71272603 BCX0">Cisco Meraki - Configuring a Syslog Server Integration Procedures </span></span><span class="EOP SCXW71272603 BCX0" data-ccp-props="{}"> </span>**</span>

##### <span class="TextRun SCXW71272603 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXW71272603 BCX0">Please provide the following information to </span><span class="NormalTextRun SpellingErrorV2Themed SCXW71272603 BCX0">CyTech</span><span class="NormalTextRun SCXW71272603 BCX0">: </span></span><span class="EOP SCXW71272603 BCX0" data-ccp-props="{}"> </span>

<span class="TextRun SCXW71272603 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXW71272603 BCX0"><span data-teams="true">Requirements:Collect logs via syslog over UDP or TCP</span></span></span>

<span class="TextRun SCXW71272603 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXW71272603 BCX0"><span data-teams="true">  
 \*Listen Address-&gt; Syslog Collector IP address where the Elastic-Agent is installed  
 \*Listen Port-&gt; Port Number (Please identify if TCP or UDP)</span> </span></span><span class="EOP SCXW71272603 BCX0" data-ccp-props="{}"> </span>

<span class="TextRun SCXW71272603 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXW71272603 BCX0">If you need further </span><span class="NormalTextRun SCXW71272603 BCX0">assistance</span><span class="NormalTextRun SCXW71272603 BCX0">, kindly contact our support at </span></span><span style="color: rgb(53, 152, 219);">**<span class="TextRun SCXW71272603 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXW71272603 BCX0">support@cytechint.com</span></span>**</span><span class="TextRun SCXW71272603 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXW71272603 BCX0"> for prompt </span><span class="NormalTextRun SCXW71272603 BCX0">assistance</span><span class="NormalTextRun SCXW71272603 BCX0"> and guidance.</span></span><span class="EOP SCXW71272603 BCX0" data-ccp-props="{}"> </span>