Udp listener not receiving events


Author
Message
HeinA
HeinA
New Member (6 reputation)New Member (6 reputation)New Member (6 reputation)New Member (6 reputation)New Member (6 reputation)New Member (6 reputation)New Member (6 reputation)New Member (6 reputation)New Member (6 reputation)
Group: Forum Members
Posts: 5, Visits: 5
'ello

I send events over Udp in Log4j format usin NLog from a MAUI application
Chainsaw receives the events, But LogViewPlus shows nothing.  I much prefer LogViewPlus and would love to understand what I'm doing wrong





Thank you in advance
LogViewPlus Support
LogViewPlus Support
Supreme Being (12K reputation)Supreme Being (12K reputation)Supreme Being (12K reputation)Supreme Being (12K reputation)Supreme Being (12K reputation)Supreme Being (12K reputation)Supreme Being (12K reputation)Supreme Being (12K reputation)Supreme Being (12K reputation)
Group: Moderators
Posts: 1.3K, Visits: 4.4K
Hi,

Thanks for reporting this issue.

The UDP listener is pretty straight-forward.  It works by writing the data received into a file in your temp directory.  From there, LogViewPlus opens and parses the temp file as normal.

If this isn't working, then either LogViewPlus isn't recieving the data or it is unable to parse the data received.

I can see you have already found the transfer log.  I assume it didn't say anything useful?

If you right click on your "Maui" file and go to Properties, you should be able to see the local file.  If you open the local file, does it have any data?

Thanks again,

Toby


HeinA
HeinA
New Member (6 reputation)New Member (6 reputation)New Member (6 reputation)New Member (6 reputation)New Member (6 reputation)New Member (6 reputation)New Member (6 reputation)New Member (6 reputation)New Member (6 reputation)
Group: Forum Members
Posts: 5, Visits: 5
Ok.  The local file has some contents, but it does not reflect on the UI:



Edited Last Month by HeinA
LogViewPlus Support
LogViewPlus Support
Supreme Being (12K reputation)Supreme Being (12K reputation)Supreme Being (12K reputation)Supreme Being (12K reputation)Supreme Being (12K reputation)Supreme Being (12K reputation)Supreme Being (12K reputation)Supreme Being (12K reputation)Supreme Being (12K reputation)
Group: Moderators
Posts: 1.3K, Visits: 4.4K
That's good news - it means that the networking aspects of your configuration appear to be working correctly.

It looks like the problem is with parsing the log file.  If you go into Settings -> Log Parsers -> Parser Mappings, you should see an entry which maps to a "localhost_4445" file.  You will need to update this setting to apply the correct parser mapping. 

From your screenshot, it looks like you just need to change it to use the Log4XmlParser:



It might help to first parse the file you have in your temp directory before retrying your UDP listener.  This will break the problem into two parts.

Hope that helps,

Toby
HeinA
HeinA
New Member (6 reputation)New Member (6 reputation)New Member (6 reputation)New Member (6 reputation)New Member (6 reputation)New Member (6 reputation)New Member (6 reputation)New Member (6 reputation)New Member (6 reputation)
Group: Forum Members
Posts: 5, Visits: 5
'ello

I tried something like that:

I have the following:


If I try and add another for localhost_4445, I get an error



HeinA
HeinA
New Member (6 reputation)New Member (6 reputation)New Member (6 reputation)New Member (6 reputation)New Member (6 reputation)New Member (6 reputation)New Member (6 reputation)New Member (6 reputation)New Member (6 reputation)
Group: Forum Members
Posts: 5, Visits: 5
OK....

I first had to delete my Datas Source:


then I could add a mapping:


Then I re-added the Data Source

now I'm getting the events:


Thanx for your help!
LogViewPlus Support
LogViewPlus Support
Supreme Being (12K reputation)Supreme Being (12K reputation)Supreme Being (12K reputation)Supreme Being (12K reputation)Supreme Being (12K reputation)Supreme Being (12K reputation)Supreme Being (12K reputation)Supreme Being (12K reputation)Supreme Being (12K reputation)
Group: Moderators
Posts: 1.3K, Visits: 4.4K
Excellent!  Thanks for letting me know.  Smile

In this case, the datasource and parser configuration are working together.  You could have configured them manually to make that collaboration work, but deleting and recreating works too.

I think there may have been some confusion because you were modifying the "Basic Parser" - which is an existing parser.  Usually, when you want to parse a new file, you create a new parser configuration rather than editing an existing one.

Thanks again,

Toby
HeinA
HeinA
New Member (6 reputation)New Member (6 reputation)New Member (6 reputation)New Member (6 reputation)New Member (6 reputation)New Member (6 reputation)New Member (6 reputation)New Member (6 reputation)New Member (6 reputation)
Group: Forum Members
Posts: 5, Visits: 5
Yes.. I tried creating a new Parser, but I kept getting the "Configuration name already in use error"
Only once I deleted the data source, could I create a parser with the correct pattern
LogViewPlus Support
LogViewPlus Support
Supreme Being (12K reputation)Supreme Being (12K reputation)Supreme Being (12K reputation)Supreme Being (12K reputation)Supreme Being (12K reputation)Supreme Being (12K reputation)Supreme Being (12K reputation)Supreme Being (12K reputation)Supreme Being (12K reputation)
Group: Moderators
Posts: 1.3K, Visits: 4.4K
Thanks for the update.

The "Configuration name already in use" error message you saw is expected. Each parser configuration in LogViewPlus must have a unique configuration name.

My guess is that when you tried to create a new parser, you may have inadvertently used a name that was already in use, such as "Basic Parser".

Let me know if that makes sense or if you run into any other issues.

Toby
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Login

Explore
Messages
Mentions
Search