1. Run the setup program
The setup program will install the L4Ndash application, and create a virtual directory in Internet Information server.
2. Modify the web.config file
You need to modify the web.config file, and define the data source(s) you will use.
For most users it is sufficient to define one data source, however L4NDash gives you the possibility to
define several data sources, the first will be the default, and the user may choose to use one of the others.
The datasources is defined in the <l4ndash> section, for each data source you must define a <datasource> section.
In the <datasource> section, you define the name of the data source, the connection string and the name of the log table, for example:
<datasource name="Local">
<connectionstring value="Data Source=(local); ..............."/>
<tablename value="Log4Net"/>
</datasource>
If you need to define several data source, you defines several <datasource> sections, the first section will be de default datasource.
Other parameters in the <appSettings> section
The web.config file contains some other parameters you may change:
- DateTimeFormat How date time values are displayed
- DateFormat How date values are displayed
- UserInputDateFormat Date format for user input.
- HelpModus 1 or 0 i.e. will help text be displayed integrated in the pages as default.
- SummaryTableCacheTime Number of seconds the summary table in the dashboard page is cached.
- SqlCommandTimeout Timeout when executing SQL statements, number of seconds.
Customizing the SummaryTable in the Dashboard page
The summary table in the dashboard page is defined in the web.config file under the <l4ndash> section.
Each row in the summary table is define through a <summarytableperiod Name="periodname"> section, as shown in the exeample below:
<summarytableperiod name="Last Hour">
<comment value="Shows events for the past hour"/>
<timediff value="1" valuetype="hour" start="now"/>
</summarytableperiod>
The parameter timedif defines the timespan for the period by specifying valu (a numeric value) and valutype (hour, day, month, year).
The start of the period is defined in the start attribute of the tiediff, the start attribute can be one of the three values "now", "previousperiodstart" and "previousperiodend".
The default definition of the summarytable in the web.config file, is a good starting point for understanding how to customize the table.
3. System requirements
- Internet Information Server
- Microsoft SQL Server
- One MB free disk space
- .NET framework version 1.1