Manually Specify Time Zone and Character Encoding for Files
You can manually specify the properties for the log files by editing the configuration properties in the agent installation folder.
You can perform this task for all the logs except the Windows events.
-
If you want to apply the properties on specific patterns and / or log sources, then make a note of the pattern ID and the source ID. Open the config xml file under the agent installation folder agent_inst/state/laStorage/os_file/os_file.xml.
- Pattern ID example:
<Pattern id="495071102827757094" name="/tmp/w*.mgr" include="true">
- Source ID example:
<LogSource id="-2574377491167724513" name="SS Concurrent Manager Logs" sourceType="os_file"/>
The agent installation folder location varies depending on the source type. For example, the location is agent_inst/state/laStorage/database_sql/database_sql.xml for SQL Database.
- Pattern ID example:
-
Edit the properties file emd.properties in the location agent_inst/config/emd.properties and add the following property to override the default configuration of Oracle Cloud Logging Analytics:
loganalytics.src.override_config=true
-
Specify the time zone
tz
and character encodingenc
properties in the file emd.properties by selecting from one of the following examples:-
Apply the properties for all the sources and patterns:
loganalytics.src.addl_src_ptn_configs=tz=UTC,enc=EUC-JP
-
Apply the properties only for specific log sources:
loganalytics.src.addl_src_ptn_configs=srcid=-2574377491167724513,tz=UTC,enc=EUC-JP;srcid=-2574377491167724512,enc=UTF-8
In this example, the time zone
UTC
and character encodingEUC-JP
properties are applied for the source-2574377491167724513
, and character encoding propertyUTF-8
is applied for the source-2574377491167724512
. -
Apply the properties only for specific patterns:
loganalytics.src.addl_src_ptn_configs=ptnid=495071102827757094,tz=UTC,enc=EUC-JP;ptnid=495071102827757095,enc=UTF-8
In this example, the time zone
UTC
and character encodingEUC-JP
properties are applied for the pattern495071102827757094
, and character encoding propertyUTF-8
is applied for the pattern495071102827757095
. -
Apply the properties only for a combination of specific patterns and sources:
loganalytics.src.addl_src_ptn_configs=srcid=-2574377491167724513,ptnid=495071102827757094,tz=UTC,enc=EUC-JP;srcid=-2574377491167724513,ptnid=495071102827757095,enc=UTF-8
In this example, the time zone
UTC
and character encodingEUC-JP
properties are applied for logs with the pattern495071102827757094
and the source-2574377491167724513
, and character encoding propertyUTF-8
is applied for logs with the pattern495071102827757095
and the source-2574377491167724513
.
-