dsccommunity / dsccommunity/SqlServerDsc

SqlErrorLog: New resource proposal to update ErrorLog configuration

Open
#1,202 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

help wanted resource proposal
Dominant language
PowerShell
Stars
385
Forks
224
PR merge metrics
No merged PRs in 30d

Description

Details of the scenario you tried and the problem that is occurring

Request a configuration for controlling the error log configuration for a given instance.

Pretty much would be reading and updating the registry entry that controls this for a given instance since it does not exist within the sys.configurations right now.

Would have two options or properties to validate/set:

  • LogCount
  • LogSize (2012+)

Starting in SQL Server 2012+ you have the option for setting the size limit of a log file with the instance, it will cause it to roll over.

The DSC configuration that is using the resource (as detailed as possible)

N/A

Version of the operating system and PowerShell the target node is running

N/A

SQL Server edition and version the target node is running

N/A

What SQL Server PowerShell modules, and which version, are present on the target node.

N/A

Version of the DSC module you're using, or write 'dev' if you're using current dev branch

N/A

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the existing SqlErrorLog resource and how it accesses configuration, then investigate the registry entry controlling SQL Server error log settings because it is not exposed in sys.configurations. Define how LogCount and the SQL Server 2012+ LogSize properties should be validated and set; the resource should manage both settings for a given instance.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell, sql
Domain
databases, devops
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.