Events-csv User Manual: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 19: Line 19:
==headers==
==headers==


Scan the CSV stream and display the headers, as they are identified.
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 a zero-based indexed list of headers. The index can then be used to extract the values corresponding to that specific header from the stream.


  csv headers ./sample.csv
  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)

Revision as of 19: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 a zero-based indexed list of headers. The index can then be used to extract the values corresponding to that specific header from the stream.

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)