PATROL Agent configuration variables

The following table lists the PATROL KM for Log Management variable settings. All local instance configuration variables are located in /PMG/CONFIG/instanceName. Remote instance configuration variables are located in /REMOTE/HOSTS/ HostName /PMG/.

The variables that are marked as Global in the Global/Instance level column are applicable to all the instances of that file type. The variables that are marked as Instance in the Global/Instance level column are applicable only for the current instance.

Configuration variables for PATROL for Log Management

Variable nameRequired?DescriptionTypeGlobal /Instance level
appendLogEntryLinesToCustomEvent n

Appends the number of lines configured in the Number of lines in log entry field to the custom event message in the TrueSight console. 

  • 0 - Disabled (Default value)
  • 1 - Enabled

Boolean

Instance
actAlertEventn

Log file monitoring blackout indicator. 

Valid values are:

  • 0 - blackout disabled
  • 1 - blackout enabled
BooleanInstance
actAlertEventMessagenSpecify a custom event message. This variable is specific to the default setting for a search criterion.TextInstance
actAlertEventOriginnSpecify a custom event origin. This variable is specific to the default setting for a search criterion.TextInstance
actAlertEventTimen

If the log file is not modified in the last specified minutes, an event is generated and the LOGStatus parameter goes into an alarm state.

This variable is required when the value of the actAlertEvent variable is set to 1.

IntegerInstance
actAtomSizenNumber of lines in matching log messageIntegerInstance
actContainEnvn

Indicates whether the monitored file contains environment variables (format: %ENV_VAR%) 
Valid values are:

  • 0 - no environment variable expansion takes place
  • 1 - the monitored file name entered is checked for environment variables. Items enclosed in '%' are expanded in the variable defined at the PATROL 
    start time or replaced with the string MISSING.
BooleanInstance
actDelInstInMinnThe time (in minutes) after which an XML instance should be deleted once the closing root-tag is found.IntegerInstance
actDurn

Duration (in seconds) for timed log file scans, based on a 24-hour clock Valid values are 0-86399. The value is calculated with the following formula: 

Hours*3600+Minutes*60+Seconds For example, a value of 10800 - a 3-hour scan duration.

Note

 If you modify a LOG application instance created using version 2.4.20 or earlier of the product that does not have a scheduled log scan,

and convert it to the current format of the scheduled log scanning, this variable gets deleted.

IntegerInstance
actDurAsEndTimenEnables you to set the specified duration to be considered as the End time while scheduling file monitoringBooleanInstance
actFileBeginy

Specify the log file read position indicator. 
Valid values are:

  • 0 - each file scan starts from the position where the previous scan ended (previous EOF)
  • 1 - file is scanned from the beginning each time
BooleanInstance
actFileFiltern

Specify a filter program. This variable is required when the actFileType variable is set to 4 (when the file type is a binary).

This filter program must exist and be executable by PATROL Agent user (on UNIX) when the KM reads the configuration instance.


Instance
actFilePermissionChangen

If the pconfig variable /PMG/CONFIG/actFilePermissionChange contains the value '1', the parameter is set to

alarm when the permissions on the monitored file change.

IntegerInstance
actFileSizeExceedsn

If the pconfig variable /PMG/CONFIG/actFileSizeExceeds contains the value '1', the parameter is set to alarm

when the file size of the monitored file exceeds the value specified in the pconfig variable /PMG/CONFIG/actfileSizeThreshold.

IntegerInstance
actfileSizeThresholdnThe threshold file size of the monitored file at which the parameter goes into alarm is stored in the pconfig variable /PMG/CONFIG/actfileSizeThreshold.IntegerInstance
actFileTimestampChangen

If you set the pconfig variable /PMG/CONFIG/actFileTimestampChange to a value of 1, the

parameter is set to alarm when the time stamp of the monitored file changes.

IntegerInstance
actFileTreatmenty

Specify the log file treatment indicator. This variable is required when the actFileType variable is set to 1 (when the file type is text). 
Valid values are:

  • 1 - monitor latest matching file
  • 2 - monitor all matching files

See actName.

BooleanInstance
actFileTypey
  • Specify the type of monitored log file. Valid values are: 1 - text file
  • 2 - command
  • 3 - pipe
  • 4 - binary file
IntegerInstance
actIgnoreCasen

Enables you to make pattern searches that are not case sensitive. To enable this variable, you must add

the /PMG/CONFIG/actIgnoreCase variable to the pconfig file and set a value of 1

Valid values are:

  • 1 - ignore case
  • 0 or anything other than 1 - case-sensitivity is enforced

This variable is global and applicable to all the LOGMON instances.

BooleanGlobal
actInitialReadEOFn

Determines the position of the file scan when you restart the PATROL Agent or if a new file matches the file path.

You can define the value of the actInitialReadEOF variable in the following ways:

  • For the individual log management instance created: /PMG/CONFIG/instanceName/actInitialReadEOF
  • For all the log management instances created on the specified PATROL Agent, /PMG/actInitialReadEOF

Valid values are:

  • 0 - log file reads from the last offset
  • 1 - log file reads from the end of the file
  • 2 - log file reads from the beginning of the file

If you do not define the value of the /PMG/CONFIG/instanceName/actInitialReadEOF pconfig variable, the default value is 1, and the KM scans the file from the end of the file.

The default value for this configuration variable was 0 until BMC PATROL for Log Management version 2.7.10 (includes).

Since v2.7.10.01 and later the default value has been changed to 1.

IntegerInstance, Global
actLabelyUser-entered label for this monitor instanceTextInstance
actLogicalNamey

If the instance is a static instance and the logical name is provided through the GUI,

the logical name is stored in the pconfig variable /PMG/CONFIG/instanceName/actLogicalName.

The LOGMON instance name displays the specified logical name.

TextInstance
actMaxRecordSizen

Enables you to limit or expand the amount of kilobytes of data between the start delimiter and the end delimiter.

This variable has a default value of 8 (in KB). If the KM does not find an end delimiter before 8096 bytes or before it reads 8K of data,

it ignores the start delimiter and looks for another start delimiter.

IntegerInstance
actMaxReturnedRecordSizen

Limits the amount of text from the log file that you specify in an event for multiline record

By default, its value is 8 (KB). The value of the actMaxReturnedRecordSize variable should always be less or equal to actMaxRecordSize.

IntegerInstance
actNameyName of the file name of the log file, FIFO, and so on, to be monitored The file name can include wildcard characters.TextInstance
actNameArgumentsnArguments to be sent to the script in case of script monitoring.TextInstance
actNoMatchn

Indicates whether or not match has been found. 
Valid values are:

  • 0 - an event is not generated if no matches are found during the timed scan
  • 1 - an event is generated if no matches are found at the end of a timed scan
BooleanInstance
actNullifyStringnAdd a regular expression to nullify the alarm condition.TextInstance
actPriorityy

Specify the monitoring priority. 
Valid values are:

  • 1 - normal priority
  • 2 - medium priority
  • 3 - low priority
IntegerInstance
actRegexTypey

The used regex style for looking for the search strings

  • ECMAScript – The ECMAScript standard regex style.
  • PATROL – The patrol regex style (used in 2.7.30.01 and earlier)
TextInstance
actResetCountn

Specify the time interval, in seconds, in between two consecutive schedules. After a schedule begins,

the next schedule begins after the number of seconds specified in this variable. The default value set for this variable is 86400 seconds (24 hours).

Thus, after a schedule begins, the next schedule starts after 24 hours (24*60*60 seconds).

Ensure that the value set in the actResetCount variable is greater than the scheduled duration;

otherwise the variable is set to the default value of 86400 seconds.


Note

If you modify a LOG application instance created using version 2.4.20 or earlier of the product that does not have a scheduled log scan,

and convert it to the current format of the scheduled log scanning, this variable gets deleted.

IntegerInstance
actScanAlerty

Blackout override enable. Valid values are:

  • 0 - override feature disabled
  • 1 - override feature enabled
BooleanInstance
actScanAlertCountnMatch count per log file scan to override blackout.IntegerInstance
actScanCountnBlackout timer in minutesIntegerInstance
actSchdlListyEnables you to hold the scheduled list while scheduling file scanningTextInstance
actSearchListyStores the entire configuration information of an XML instance For more information, see Using the /PMG/CONFIG/ /actSearchList pconfig variable.TextInstance
actSizeActionn

Size recovery action indicator. 
Valid values are:

  • 1 - no recovery action
  • 2 - clear log file
  • 3 - backup and clear log file
IntegerInstance
actSizeAttendn

Size recovery action indicator. 
Valid values are:

  • 1 - run unattended
  • 2 - run interactively
BooleanInstance
actSizeLimitnLog file size threshold for size recovery actions. Expressed in bytes. Value of 0 disables size recovery action.IntegerInstance
actStartn

Start time for timed log file scans, based on a 24-hour clock Valid values are 0-86399.

The value is calculated with the following formula:Hours*3600+Minutes*60+Seconds.

For example, a value of 0 - a start time of 00:00:01. Note: If you modify a LOG application instance created using version 2.4.2

or earlier of the product that does not have a scheduled log scan, and convert it to the current format of the scheduled log scanning, this variable gets deleted.

IntegerInstance
actStateEvent1y

Specify the state associated with actStateEventCount1. Valid values are:

  • 1 - No Action
  • 2 - OK
  • 3 - Warn
  • 4 - Alarm

The LOGErrorLvl parameter is set to this value when the threshold for a string match is reached.

This variable is specific to the default setting for a search criterion.

IntegerInstance
actStateEvent2n

Specify the state associated with actStateEventCount2. Valid values are as follows:

  • 1 - No Action
  • 2 - OK
  • 3 - Warn
  • 4 - Alarm

The LOGErrorLvl parameter is set to this value when the threshold for a string match is reached.

This variable is specific to the default setting for a search criterion.

IntegerInstance
actStateEventCount1y

Specify the number of monitoring matches per scan before the state change.

This variable is only checked if match count is less than actStateEventCount2. This variable is specific to the default setting for a search criterion.

IntegerInstance
actStateEventCount2n

Specify the number of monitoring matches per scan before the state change.

This variable is specific to the default setting for a search criterion. See actStateEventCount1.

IntegerInstance
actStateReturnOKn

Return to OK indicator. 
Valid values are:

  • 0 - KM continues to alert until manually reset
  • 1 - set LOGErrorLvl/value to 1 if no matches in next scan
BooleanInstance
actTouchy

Log configuration change indicator. 
Valid values are:

  • 0 - no change
  • 1 - configuration has been modified
BooleanInstance
actXmlValidity

Enables you to control the values for the LOGStatus parameter Valid values are:

  • 0 - The LOGStatus parameter is set to 7 if any error is found while scanning the XML file
  • 1 - The LOGStatus parameter is set to 7 only if the XML file contains invalid document structure (non-XML); XML syntax errors are ignored
  • 2 - The LOGStatus parameter is never set to 7

A value of 7 for the LOGStatus parameter refers to an invalid XML file.

IntegerInstance
customEvtMatchCountn

If set to 1, only one event is generated per search criterion independent of the number of matches found.

The generated event contains the total number of matches found and the last matched text for the search criterion. The value is stored in /PMG/CONFIG/customEvtMatchCount.

IntegerGlobal
 delPmgreaderAfterMinn

Enables you to set the time in minutes that BMC PATROL KM for Log Management waits before deleteing the pmgreader binary

from a remote host if you delete all of the instances that you had configured for it. The default value is 10.

The value is stored in /REMOTE/HOSTS/HostName/PMG/delPmgreaderAfterMin.

IntegerGlobal

dispFullName

 n

Displays full names of the filesystem instances.

You can display the full name of a filesytem instances by setting the PMG/CONFIG/dispFullName variable value to 1:

 /PMG/CONFIG/dispFullName=1

If you set the dispFullName variable value to 0, the filesystem instance name is truncated:

/PMG/CONFIG/dispFullName=0

The default value is 0.

Integer
Global
fileScanTimeLimitn

Limits the amount of time that the KM spends scanning files You need to manually add the /PMG/CONFIG/fileScanTimeLimit variable.

You can set its value as 1 to limit the amount of time that the KM spends scanning files.

This is a global variable so the time limit set in this variable is split between all of the LOGMON instances. The time allocated for each LOGMON instance

is fileScanTimeLimit divided by the total number of LOGMON instances. If the variable is set to a value other than 1, the KM does not limit the time it takes to scan files.

If the fileScanTimeLimit variable is set to 1, the total scan time limit is 2 minutes. The KM derives this from the default polling cycle, which is 2 minutes.

Therefore, if the total number of LOGMON instances is 4, each instance has a scan time limit of 30 seconds. This polling time is added after the polling cycle starts at 2 minutes.

Thus, the maximum time for data collection is 4 minutes. If the fileScanTimeLimit variable is set to anything other than 1, the KM works normally.

If the KM is monitoring a large file, and fileScanTimeLimit is set to 1, the KM continues scanning in multiple polling cycles,

and the LogStatus parameter is set to a value of 2. If the KM is monitoring a normal size file and completes scanning within the limit, the LogStatus parameter is set to a value of 1.

IntegerGlobal
fileSizeGrowthLimitn

Holds the value of the file size growth limit in kilobytes. If the KM determines that the difference between the old file size and the

new file size is greater than the value in the fileSizeGrowthLimit variable, it does not perform scanning.

This feature is applicable only for text files. You can add the /PMG/CONFIG/fileSizeGrowthLimit variable to stop scanning of text files when

scalability limits have been reached. Set the value of the variable by using X to indicate the growth limit in kilobytes.

The pconfig variable is added globally and is applicable to all the LOGMON instances. 

If the file size growth is more than the value of the fileSizeGrowthLimit variable, the following actions occur:

  • scanning is not done for this file during the polling cycle
  • data added during the polling cycle is skipped from scanning
  • the LogStatus parameter goes into an alarm and is set with a value of 6
  • the offset is set to the end of the file for the next polling cycle
IntegerGlobal
ignoreScriptRunErrorn

This variable is used for ignoring the script return code in case of script monitoring. So, this can resolve a situation of missing/unknown alert when the script executes properly but it is returning a non-zero code.

  • 0 - (Default value)
  • 1 – The script execution return code will be ignored.
BooleanInstance
InstOnFileNotExistnAllows an instance to get created on file that does not exist You must add the /PMG/CONFIG/InstOnFileNotExist manually, and set it to a value of 1.BooleanGlobal
numOldInstancesn

Controls the number of old instances to be monitored when the File Disposition option in the Add File for Label: instanceName dialog box is set to Latest.

The value is stored in the pconfig variable /PMG/CONFIG/numOldInstances. The default value for numOldInstances is 1.

Specifying a null string for the Number of Old Instancescauses the KM to delete this variable and revert to the default of 1. If the File Disposition option in the Add File for Label: instanceName dialog box is set to All, the KM ignores the numOldInstances variable.

IntegerGlobal
onLatestUsePermanentInstn

Monitors the latest file with a single permanent Log file instance.

  • 0 - Enables creation of multiple instances while monitoring the latest file set
  • 1 - Enables creation of a single instance while monitoring the latest file set
BooleanGlobal
originNameInEMn

Controls the format of the origin name in the Event Manager. PNn is a suffix used with the LOGMON instance.

(For example, if the name of a LOGMON instance is Test, you see TestPN0 and TestPN1 in the Event Manager.) 
Valid values are:

  • 0 - uses naming convention with PNn
  • 1 - uses naming convention without PNn; instead of PNn, the file name is added

From version 2.7.00 of PATROL KM for Log Management onwards, you can configure the originNameInEM variable at the

KM level and the instance level to disable the use of a PNn suffix. Instead, the origin name displays the file name of the latest version of the file being monitored.

BooleanGlobal
replaceAnnotationSpecialCharsn

Replaces the special characters (Comma ( , ), double quotation marks ( " ), and single quotation marks ( , )) in the custom event message with tags instead of deleting them from the message.

  • 0 - Disabled
  • 1 - EnabledBoolean
BooleanGlobal
searchIdentifierLabely

Describes the label for a search criterion that you define. Each time you define a search criterion, this variable is

created with the same name as that of the search identifier.

This variable is a collection of fields and is created under the /PMG/CONFIG/instanceName/actPatterns pconfig branch.

TextInstance
suppressSpaceInMsgn

Enables you to suppress multiple consecutive spaces in a custom event message. You need to add this variable manually under the /PMG/CONFIG branch.

You can assign one of the following values:

  • 1 - Suppresses multiple consecutive spaces and considers them as a single delimiter
  • 0 (default) - Does not suppress multiple consecutive spaces and considers them as multiple delimiters
BooleanGlobal
suspendAlln

Suspends all the instances configured under PATROL KM for Log Management 
Valid values are:

  • 0 - removes suspension from all the instances
  • 1 - suspends all the instances

If you set the /PMG/CONFIG/suspendAll variable to a value of 1, it skips text added during the suspension period. After the period lapses,

the KM reads from the end of the file. When using the KM interface, the suspendAll variable and thePMGSuspend flag file take precedence over the Suspend KM event generation for a specified time period option.

BooleanGlobal
sendSingleEvent n

Generates only a single event instead of two events for exceeding a defined threshold. 

 You can generate a single event by setting the PMG/CONFIG/sendSingleEvent variable value to 1:

/PMG/CONFIG/sendSingleEvent=1

If you set the sendSingleEvent variable value to 0, then two events are generated for exceeding a defined threshold, out of which, one event is generated from BMC PATROL for Log Management and the other from the BMC PATROL for Event Management. 

/PMG/CONFIG/sendSingleEvent=0

The default value value is 0.

Integer
Global
updateOnConfigChangen

Enables the KM to read the log file from the last read point in the previous scan when the configuration of the monitored log file changes.

The value is stored in the pconfig variable /PMG/CONFIG/updateOnConfigChange. 

Valid values are:

  • 0 - the log file instance is deleted
  • 1 - the log file instance is not deleted

The default behavior of the KM is to destroy and re-create the log file instance and read the log file from the beginning whenever the

configuration of the monitored log file changes. If the pconfig variable /PMG/CONFIG/updateOnConfigChange has a value of '1',

the instance is not destroyed and the KM reads the file from the last read point in the previous scan.

IntegerGlobal
shrunkLogReadPointn

Enables you to reduce the size or truncate log files without reading from the beginning each time that the file is reduced.

  • 0 - log files that are reduced in size read from the beginning of the file
  • 1 - log files that are reduced in size read from the end of the file

If the value is 1, then monitored logs are not read until the next scan.

If the configuration variable is missing, that is, if you have not added this variable manually, the log file is read from the beginning of the file.

Notes:

This variable works only when the log file is a text file. It does not work if the file type is binary or script.

Whenever the file timestamp is modified, but the file size remains same, the KM starts reading the file according to pconfig value.

Integer
Global
LOGMatchStringLimitn

Limits the amount of data that is sent to the LOGMatchString parameter. By default, 63K is the maximum amount of data sent to the this parameter.

Enter any integer > 0 as value for this variable to indicate the character limit for the amount of data sent to the LOGMatchString parameter.

Note: The value of this variable must be less than or equal to 63K.

IntegerGlobal
fileDelActionn

Enables you to select what the KM must do when a monitored file is deleted:

  • 1 - Generate an ALARM (default)
  • 2 - Do nothing
  • 3 - Delete the instance
IntegerGlobal
Was this page helpful? Yes No Submitting... Thank you

Comments