coussej / node-opcua-logger

An OPCUA Client for logging data to InfluxDB! 🔌 🏭
https://www.factry.io
MIT License
179 stars 63 forks source link

Unable to parse #52

Closed azwald closed 3 years ago

azwald commented 4 years ago

Hi, I got this issue from alpha 2.0 build

 {"error":"unable to parse 'Oil 1 Real,equipment=Mixer\\ 1,status=Good value=12.5 1593421231055000000': invalid field format
unable to parse 'Cool Mix Control Temp,equipment=Mixer\\ 1,status=Good value=464 1593421231040000000': invalid field format

and this is the config for that metric

[[metrics]]
measurement = "Oil 1 Real"
dataType    = "number"
tags        = { equipment = "Mixer 1" }
nodeId      = "ns=2;s=_AdvancedTags.Oil Group.Oil 1 Real"
method      = "polled"
interval    = 300000

basically, all metrics are failed from being written to influxdb, any pointers for help?

coussej commented 4 years ago

First thought: could you try without spaces in the measurement name? If it works like that, it's a bug in our code with spaces in the name, and we should fix it :-)

On Thu, 2 Jul 2020 at 08:23, azwald notifications@github.com wrote:

Hi, I got this issue from alpha 2.0 build

{"error":"unable to parse 'Oil 1 Real,equipment=Mixer\ 1,status=Good value=12.5 1593421231055000000': invalid field format unable to parse 'Cool Mix Control Temp,equipment=Mixer\ 1,status=Good value=464 1593421231040000000': invalid field format

and this is the config for that metric

[[metrics]] measurement = "Oil 1 Real" dataType = "number" tags = { equipment = "Mixer 1" } nodeId = "ns=2;s=_AdvancedTags.Oil Group.Oil 1 Real" method = "polled" interval = 300000

basically, all metrics are failed from being written to influxdb, any pointers for help?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/coussej/node-opcua-logger/issues/52, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACL34VZIQ7X2X4DE77IKA4LRZQRUZANCNFSM4OOR5XFA .

azwald commented 4 years ago

tried changing the space, and it works! but I think the old data in buffer keep trying to be written to db, how to clear the buffer? thanks

coussej commented 4 years ago

Just clear the buffer files in the buffer folder that was created. :-)

On Thu, 2 Jul 2020 at 10:49, azwald notifications@github.com wrote:

tried changing the space, and it works! but I think the old data in buffer keep trying to be written to db, how to clear the buffer? thanks

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/coussej/node-opcua-logger/issues/52#issuecomment-652877410, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACL34V5TNGXDFD4NOT4JC3LRZRCZVANCNFSM4OOR5XFA .

azwald commented 4 years ago

thanks for the help! for now it seems I'd need to rename all measurements