Comments (5)
if the instance is down, or there are several instances, how can we figure out what errorlog to target ?
from dbatools.
That's a good question. Since Get-DbaErrorLog receive SqlInstance as a parameter we can get from remote registry, the information needed to find the ERRORLOG file in the server's registry.
from dbatools.
Get-DbaErrorLog should return the file itself instead of returning the result of the SMO, Server.ReadErrorLog method when the instanec is down.
I would consider this out of scope as it adds ton of complexity to a simple command, but also requires a much more permission (e.g., admin rights to the servers, admin shares being enabled) compared to pulling the log via the database engine.
If this is really desired it would be better suited for a stand-alone command like Get-DbaErrorLogFile
or something of that nature.
from dbatools.
@wsmelton I understand your point. Since they would not return the same objet format, they should be 2 distinct functions. Do I need to close this ticket and open a new one or can this one can be switched to a new feature?
from dbatools.
I create a new feature request #9333
from dbatools.
Related Issues (20)
- Cannot open database "abc" requested by the login. HOT 3
- Ability to import full certificate chain with with Add-DbaComputerCertificate
- Get-DbaAgentJob slowness on applying DatabaseName filter HOT 3
- Get-DbaErrorLogFile
- Microsoft.Identity.Client version and dependency design HOT 4
- Connect-DbaInstance breaks Get-AzStorageBlob HOT 5
- Database Mail profiles do not allow adding more than one account
- test-dbalastbackup dates of backup files outputs Dataplat.Dbatools.Utility.DbaDateTime[] HOT 14
- Backup-DbaDbMasterKey missing file extention in Filename property HOT 1
- `New-DbaDbUser` - Multiple `-SqlInstance` Without `-Database` Doesn't Add User To All Dbs HOT 4
- Backup-DbaDatabase : ERROR The length of the device name provided exceeds supported limit (maximum length is:259) when database name is long HOT 15
- Issues while passing Computer name parameter of type Dataplat.Dbatools.Parameter.DbaInstanceParameter[] using variable in update-dbainstance HOT 2
- Set-DbaPrivilege: Which account should be used to grant SeManageVolumePrivilege?
- Backup-DbaDatabase : add a switch that will prevent to always append dbname in the directory backup path and strictly respect the given path variable.
- Get-DbaRegServer - SSMS upgraded from 19.x to 20.1, reading "old" RegisteredServersStore HOT 1
- Add command to set the instance authentication mode
- Get-DbaHideInstance does not work on a system with named instance HOT 2
- Get-DbaDbBackupHistory - exception on data source length in connection HOT 7
- Issue with creating new directory when Invoke-DbaDbLogShipping. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dbatools.