Events-csv User Manual: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 7: Line 7:
Usage on files:
Usage on files:


  csv [''[[Events-api_Concepts#Query|query]]''] [-o ''output-spec''] <input-file.csv>
  csv [''[[#Commands|command]]''] [''[[Events-api_Concepts#Query|query]]''] [-o ''output-spec''] <input-file.csv>


Usage on pipes:
Usage on pipes:


  tail -f input.csv | csv [''[[Events-api_Concepts#Query|query]]''] [-o ''output-spec'']
  tail -f input.csv | csv [''[[#Commands|command]]''] [''[[Events-api_Concepts#Query|query]]''] [-o ''output-spec'']


=Concepts=
=Concepts=

Revision as of 17:03, 22 September 2017

Internal

Overview

Usage on files:

csv [command] [query] [-o output-spec] <input-file.csv>

Usage on pipes:

tail -f input.csv | csv [command] [query] [-o output-spec]

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 number of 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 lines. 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:
  1: timestamp(time:MM/dd/yy HH:mm:ss)
  2: CPU User Time(string)
  3: CPU Kernel Time(string)
  4: CPU I/O Wait Time(string)