Head
The plugin supports the following configuration parameters:
This mode is useful to get a specific line. This is an example to get CPU frequency from /proc/cpuinfo.
Cpu frequency is “cpu MHz : 2791.009”. We can get the line with this configuration file.
Output is
Getting Started
The following example will read events from the /proc/uptime file, tag the records with the uptime name and flush them back to the stdout plugin:
In your main configuration file append the following Input & Output sections:
e.g. 1.5s = 1s + 500000000ns