This chapter describes the required administrative steps to set up a Log Central system. The procedure assumes that you have already installed Log Central on the managed nodes and the central host, as described in the BEA Manager Installation Guide.
The following topics are included:
To set up Log Central, perform the following steps:
Setting Up Log Central
For a list of supported databases, refer to the BEA Manager Release Notes. For database installation details, consult the database vendor's documentation. The installed database must have a Java Database Connectivity (JDBC) driver available. For details on how to install this, consult your database JDBC documentation.
lc_user
).
This user should have privileges to create and delete tables and modify their contents. Allocate a minimum of 10 Mb of disk space for the database user. Log Central uses this database user to access the database and create and update tables that store Log Central messages.
The JRE should be available from your operating system vendor. Modify your environment so that the path includes the directory that has the JRE program.
lc_config
program, as described in "Configuring Log Central."
Note:
You need to create service entries for the UDP services-if they do not exist-lc_talk
(default port 7012) and lc_conf
(default port 7011). These services need to be available on the central host, and managed nodes, as well. For more information, consult your network administrator.
Service entry examples:lc_conf 7011/udp
lc_talk 7012/udp
To do this, run the lc_create_schema
program. For more information, refer to Chapter 3, "Configuring the Database for Use with Log Central."
Each Log Monitor process on a managed node monitors a log and maps incoming log messages to Log Central format. Mappings are provided out-of-the-box for BEA TUXEDO logs, the Oracle alert log, and the NT event log. You need to create mappings for other logs that you wish to monitor.
How to do this is described in Chapter 4, "Integrating Logs into Log Central."
In addition to the log message attributes that are contained in the messages sent by Log Central data collection agents, further attributes for each message are contained in the message definition, which is stored in the Log Central database. The definition includes such attributes as severity and recommendation (the action recommended in response to a message). You can modify or add definitions one at a time using the Message Definition Editor-a tool in the Log Central Console. However, when initially setting up Log Central, you may want to load a number of message definitions at once. It is easier to do this as a batch process using command-line utilities provided for this purpose.
How to do this is described in Chapter 5, "Creating and Loading Message Definitions."
Note:
You may wish to create subsystem entries. How to do this is described in Chapter 3, "Configuring the Database for Use with Log Central."
The Log Central system itself is manageable from a management system that supports Simple Network Management Protocol (SNMP). Log Central can also be configured to send SNMP trap notifications to a system manager in response to specified log messages.
How to do this is described in Chapter 7, "Integrating Log Central with an SNMP Manager."
How to do this is described in Chapter 8, "Starting and Stopping Log Central."
How to do this is described in Chapter 8, "Starting and Stopping Log Central."
lc_launch
command.
How to do this is described in Chapter 9, "Using the Log Central Console."
Optional setup tasks include:
You might want to set environment variables if you want to run Log Central without accepting all its defaults, such as with multiple instances of Log Central or for debugging purposes. You can do so before starting Log Central. If you want to set environment variables later, you must first stop Log Central, as described in Chapter 8, "Starting and Stopping Log Central."
Environment variables are described in detail in Appendix B, "Environment Variables."
If you want to specify filters for different managed nodes, modify the configuration file appropriately. This is described in Chapter 6, "Host and Filter Configuration."
After you have ensured that all of the software components previously specified have been properly installed, and you have installed Log Central on the central host, you can proceed with configuring Log Central. To do so, you run the Running the The numbered list that follows the figure correspond to the numbers in Figure 2-1.
You need to ascertain the following:
Configuring Log Central
lc_config
program. However, before running this program, you should be prepared to provide the information listed under "Required Information for Host Configuration Utility."
Required Information for Host Configuration Utility
lc_config
program brings up the form shown in Figure 2-1. You might want to fill out a worksheet first and have it handy.
Figure 2-1 Host Configuration Utility
This name should match the value returned by the hostname
command as run on the central host.
For more information, refer to your database documentation.
For more information, refer to your database documentation.
For more information, refer to your database documentation.
The configuration program copies the file specified here to install_dir/
bin/JDBCDrvrForLC.zip
This is the user you created in the second step under "Setting Up Log Central." The configuration program then uses this user to create and populate the tables of Log Central.
After you have determined the information in the preceding section, you run the host configuration utility, as shown in the following steps.
lc_config
program on the central host.
The syntax for The default for The default for lc_config
follows:
lc_config [-inifile
initialization_file
]
[-conffile configuration_file
] [-fn fontname
] [-fs fontsize
]initialization_file
is install_dir
/etc/msg_processor.ini
configuration_file
is install_dir
/etc/messaging.conf
(where install_dir
is the directory in which you installed Log Central).
You can do more extensive configuration of Log Central than that which you have just accomplished using lc_config
. This is described in Chapter 6, "Host and Filter Configuration."
An instance of a Log Central system consists of software integrated across a central host and several managed nodes. All messages from Log Central are collected and centralized on the central host. If one set of messages generated by a set of applications is independent of another set of messages generated by another set of applications, yet they share at least one physical machine, and you need to administer both sets independently, then you must configure multiple instances of Log Central. For example, if you have more than one BEA TUXEDO domain, and you need to administer them differently, then you would create a separate instance of Log Central for each BEA TUXEDO domain.
To configure multiple instances of Log Central, for each additional instance perform all the following steps on the central host:
lc_conf
and lc_talk
,
using the following format:
Make sure the domains use unused ports.
For example, they might have entries that look like the following:
conf_service
port_number1
/udpmsg_service
port_number2
/udplc_conf_dom2 9011/udp
lc_talk_dom2 9012/udpinstall_dir
/etc/messaging.conf
), as, for example,
install_dir
/etc/messaging.conf.dom2
.
messaging.conf
file of step 2.
Change the TALK_SERVICE
parameter to the newly defined service. For example, the parameter might look like the following:
TALK_SERVICE = "lc_talk_dom2"
IPCKEY
entry to a value different from the value of any
other instance. For example:
IPCKEY can take any numeric value. Use 0x to indicate a hexadecimal value.
IPCKEY = 0xee220000
INIFILE
entry to the copied message_processor.ini
file in step 3. For example:
INIFILE =
install_dir
/etc/message_processor.ini.dom2lc_config
command to configure the newly copied file. For example:
lc_config -conffile
install_dir
/etc/messaging.conf.dom2
-inifile install_dir
/etc/message_processor.ini.dom2
BEA_LC_IPCKEY
to the value set in step 5, as, for
example, 0xee220000
.
For more information about the two preceding variables, refer to Appendix B, "Environment Variables."
messaging.conf
file as a
parameter. For example:
On each managed node, perform steps 8 and 9 from the preceding list, using the same values.
Note:
Make sure the environment variables BEA_LC_IPCKEY
and BEA_LC_CONF_SERVICE
are set to correct values before running the start_messaging
command on the managed nodes as well as the central host. Also, use the -i
inifile
parameter for all the database commands, such as lc_user_list
. For more information on database commands, refer to Chapter 3, "Configuring the Database for Use with Log Central."