This page is intentionally hidden from navigation but remains accessible via direct link. It is retained for internal reference purposes only and may contain outdated or transitional content.
LogparserCSV Configuration
The LogParserCSV is an application that will convert any CSV format file into Open iT standard data format.
Requirements
- Open iT Core Server version 9.4 or later
- Administrative rights
- CSV file with proper column naming
- Activated periodic log data collection of license manager(s)
Proper Column Naming for the Input CSV File
The LogparserCSV needs the correct header of the input CSV file to convert the file into the Open iT standard data format.
Make sure to follow these rules:
- Always start with
time:time
. Open iT standard format always start with the collection time. - The required columns are
product:string::*
andfeature:string::*
. The sorting in these two columns are not strict.
time:time,product:string::*,licenseid:string,duration:int64,siteid:string,featureid:string,feature:string::*,feature_version:string,user:string,host:string,used_licenses:int32
Converting CSV file(s) to Open iT Data Format
These are the required steps to convert CSV file(s) to Open iT standard data format:
- Windows
- Unix
-
Open a command prompt with Administrator level privileges.
-
Go to the bin directory, which is by default in
C:\Program Files\OpeniT\Core\bin
, run the command:Command Syntaxcd $BIN_DIR
Examplecd C:\Program Files\OpeniT\Core\bin
-
Run the command:
Command Syntaxopenit_logparsercsv --srcdir "$TEMP_DIR/LogFileCollector" --srcpattern "*.data" --srcfilehandling rename --trgdir "$TARGET_DIR"
where
$TEMP_DIR
is the temporary directory, which is by default inC:\ProgramData\OpeniT\Data\temp
and$TARGET_DIR
is the directory where to save the output file.REQUIRED:
Name Description --srcdir
The source directory where the CSV file(s) are located. --srcpattern
The file pattern(s) that will be read by the parser. By default, the value is *
, which will read all the file patterns in the source directory. Some examplesrcpatterns
are:*.csv
sample*.csv
*.csv*
--srcfilehandling
This parameter specifies what the binary will do after parsing. The possible values are: delete
- delete the source file after parsingrename
- rename the source file to.parsed
after parsingleave
- leave the file unmodified after parsing
--trgdir
The target directory where the converted file will be saved. Required LogparserCSV Parameters
OPTIONAL:
Name Description --debug
This will enable debugging when debug
value is used.--format
The format of the output. --logdir
The directory where the debug log will be saved. Optional LogparserCSV Parameters
Exampleopenit_logparsercsv --srcdir "C:\ProgramData\OpeniT\Data\temp\LogFileCollector" --srcpattern "*.data" --srcfilehandling rename --trgdir "C:\Program Files\OpeniT\Core\output"
The output file must be in the specified target directory.
-
Go to the bin directory, which is by default in
/opt/openit/bin
, run the command:Command Syntaxcd $BIN_DIR
Examplecd /opt/openit/bin
-
Run the command:
Command Syntax./openit_logparsercsv --srcdir "$TEMP_DIR/LogFileCollector" --srcpattern "*.data" --srcfilehandling rename --trgdir "$TARGET_DIR"
where
$TEMP_DIR
is the temporary directory, which is by default in/var/opt/openit/temp
and$TARGET_DIR
is the directory where to save the output file.REQUIRED:
Name Description --srcdir
The source directory where the CSV file is located. --srcpattern
The file pattern(s) that will be read by the parser. By default, the value is *
, which will read all the file patterns in the source directory. Some of the examplesrcpatterns
are:*.csv
sample*.csv
*.csv*
--srcfilehandling
This parameter specifies what the binary will do after parsing. The possible values are: delete
- delete the source file after parsingrename
- rename the source file to.parsed
after parsingleave
- leave the file unmodified after parsing
--trgdir
The target directory where the converted file will be saved. Required LogparserCSV Parameters
OPTIONAL:
Name Description --debug
This will enable debugging when debug
value is used.--format
The format of the output. --logdir
The directory where the debug log will be saved. Optional LogparserCSV Parameters
Example./openit_logparsercsv --srcdir "/var/opt/openit/temp/LogFileCollector" --srcpattern "*.data" --srcfilehandling rename --trgdir "/var/opt/openit/output"
The output file must be in the specified target directory.