brandon
03/15/2024, 6:10 PMbody
?brandon
03/15/2024, 6:24 PM11:13:39 Unable to establish a connection to the database. It may be down.
Connection string=Provider=OraOLEDB.Oracle;Data Source=DB01;USER ID=USER01;Password=Password01;
Error=ORA-12560: TNS:protocol adapter error
Stack trace= at System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConnectionString constr, OleDbConnection connection)
at System.Data.OleDb.OleDbConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject)
at System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionInternal.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
at System.Data.OleDb.OleDbConnection.Open()
at V02Net.CSIBasicWeb.getSessMgrConn() in C:\M5\M5-AppCode\App_Code\CSIBasicWeb.cs:line 1856
what type of regex is supported - can we do a regex replacement of the Password
value in the connection string?
i don't think i want to parse out the connection string to fields, as i'm guessing i'd have to parse out all the other chunks of the log entry as well, and on top of that, can we even parse out the attributes twice? ie, parse out the connection string, error, stack trace, and then from connection string, parse out the key/value pairs, then remove the Password
?nitya-signoz
03/16/2024, 2:46 AMreplace_all_matches
brandon
03/18/2024, 3:12 PMbrandon
03/18/2024, 3:25 PMtransform
processor in the otel-collector-config.yaml
file?nitya-signoz
03/18/2024, 3:30 PMbrandon
03/18/2024, 3:43 PMpipelines
block under services
in the collector config? so like under logs:
, processors: [transform, batch]
?nitya-signoz
03/18/2024, 3:44 PMbrandon
03/18/2024, 3:50 PMbrandon
03/18/2024, 3:51 PMbrandon
03/18/2024, 3:54 PMnitya-signoz
03/18/2024, 3:56 PMbrandon
03/18/2024, 3:56 PMnitya-signoz
03/18/2024, 3:57 PMbrandon
03/18/2024, 3:57 PMbrandon
03/18/2024, 4:02 PMbrandon
03/18/2024, 4:03 PMnitya-signoz
03/18/2024, 4:04 PMbrandon
03/18/2024, 4:04 PMnitya-signoz
03/18/2024, 4:07 PMbrandon
03/18/2024, 4:09 PMnitya-signoz
03/18/2024, 4:10 PMbrandon
03/18/2024, 4:11 PMbrandon
03/18/2024, 4:24 PMfilelog/appname
) huh?nitya-signoz
03/18/2024, 4:28 PMwhere
clause https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/pkg/ottl#check-if-an-attribute-exists
eg:-
where attributes["recevier_name"] == "appname"
nitya-signoz
03/18/2024, 4:30 PMfilelog:
include: [ /var/log/myservice/*.json ]
attributes:
receiver_name: app1
brandon
03/18/2024, 4:34 PMfilelog/app1
, but instead, as:
filelog:
...
attributes:
receiver_name: app1
nitya-signoz
03/18/2024, 5:42 PMfilelog/app1:
include: [ /var/log/myservice/*.json ]
attributes:
receiver_name: app1
brandon
03/19/2024, 3:16 PMbrandon
03/19/2024, 3:40 PMbrandon
03/21/2024, 7:49 PMnitya-signoz
03/22/2024, 8:11 AMbrandon
03/28/2024, 3:17 PMbrandon
03/28/2024, 4:20 PMbrandon
04/02/2024, 9:36 PMnitya-signoz
04/03/2024, 5:04 AMstart_at: beginning
https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/receiver/filelogreceiver/README.md
but here the logs need to be present in the source file.brandon
04/03/2024, 3:46 PMstart_at: beginning
, so that should be easy.nitya-signoz
04/04/2024, 4:48 AMbrandon
04/04/2024, 3:49 PMbrandon
04/04/2024, 3:53 PMnitya-signoz
04/04/2024, 4:02 PMbrandon
04/09/2024, 9:15 PMbrandon
04/09/2024, 9:16 PM