How many ContextName can be define in dlt_logstorage.conf? #621
-
Is there any maximum limit to define CTID in dlt_logstorage.conf? Issue: [FILTER1] |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 3 replies
-
Hello All, I have checked and below is my observation. Dlt-daemon parses the dlt_logstorage.conf file, line by line. Eg: In above filter key and value can be, Key2: ContextName and like wise. Maximum 100 character can be parsed for value. Code: If we increase the value of DLT_CONFIG_FILE_ENTRY_MAX_LEN then I can see the logs for beyond 20th CTID. Thank you! |
Beta Was this translation helpful? Give feedback.
-
Hello @Somesh55 |
Beta Was this translation helpful? Give feedback.
-
Hello @duvanan13 , @michael-methner, @minminlittleshrimp, |
Beta Was this translation helpful? Give feedback.
-
Hello @Somesh55 |
Beta Was this translation helpful? Give feedback.
-
Hello all, This function is called whenever there is section detected (FILTER). Thus, we should not change the limit of entry (100), it related to other security vulnerability (we need to control the limit size). I suggest you should split your key into sections (many FILTERs). Hash table key consists of "APID:CTID", so it is not a matter at all to config multi FILTER sections, e.g:
Hello @Somesh55 , @duvanan13 |
Beta Was this translation helpful? Give feedback.
-
Hello @minminlittleshrimp @michael-methner @duvanan13, |
Beta Was this translation helpful? Give feedback.
Hello all,
I have a deeper look into the source code today.
What I see is that this function is the function we are talking about, not the one on previous comment:
dlt-daemon/src/shared/dlt_config_file_parser.c
Line 518 in 35f599d
This function is called whenever there is section detected (FILTER).
Thus, we should not change the limit of entry (100), it related to other security vulnerability (we need to control the limit size).
I suggest you should split your key into sections (many FILTERs).
Hash table key consists of "APID:CTID", so it is not a matter at all to config multi FILTER sections, e.g: