question

84740737 avatar image
0 Votes"
84740737 asked SwathiDhanwada-MSFT answered

Custom logs not accepting timestamp format

I am defining a custom log on Azure, which should have the following format:

[TIMESTAMP] MESSAGE

I tried creating manually a file with one of the format which the custom logs should recognize:

[27/Jul/2021:12:11:00 UTC] avviato
[27/Jul/2021:12:12:00 UTC] avviato
[27/Jul/2021:12:13:00 UTC] avviato
[27/Jul/2021:12:14:00 UTC] avviato
[27/Jul/2021:12:15:00 UTC] avviato
[27/Jul/2021:12:16:00 UTC] avviato

The timestamp should match the "dd/MMM/yyyy:HH:mm:ss zzz" format, however it says it couldn't parse it and to select a different format.

Why is it not recognizing the timestamp format? what am I doing wrong?

azure-monitor
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

SwathiDhanwada-MSFT avatar image
0 Votes"
SwathiDhanwada-MSFT answered

@TassinariMatteo-3448 Thanks for bringing this to our notice. I have reproduced the issue from my end and I was facing similar issue. I have reached out to product team for a fix for this. I will provide an update on this soon.

As an alternative , kindly parse the logs with line breaks. Once the issue is fixed from our end, you can parse it using Timestamp format.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.