How to configure the syslog format for Cisco mars?

Unanswered Question
Jul 10th, 2010

May I know how to configure the syslog format for Cisco mars to display certain column for log fie from other network devices?  Thanks for the prompt reply.

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Scott Fringer Mon, 07/12/2010 - 04:02

I am not clear on the outcome you are requesting assistance in implementing.  In most instances, CS-MARS simply presents the raw syslog message as received from the reporting in the output of any query with with a result format of "All Matching Event Raw Messages".

If you are asking how to format a reporting devices syslog messages to be successfully received and parsed by CS-MARS, there are two possibilities:

- select the correct device/software details when adding the device to the CS-MARS "Security and Monitor Device List"; this ensure CS-MARS will correctly parse the received syslog message.  This is covered in the Configuration Guide for CS-MARS release 6.0:

- use the Device Support Framework to create a custom parser for a device not natively supported by CS-MARS.  This is covered in the User Gudie for CS-MARS release 6.0:


ssweehinlew Sun, 08/15/2010 - 06:32

Thank for your user guide. May I know how to extract the detailed message (raw data) according to the incident ID?

Scott Fringer Mon, 08/16/2010 - 04:45

If you click the Incident ID you should be brought to a view of the rule (at the top) that triggered the incident along with the session data (at the bottom) that matched the rule.  Within this event data, you should see the name of the device that provided the event.  Next to/under the device name should be an icon of a page with '0101' across it.  If you click this page, a pop-up window should open that displays the raw message that was received from the reporting device.


ssweehinlew Mon, 08/16/2010 - 05:20

I follow the steps on the link below:

under content: Create Device Event Types for a Custom Device Type

I still cannot see the raw data message. Do i need to map the template to the IP address for the device?

After step 9, Once the log template is defined and submitted, you must define a reporting device based on the custom device.

How to define a reporting device based on the custom device?

Scott Fringer Mon, 08/16/2010 - 05:30

You need to add a reporting device to CS-MARS as usual; navigate to:

ADMIN>System Setup>Security and Monitor Devices

Click Add

In the "Device Type:" drop-down list, choose your newly created custom device.  If the device you created is a software-based device, you will first need to choose one of the two options "Add SW security apps on new host" or "Add SW security apps on exiting host".  The full process is outlined here:


ssweehinlew Mon, 08/16/2010 - 05:42


If that device is the existing device, can i create a new device with same IP and apply that template that i create to that new device?

Scott Fringer Mon, 08/16/2010 - 05:44

You will need to delete the existing device and create a new device if

the device type changes.


ssweehinlew Mon, 08/23/2010 - 01:09

Need your help here again. How to monitor those inactive cs-mars reporting device? Is there any function need to be activated?

Scott Fringer Mon, 08/23/2010 - 03:26

As long as the devices are configured in 'Security and Monitor Devices, CS-MARS will monitor for inactivity (no events received in the previous one hour period).


ssweehinlew Mon, 08/23/2010 - 04:23

The devices are configured in 'Security and Monitor Devices.If there is no events received in the previous one hour period ( The following device has not reported events to MARS in 3600 seconds.), it should not reflect as an incident. It is not considered as a problem. Am i right to say that?

Scott Fringer Mon, 08/23/2010 - 04:27

CS-MARS should create a green severity incident titled,"Inactive CS-MARS

reporting device" for all configured Security and Monitor devices from

which it has not received any raw messages in the previous one hour period.


ssweehinlew Tue, 08/24/2010 - 04:44

I have 1 network device which usually will trigger the red incident to the Cisco Mars. Suddenly, it doesn't send out any syslogs to Cisco Mars anymore. There is no changes on the whole network and the Cisco Mars is still able to discover this device by sending the snmp traffic. What could be the reason to cause it happen and any settings is configured wrongly on Cisco Mars?

Scott Fringer Tue, 08/24/2010 - 04:53

If there are no events arriving at the CS-MARS, the issue may be with

the reporting device. You will need to confirm that the device is

sending the expected events to the CS-MARS.

This can normally be monitored from the CS-MARS CLI using tcpdump:

$ tcpdump host

You should see output of events arriving from the device. If there are

no events arriving, the issue is with the reporting device. If you see

events arriving at the CS-MARS, the issue is with the CS-MARS. Further

troubleshooting would most likely require a service request be opened

with TAC.


ssweehinlew Wed, 11/03/2010 - 00:56

To prevent the loss of configuration after rebooting the cisco mars, may i know know is there any commands to save the configuration from putty session?

Scott Fringer Wed, 11/03/2010 - 03:19

There is no method to list the configuration in a human-readable format for capture in a PuTTY log session.

In CS-MARS release 6.x, you can make use of the pnexport facility to manually export the configuration (and/or data) to a NFS or SFTP server.  The pnexp shell is outlined here:

It is advisable to configure data archiving on your CS-MARS.  Data archiving provides protection for both the CS-MARS configuration as well as the data stored on the CS-MARS.  You can read more about data archiving here:


ssweehinlew Wed, 11/03/2010 - 09:05


If i don't have NFS or SFTP server, is there any ways to make sure the configuration is still there after reboot? Is there any commands like "#write me" (save configuration on cisco router and cisco switch) on Cisco Mars?

Scott Fringer Wed, 11/03/2010 - 09:13

There is no equivalent on the CS-MARS to the IOS "wr mem" command.  By submitting and activating changes via the CS-MARS GUI, the configuration will be stored and reloaded post-reboot.

Data archiving/exporting are available to restore to a known good point should hardware be replaced via RMA.  I would recommend making the time/effort investment in establishing data archiving on your CS-MARS.


ssweehinlew Wed, 11/10/2010 - 08:59

Hi Scott,

Is the anyway to download the signature update for Cisco mars from Cisco website? Do you have the link? Does it require downtime when upload the signature update to the Mars device?

Scott Fringer Wed, 11/10/2010 - 09:04

You can configure CS-MARS to retrieve the IPS signature updates directly from as outlined here:

If you want to host the IPS signature updates on your own server, you can download them here:

The same link provided above describes hosting the signature updates on a local server.


ssweehinlew Wed, 11/10/2010 - 18:23


I would like to do the update from Local Server. Any ideas how to setup the local server? Do I need to setup the server with IIS (Internet Information Services) ?

ssweehinlew Fri, 11/12/2010 - 16:16

The example cannot be downloaded. Can email to me? Thank you very much.

Scott Fringer Mon, 11/15/2010 - 04:12

That example is from the configuration guide, it is not intended to download; it is only showing the possible URL you would configure in your CS-MARS.  You need to setup all of the requisite server components within your network.


ssweehinlew Mon, 11/15/2010 - 04:49

1 more question.  Does it require downtime when upload the signature update to the Mars device?

Scott Fringer Mon, 11/15/2010 - 04:56

IPS signature updates applied to the CS-MARS do not require a reboot of the CS-MARS system.


ssweehinlew Thu, 12/16/2010 - 00:19


Is there any ways to check the retention period for the log and file size that store in Cisco Mars for each network devices?

Scott Fringer Thu, 12/16/2010 - 03:24

All received events are stored in the CS-MARS database.

From the CS-MARS CLI, you can check the current status of the database, as well as when data will be purged by issuing the following command

[pnadmin]$ pndbusage


ssweehinlew Tue, 03/29/2011 - 04:17


How many event logs Cisco Mars is able to capture per sec?

Under the the Mars CLI with command "diskusage", which filesystem is used to store the raw data?

File system                               Mount On

/dev/hda2                                  /

/dev/hda1                                  /boot  

none                                         /dev/shm                     

/dev/sda5                                  /opt

/dev/sda6                                  /log

/dev/sda7                                  /pnarchive

/dev/sda8                                  /tmp

/dev/sda9                                  /u01

/dev/sda11                                /u02                             

/dev/sda10                                /u03


This Discussion