Giter Site home page Giter Site logo

Comments (5)

niphlod avatar niphlod commented on July 19, 2024

if the instance is down, or there are several instances, how can we figure out what errorlog to target ?

from dbatools.

pollusb avatar pollusb commented on July 19, 2024

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.

wsmelton avatar wsmelton commented on July 19, 2024

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.

pollusb avatar pollusb commented on July 19, 2024

@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.

pollusb avatar pollusb commented on July 19, 2024

I create a new feature request #9333

from dbatools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.