Events-csv User Manual: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 21: Line 21:
Scan the CSV stream and display the headers, as they are identified in the stream. The command displays the line on which the header is found, and then, for each header:
Scan the CSV stream and display the headers, as they are identified in the stream. The command displays the line on which the header is found, and then, for each header:
* the index that can be used to access the value that corresponds the header in a data line associated with the header (follows the header line in the data stream). The index can be used for [[Events-processing_output#Displaying_Properties_with_a_Specific_Index|index-based output]].
* the index that can be used to access the value that corresponds the header in a data line associated with the header (follows the header line in the data stream). The index can be used for [[Events-processing_output#Displaying_Properties_with_a_Specific_Index|index-based output]].
* the header name
* the header name.
* the header type
* the header type.
* optionally, the header format
* optionally, the header format.


  csv headers ./sample.csv
  csv headers ./sample.csv

Revision as of 22:34, 29 August 2017

Internal

Overview

Usage:

tail -f input.csv | csv [query] [-o output-spec] 
csv [query] [-o output-spec] <input-file.csv>

Concepts

events-csv Concepts

Commands

headers

Scan the CSV stream and display the headers, as they are identified in the stream. The command displays the line on which the header is found, and then, for each header:

  • the index that can be used to access the value that corresponds the header in a data line associated with the header (follows the header line in the data stream). The index can be used for index-based output.
  • the header name.
  • the header type.
  • optionally, the header format.
csv headers ./sample.csv

line 1 header:
  0: timestamp(time:MM/dd/yy HH:mm:ss)
  1: CPU User Time(string)
  2: CPU Kernel Time(string)
  3: CPU I/O Wait Time(string)