diff options
-rw-r--r-- | bro-script/pasad-simple.bro | 6 | ||||
-rw-r--r-- | bro-script/pasad-simple.log | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/bro-script/pasad-simple.bro b/bro-script/pasad-simple.bro index d5f3e10..06ae9b2 100644 --- a/bro-script/pasad-simple.bro +++ b/bro-script/pasad-simple.bro @@ -16,7 +16,7 @@ export { rtype: string &log; tid_request: count &log; tid_response: count &log &optional; - start_adress: count &log; + start_address: count &log; quantity: count &log; registers: ModbusRegisters &log &optional; }; @@ -31,9 +31,9 @@ event bro_init() &priority=5 Log::create_stream(Pasad::LOG, [$columns=Info, $path="pasad"]); } -event modbus_read_holding_registers_request(c: connection, headers: ModbusHeaders, start_adress: count, quantity: count) +event modbus_read_holding_registers_request(c: connection, headers: ModbusHeaders, start_address: count, quantity: count) { - local rec: Info = [$ts_request=network_time(), $rtype="holding", $tid_request=headers$tid, $start_adress=start_adress, $quantity=quantity]; + local rec: Info = [$ts_request=network_time(), $rtype="holding", $tid_request=headers$tid, $start_address=start_address, $quantity=quantity]; c$pasad = rec; } diff --git a/bro-script/pasad-simple.log b/bro-script/pasad-simple.log index e7979e5..8bdc706 100644 --- a/bro-script/pasad-simple.log +++ b/bro-script/pasad-simple.log @@ -3,8 +3,8 @@ #empty_field (empty) #unset_field - #path pasad -#open 2017-09-25-20-54-23 -#fields ts_request ts_response rtype tid_request tid_response start_adress quantity registers +#open 2017-09-25-21-09-19 +#fields ts_request ts_response rtype tid_request tid_response start_address quantity registers #types time time string count count count count vector[count] 1480337775.934099 1480337775.971379 holding 2538 2538 80 8 48979,7282,15636,9709,48404,9709,16943,32237 1480337776.128206 1480337776.131736 holding 2547 2547 60 12 17173,45657,49927,27307,17146,46421,17120,57951,17107,22452,16795,13653 |