News:

Welcome on our forum!

Main Menu

Adv TCP/IP Data logger

Started by jouniraiha, June 30, 2009, 05:29:27 AM

Previous topic - Next topic

jouniraiha

Hi I am evaluating TCP data logger. My intention is to read from one TCP port (got that working), transform the data and redirect it to another TCP port. I downloaded redirection plugin, but how to make this process happen, i.e. parse and output only the parts of the string required and push it into another TCP port?
I will purchase a license if this is possible and easy to do.

Arthur Grasin

Could you post your data example and describe what do you want to redirect from this data?
If you like my work, please take a few seconds and add feedback about our site or our software [here]

jouniraiha

Hi,

here is one example of data I would like to process before redirecting it to another port:
info=ch=0&configmask=128&almnum=1&almnumold=0&ev0[sts=begin,tp=appear,zn=2,rl=4,bb=46488:37822:3805:4629,oc=-1]&timestamp=1245752047,447770

I am interested to forward only [sts=begin,tp=appear,zn=2,oc=-1] or [sts=begin,tp=appear,zn=2]

Arthur Grasin

Please, look at attached images. Please, note, that you should create 2 configurations. In my case, 10.153.133.132:3001 will receive the data and will redirect parsed values to 10.153.133.132:3002.
If you like my work, please take a few seconds and add feedback about our site or our software [here]

jouniraiha

Hi,
thanks, now I get the data redirected, but how about the transforming? I need to drop some data away from input string, like
input: [sts=begin,tp=appear,zn=2,rl=4,bb=46488:37822:3805:4629,oc=-1]
output: [sts=begin,tp=appear,zn=2,oc=-1]

Arthur Grasin

You may use the Expressions plugin and transform the FULL_DATA_PACKET variable. Just place, the Expressions plugin before the Data redirection plugin. Is the format of this string constant? For example, the oc=-1 is last in the string...
If you like my work, please take a few seconds and add feedback about our site or our software [here]

jouniraiha

Hi,
oc= is static, but the value varies, ([\-\d]+) should match. The string ends with ].

Arthur Grasin

Hello.

Please, look at attached images.

All parser items from 3rd image are attached in the "attempt1.txt" file. You may load it on the "Data parsing" page.

The expression from the last images is:

FULL_DATA_PACKET='['+ITEM_STS+','+ITEM_TP+','+ITEM_ZN+','+ITEM_OC+']'
If you like my work, please take a few seconds and add feedback about our site or our software [here]

jouniraiha

OK, thanks. I will try that.

What license do I need, if I want to use this parsing feature and redirecting? Is Professional enough?

Arthur Grasin

No, you need the Enterprise license. Only this license supports filter plugins, that you need in your configuration.
If you like my work, please take a few seconds and add feedback about our site or our software [here]

jouniraiha

Hi, I registered and purchased enterprise version, but when I try to run it either desktop or service mode, it will stop working in ~7 minutes. Here attached prints from event log. From application log I see only messages, no errors.

How can I check that the registration is OK and there are no trial limitations for number of messages or time limitations?


BR:Jouni

Arthur Grasin

It is necessary to verify that the service can read from the following registry node (the key is stored there).

HKEY_LOCAL_MACHINE\SOFTWARE\AGG Software\Advanced TCP/IP Data Logger

Please, note that the service starts with the "LOCAL SYSTEM" account rights (by default of course).
If you like my work, please take a few seconds and add feedback about our site or our software [here]

jouniraiha

Hi,

I created a dedicated local user account for the service, put that user in local administrators and the service could start. Now it run longer than ever, but still only ~45 minutes. What I should try next? Do you need any special logs? What to turn on?

Arthur Grasin

Please, activate the program log file with all types of messages (Program options - Protocol and error handling) and post this log here.
If you like my work, please take a few seconds and add feedback about our site or our software [here]