Group: Moderators
Posts: 1.2K,
Visits: 4.3K
|
Glad to hear the behaviour is looking better.
LogViewPlus doesn't really do anything fancy when trying to determine the data type. It tries to identify numeric data which can be parsed as a double or integer. If this check fails, the data will be treated as a string. For each column, LogViewPlus will check up to 2000 column entries regardless of the size of the log file. For large files, these entries will be checked randomly. For small files, all entries should be checked.
If LogViewPlus finds a lot of empty data values, the data type will be assumed to be a string. However, LogViewPlus tries to be fault tolerant. If a small number (currently this would be less than 5%) of empty values are found, these will default to a value of zero rather than treating the entire column as string data.
I suspect the problem here is with how your custom parser is providing data for the 'optional' columns. LogViewPlus makes a core assumption that columns are not optional and are consistent for a given parser configuration. Trying to work around this limitation may be causing the issue. I can suggest two alternatives to optional columns:
1. Provide a configuration flag to specify which columns should be included. 2. Include all columns for all requests. Default data here should match a consistent data type of the column. Data types should not change between instances.
Hope that helps,
Toby
|