[srsran-users] logs related questions

Patrycja Palus (TME) patrycja.palus at external.toyota-europe.com
Wed May 8 06:07:35 UTC 2024


•• PROTECTED 関係者外秘

Hello,

Could you please look at me request once you’re available?
Thank you in advance!

Br,
Patrycja

From: Patrycja Palus (TME) <patrycja.palus at external.toyota-europe.com>
Sent: 03 May 2024 12:44
To: Laurent Tobaly (TME) <laurent.tobaly at toyota-europe.com>; Antonio Albanese <antonioalbanese15 at gmail.com>; J Giovatto <jgiovatto at adjacentlink.com>
Cc: srsran-users at lists.srsran.com
Subject: Re: [srsran-users] logs related questions

Hello all,

Thank you for the fast response! Thank you also for suggestions. Could you elaborate topic of sockets? Is there in srsRAN already developed structures which could help me capture events? Could you also recommend library, which could be helpful in such an activity?

Br,
Patrycja
________________________________
From: Laurent Tobaly (TME) <laurent.tobaly at toyota-europe.com<mailto:laurent.tobaly at toyota-europe.com>>
Sent: Friday, May 3, 2024 10:06 AM
To: Antonio Albanese <antonioalbanese15 at gmail.com<mailto:antonioalbanese15 at gmail.com>>; J Giovatto <jgiovatto at adjacentlink.com<mailto:jgiovatto at adjacentlink.com>>; Patrycja Palus (TME) <patrycja.palus at external.toyota-europe.com<mailto:patrycja.palus at external.toyota-europe.com>>
Cc: srsran-users at lists.srsran.com<mailto:srsran-users at lists.srsran.com> <srsran-users at lists.srsran.com<mailto:srsran-users at lists.srsran.com>>
Subject: Re: [srsran-users] logs related questions


•• PROTECTED 関係者外秘

@Patrycja Palus (TME)<mailto:patrycja.palus at external.toyota-europe.com> included again


Best regards,





Laurent Tobaly  | ローラン トバリー

Electronics Engineering division

Engineer

+32 2 7123 481

Laurent.Tobaly at toyota-europe.com<mailto:Laurent.Tobaly at toyota-europe.com>



[Corporate_Combined_vertical]

________________________________
From: Antonio Albanese <antonioalbanese15 at gmail.com<mailto:antonioalbanese15 at gmail.com>>
Sent: 02 May 2024 15:25
To: J Giovatto <jgiovatto at adjacentlink.com<mailto:jgiovatto at adjacentlink.com>>; Laurent Tobaly (TME) <laurent.tobaly at toyota-europe.com<mailto:laurent.tobaly at toyota-europe.com>>
Cc: srsran-users at lists.srsran.com<mailto:srsran-users at lists.srsran.com> <srsran-users at lists.srsran.com<mailto:srsran-users at lists.srsran.com>>
Subject: Re: [srsran-users] logs related questions

CAUTION:This e-mail originated outside our organisation. Do not click links or open attachments unless you recognise the sender and know the content is safe.
You don't often get email from antonioalbanese15 at gmail.com<mailto:antonioalbanese15 at gmail.com>. Learn why this is important<https://aka.ms/LearnAboutSenderIdentification>
Along Joe's lines, a while back I was looking into hooking up https://github.com/grafana/loki to the logger. I started working on it but never finished, so I can't guarantee the overall performance.

Antonio
ᐧ

On Thu, 2 May 2024 at 15:11, J Giovatto <jgiovatto at adjacentlink.com<mailto:jgiovatto at adjacentlink.com>> wrote:
Hi,

Looking at lib/src/srslog/sinks/file_utils.h   it looks like the logger uses std::fwrite, so any delay will be associated with its behavior as far a I can see.

The log buffer for the EPC probably does not reach size needed to flush to the file while running, when the app closes any pending data is flushed.

You can lookup std::write buffering for more.

Well the brute force way would be to call flush after every write call, with expense of slowing down the application.

A better approach might be to create another type of sink (like a socket) for the logs/events you want to track and listen for those instead of parsing files.

Joe


On 5/2/24 05:13, Patrycja Palus (TME) wrote:

•• PROTECTED 関係者外秘

Hello all,

I hope you all doing well! Currently I work on project, where I use srsRAN as a network generator, but to improve it I create some scripts to automate running the network. For that I need to analyse real time logs, that are generated on eNB and EPC side. I'm trying to figure out the logic that stands behind writing and savings logs, but I can't recognize any pattern. So here are my questions:


  1.  What is expected delay in writing logs? Other words, how much time should I expect from the action from eNB/EPC to log to appear on the log file?

  1.  Why EPC logs appear only when I stop running EPC? So far, I don't have any UE to connect, is there a chance that software needs to run for longer to write down logs or there must be more lines to be generated?

  1.  Is there the way for me to configure somehow logs so I'm able to set how often log file is refreshed with new lines? Or maybe there is other way for me to capture logs before they appear in log files?

I hope you can help me with solving my problems 🙂

Br,
Patrycja

This e-mail may contain confidential information. If you are not an addressee or otherwise authorised to receive this message, you should not use, copy, disclose or take any action based on this e-mail. If you have received this e-mail in error, please inform the sender promptly and delete this message and any attachments immediately.



_______________________________________________

srsran-users mailing list

srsran-users at lists.srsran.com<mailto:srsran-users at lists.srsran.com>

https://lists.srsran.com/mailman/listinfo/srsran-users


_______________________________________________
srsran-users mailing list
srsran-users at lists.srsran.com<mailto:srsran-users at lists.srsran.com>
https://lists.srsran.com/mailman/listinfo/srsran-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.srsran.com/pipermail/srsran-users/attachments/20240508/1f1ce676/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 24920 bytes
Desc: image001.png
URL: <https://lists.srsran.com/pipermail/srsran-users/attachments/20240508/1f1ce676/attachment-0001.png>


More information about the srsran-users mailing list