Index
All Classes and Interfaces|All Packages|Constant Field Values
C
- call() - Method in class com.github.isuhorukov.log.watcher.PostgreSqlJson
-
Calls the method responsible for watching PostgreSQL logs.
- close() - Method in class com.github.isuhorukov.log.watcher.EnrichmentOff
-
Performs no action as there are no resources to close in this implementation.
- close() - Method in class com.github.isuhorukov.log.watcher.LogEnricherPostgreSql
-
Closes the database connection and releases any resources held by this log enricher.
- close() - Method in class com.github.isuhorukov.log.watcher.PostgreSqlJson
- com.github.isuhorukov.log.watcher - package com.github.isuhorukov.log.watcher
-
The
com.github.isuhorukov.log.watcher
package provides a command-line tool for reading PostgreSQL DBMS logs in JSON format and sending them to an OpenTelemetry collector. - currentLogPositionFile - Variable in class com.github.isuhorukov.log.watcher.PostgreSqlJson
-
Path to file to save current processed position in log files.
E
- enricherApplicationName() - Method in class com.github.isuhorukov.log.watcher.EnrichmentOff
-
Returns
null
as this implementation has no application name. - enricherApplicationName() - Method in interface com.github.isuhorukov.log.watcher.LogEnricher
-
Returns the application name of the log enricher.
- enricherApplicationName() - Method in class com.github.isuhorukov.log.watcher.LogEnricherPostgreSql
-
Returns the application name associated with this log enricher.
- EnrichmentOff - Class in com.github.isuhorukov.log.watcher
-
A no-op implementation of
LogEnricher
that disables log enrichment. - EnrichmentOff() - Constructor for class com.github.isuhorukov.log.watcher.EnrichmentOff
G
- getStatement(String) - Method in class com.github.isuhorukov.log.watcher.EnrichmentOff
-
Returns
null
as no statement enrichment is performed. - getStatement(String) - Method in interface com.github.isuhorukov.log.watcher.LogEnricher
-
Retrieves the SQL statement associated with the given query ID.
- getStatement(String) - Method in class com.github.isuhorukov.log.watcher.LogEnricherPostgreSql
-
Retrieves the SQL query corresponding to the provided query ID from the cache or the PostgreSQL database.
- getVersion() - Method in class com.github.isuhorukov.log.watcher.VersionProvider
-
Retrieves the version information from the
version.properties
file. - getWatchService() - Method in class com.github.isuhorukov.log.watcher.PostgreSqlJson
-
Returns a new
WatchService
instance that can be used to watch objects for changes in a file tree.
I
- initialLogImport(File) - Method in class com.github.isuhorukov.log.watcher.PostgreSqlJson
-
Performs the initial import of PostgreSQL JSON log files from the specified directory.
- initLogEnricher() - Method in class com.github.isuhorukov.log.watcher.PostgreSqlJson
-
Initializes the log enricher for PostgreSQL logs.
L
- LOG_WATCHER_ENRICHER - Static variable in class com.github.isuhorukov.log.watcher.LogEnricherPostgreSql
-
Represents the identifier for the log watcher enricher.
- logEnricher - Variable in class com.github.isuhorukov.log.watcher.PostgreSqlJson
-
LogEnricher instance to use in log processing.
- LogEnricher - Interface in com.github.isuhorukov.log.watcher
-
Interface for enriching log entries with additional information from a database.
- LogEnricherPostgreSql - Class in com.github.isuhorukov.log.watcher
-
The
LogEnricherPostgreSql
class implements theLogEnricher
interface to provide log enrichment from a PostgreSQL database. - LogEnricherPostgreSql(String, int, String, String, String, int) - Constructor for class com.github.isuhorukov.log.watcher.LogEnricherPostgreSql
-
Constructs a new
LogEnricherPostgreSql
instance for enriching PostgreSQL logs.
M
- main(String[]) - Static method in class com.github.isuhorukov.log.watcher.PostgreSqlJson
-
Main method to execute the application.
- maximumQueryCacheSize - Variable in class com.github.isuhorukov.log.watcher.PostgreSqlJson
-
Database query cache size.
P
- parseLogLine(String, String) - Method in class com.github.isuhorukov.log.watcher.PostgreSqlJson
-
Parses a single line of PostgreSQL JSON log and logs it according to its severity level.
- posgreSqlDatabase - Variable in class com.github.isuhorukov.log.watcher.PostgreSqlJson
-
The database name.
- posgreSqlHost - Variable in class com.github.isuhorukov.log.watcher.PostgreSqlJson
-
The host name of the PostgreSQL server.
- posgreSqlPassword - Variable in class com.github.isuhorukov.log.watcher.PostgreSqlJson
-
Password for PG connection.
- posgreSqlPort - Variable in class com.github.isuhorukov.log.watcher.PostgreSqlJson
-
The port number the PostgreSQL server is listening on.
- posgreSqlUserName - Variable in class com.github.isuhorukov.log.watcher.PostgreSqlJson
-
The database user on whose behalf the connection is being made.
- position - Variable in class com.github.isuhorukov.log.watcher.PostgreSqlJson
-
Store current log position for each log file.
- positionFileTasks() - Method in class com.github.isuhorukov.log.watcher.PostgreSqlJson
-
Manages the tasks related to handling positional information for PostgreSQL log files.
- PostgreSqlJson - Class in com.github.isuhorukov.log.watcher
-
The
PostgreSqlJson
class is a command-line tool for reading PostgreSQL DBMS logs in JSON format and sending them to an OpenTelemetry collector. - PostgreSqlJson() - Constructor for class com.github.isuhorukov.log.watcher.PostgreSqlJson
R
- readJsonLog(File) - Method in class com.github.isuhorukov.log.watcher.PostgreSqlJson
-
Reads a JSON log file and processes each line.
- registerWatchEvent(Path, WatchService) - Method in class com.github.isuhorukov.log.watcher.PostgreSqlJson
-
Registers the specified dir with the given watch service to listen for file creation and modification events.
S
- saveInterval - Variable in class com.github.isuhorukov.log.watcher.PostgreSqlJson
-
Interval of saving (in second) of the current read position in the log files.
- saveLogFilesPosition() - Method in class com.github.isuhorukov.log.watcher.PostgreSqlJson
-
Saves the current read positions of PostgreSQL log files.
V
- VersionProvider - Class in com.github.isuhorukov.log.watcher
-
Provides the version information of the project.
- VersionProvider() - Constructor for class com.github.isuhorukov.log.watcher.VersionProvider
W
- watchDir - Variable in class com.github.isuhorukov.log.watcher.PostgreSqlJson
-
Path to PostgreSQL log directory in JSON format.
- watchPostgreSqlLogs() - Method in class com.github.isuhorukov.log.watcher.PostgreSqlJson
-
Monitors the PostgreSQL log directory for changes and processes the logs.
All Classes and Interfaces|All Packages|Constant Field Values