class Fluent::Plugin::ClaymoreParser
Constants
- CONNECTION_LOST
Extract connection lost
Example: 20:15:08:451 2338 ETH: Connection lost, retry in 20 sec.. { 'asset' => 'ETH', 'connection_lost' => 1 }
- EXTRACTORS
- GPU_SHARE_FOUND
Extract gpu share found
Example: 11:04:02:920 234c ETH: 12/17/17-11:04:02 - SHARE FOUND - (GPU 5) { 'asset' => 'ETH', 'gpu' => 5, 'share_found' => 1 }
- GPU_TEMP
Extract gpu index, temperature, old and new fan speed
Example: 09:27:02:820 1834 GPU 4 temp = 45, old fan speed = 0, new fan speed = 75 { 'gpu' => 4, 'old_fan' => 0, 'new_fan' => 75, 'temperature' => 45 }
- INCORRECT_SHARE
Public Instance Methods
parse(text) { |time, result| ... }
click to toggle source
# File lib/fluent/plugin/parser_claymore.rb, line 54 def parse(text) EXTRACTORS .map { |extractor| extractor.call(text) } .reject { |result| result.nil? || result.empty? } .compact .flatten .each { |result| yield time, result } end