|Tasks||Make sure to have nwlogcollectortools rpm installed in Log Collector. You can verify the same using:-|
#rpm -qa | grep -i nwlog
If it not installed already then please run below command:-
#yum install nwlogcollectortools
The NwEventReader tool can be used to read events stored in protobuf format, either either as streamed to the disk from the Log Collector (using the NGCP protocol), as stored on disk in persistent format as a result of stopping collection, or as pulled from the Message Broker using the NwAMPQReceiver tool.
--help - print this help message
--b64Format arg (=0) - Base 64 format output
--file arg - File to dump. This may be a file captured from streamed (NGCP) output from the Log Collector, or messages captured via the AMQPReceiver tool.
--printEvents arg (=1) - Print events
--verbose arg (=0) - Verbose output
--maxFileSize arg (=4294967295) - Max File Size
Interpret the input data as line-separated base-64 encoded event protobuf structures, as stored on disk as the result of collection shutdown by the in memory queue. This option is typically only used by development to analyze the contents of event data persisted between shutdown events.
The path from which to read events. If the files end in ".ngce" (as created via the NwAMQPReceiver tool), this command will assume the files are extracted from the Message Broker. Otherwise, this tool will interpret the event data as event protobuf data sent over the NGCP protocol (e.g., in the case of Content 3 export from the Log Collector.), unless the --b64Format is set to true (see above).
Boolean flag indicating whether to print event data to the console.
Sets verbose output, which may be useful in some cases.
The maximum size of the file to read (0 denotes unlimited).
1) Execute below command:- 2)
#NwEventReader --file /tmp/1479103918423-00000001.ngce --printEvents=1
2) Output would be similar to:-
[root@RLC bin]# NwEventReader --file /tmp/1479103918423-00000001.ngce --printEvents=1
NGCE Version: 1.0
Number of events: 1