sonic-buildimage icon indicating copy to clipboard operation
sonic-buildimage copied to clipboard

[Logrotate] Add log rotate configuration

Open fastiuk opened this issue 2 years ago • 3 comments

depends-on #61, #783

Why I did it

No be able to do the next things:

  • Perform log rotation separately for syslog and debug files
  • Configure log rotation parameters like rotation frequency, file size, file rotation count
Work item tracking
  • Microsoft ADO (number only):

How I did it

  • Add YANG model for a new configuration
  • Extend configuration templates to support new knobs

How to verify it

Which release branch to backport (provide reason below if selected)

  • [ ] 201811
  • [ ] 201911
  • [ ] 202006
  • [ ] 202012
  • [ ] 202106
  • [ ] 202111
  • [ ] 202205
  • [ ] 202211

Tested branch (Please provide the tested image version)

  • [ ]
  • [ ]

Description for the changelog

  • Add the ability Perform log rotation separately for syslog and debug files
  • Configure log rotation parameters like rotation frequency, file size, file rotation count

Link to config_db schema for YANG module changes

Logrotation config

A picture of a cute animal (it is my cat Finn)

PXL_20230413_140941610 PORTRAIT

fastiuk avatar May 17 '23 15:05 fastiuk

We reviewed the code change needed, and will address it in the upcoming 2 weeks.

Meir-renford avatar Sep 04 '23 06:09 Meir-renford

@dgsudharsan any further comments?

liat-grozovik avatar Jul 09 '24 16:07 liat-grozovik

@dgsudharsan any further comments?

@liat-grozovik Left few comments.

dgsudharsan avatar Jul 10 '24 09:07 dgsudharsan

/azpw run Azure.sonic-buidimage

fastiuk avatar Aug 14 '24 12:08 fastiuk

/AzurePipelines run Azure.sonic-buidimage

mssonicbld avatar Aug 14 '24 12:08 mssonicbld

No pipelines are associated with this pull request.

azure-pipelines[bot] avatar Aug 14 '24 12:08 azure-pipelines[bot]

Some log rotate test was failed, will fix until Aug 30

fastiuk avatar Aug 28 '24 09:08 fastiuk