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_DIRExamplecd 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_DIRis the temporary directory, which is by default inC:\ProgramData\OpeniT\Data\tempand$TARGET_DIRis the directory where to save the output file.REQUIRED:
Name Description --srcdirThe source directory where the CSV file(s) are located. --srcpatternThe 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 examplesrcpatternsare:*.csvsample*.csv*.csv*
--srcfilehandlingThis 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.parsedafter parsingleave- leave the file unmodified after parsing
--trgdirThe target directory where the converted file will be saved. Required LogparserCSV Parameters
OPTIONAL:
Name Description --debugThis will enable debugging when debugvalue is used.--formatThe format of the output. --logdirThe 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_DIRExamplecd /opt/openit/bin -
Run the command:
Command Syntax./openit_logparsercsv --srcdir "$TEMP_DIR/LogFileCollector" --srcpattern "*.data" --srcfilehandling rename --trgdir "$TARGET_DIR"where
$TEMP_DIRis the temporary directory, which is by default in/var/opt/openit/tempand$TARGET_DIRis the directory where to save the output file.REQUIRED:
Name Description --srcdirThe source directory where the CSV file is located. --srcpatternThe 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 examplesrcpatternsare:*.csvsample*.csv*.csv*
--srcfilehandlingThis 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.parsedafter parsingleave- leave the file unmodified after parsing
--trgdirThe target directory where the converted file will be saved. Required LogparserCSV Parameters
OPTIONAL:
Name Description --debugThis will enable debugging when debugvalue is used.--formatThe format of the output. --logdirThe 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.