Downloads:

51,748

Downloads of v 2.0.0:

122

Last Update:

05 Oct 2020

Package Maintainer(s):

Software Author(s):

  • smusali
  • leeliu

Tags:

logdna-agent tail logging devops logdna

LogDNA Agent for Windows

This is not the latest version of LogDNA Agent for Windows available.

2.0.0 | Updated: 05 Oct 2020

Downloads:

51,748

Downloads of v 2.0.0:

122

Maintainer(s):

Software Author(s):

  • smusali
  • leeliu

LogDNA Agent for Windows 2.0.0

This is not the latest version of LogDNA Agent for Windows available.

All Checks are Passing

2 Passing Test


Validation Testing Passed


Verification Testing Passed

Details

To install LogDNA Agent for Windows, run the following command from the command line or from PowerShell:

>

To upgrade LogDNA Agent for Windows, run the following command from the command line or from PowerShell:

>

To uninstall LogDNA Agent for Windows, run the following command from the command line or from PowerShell:

>

NOTE: This applies to both open source and commercial editions of Chocolatey.

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

  • Open Source or Commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to https://chocolatey.org/api/v2. Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Enter your internal repository url

(this should look similar to https://chocolatey.org/api/v2)

4. Choose your deployment method:


choco upgrade logdna-agent -y --source="'STEP 3 URL'" [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:


choco upgrade logdna-agent -y --source="'STEP 3 URL'"
$exitCode = $LASTEXITCODE

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0
}

Exit $exitCode

- name: Ensure logdna-agent installed
  win_chocolatey:
    name: logdna-agent
    state: present
    version: 2.0.0
    source: STEP 3 URL

See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.

Coming early 2020! Central Managment Reporting available now! More information...


chocolatey_package 'logdna-agent' do
  action    :install
  version  '2.0.0'
  source   'STEP 3 URL'
end

See docs at https://docs.chef.io/resource_chocolatey_package.html.


Chocolatey::Ensure-Package
(
    Name: logdna-agent,
    Version: 2.0.0,
    Source: STEP 3 URL
);

Requires Otter Chocolatey Extension. See docs at https://inedo.com/den/otter/chocolatey.


cChocoPackageInstaller logdna-agent
{
   Name     = 'logdna-agent'
   Ensure   = 'Present'
   Version  = '2.0.0'
   Source   = 'STEP 3 URL'
}

Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.


package { 'logdna-agent':
  provider => 'chocolatey',
  ensure   => '2.0.0',
  source   => 'STEP 3 URL',
}

Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.


salt '*' chocolatey.install logdna-agent version="2.0.0" source="STEP 3 URL"

See docs at https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.chocolatey.html.

5. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

This package was approved as a trusted package on 05 Oct 2020.

Description

LogDNA Agent streams from log files to your LogDNA account.


tools\chocolateyBeforeModify.ps1
$packageParameters = $env:chocolateyPackageParameters

IF(!($packageParameters))
{
    cmd.exe /c "nssm.exe stop logdna-agent & exit /b 0"
    cmd.exe /c "nssm.exe remove logdna-agent confirm & exit /b 0"
}

$registryPath = "HKLM:\SYSTEM\CurrentControlSet\Services\logdna-agent"

IF(Test-Path $registryPath)
{
    Remove-Item -Path $registryPath -Force -Recurse
}
tools\chocolateyInstall.ps1
$packageParameters = $env:chocolateyPackageParameters

IF(!($packageParameters))
{
    if(!(Test-Path -Path $env:ALLUSERSPROFILE\logs)){
        New-Item -ItemType directory -Path $env:ALLUSERSPROFILE\logs -Force
    }
    if(!(Test-Path -Path $env:ALLUSERSPROFILE\logs\logdna-agent.log)){
        New-Item -ItemType file -Path $env:ALLUSERSPROFILE\logs\logdna-agent.log -Force
    }
    if(!(Test-Path -Path $env:ALLUSERSPROFILE\logdna)){
        New-Item -ItemType directory -Path $env:ALLUSERSPROFILE\logdna -Force
    }

    cmd.exe /c "nssm.exe install logdna-agent $env:ChocolateyInstall\bin\logdna-agent.exe & exit /b 0"
    cmd.exe /c "nssm.exe set logdna-agent AppStdout $env:ALLUSERSPROFILE\logs\logdna-agent.log & exit /b 0"
    cmd.exe /c "nssm.exe set logdna-agent AppStderr $env:ALLUSERSPROFILE\logs\logdna-agent.log & exit /b 0"
}

$registryPath = "HKLM:\SYSTEM\CurrentControlSet\Services\logdna-agent\Parameters"

IF(!(Test-Path $registryPath))
{
    New-Item -Path $registryPath -Force
}

New-ItemProperty -Path $registryPath -Name 'AppStopMethodSkip' -Value 0xe -PropertyType DWORD -Force
tools\license.txt
The MIT License (MIT)

Copyright (c) 2020 LogDNA

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
tools\logdna-agent.exe
md5: 5B8E7B547ADE7C4DBAAB422C67FA5127 | sha1: 207827E08B6CB9F1FA9E4AADBD10FB491A19FBD3 | sha256: 4CC0803D93160BB9F547FD438F802989AB7E9D17A457AF2C407F2B4B434E3E6A | sha512: D37B7BFA08D343B330F1C090FA43BC7E7C101EC21A1128FB114693BD769F696729AEBC7850D52CA01C27FC6454AB0F93D56F6821DD90FC4D837C12B8464794EB
tools\VERIFICATION.txt
VERIFICATION

Verification is intended to assist the Chocolatey moderators and community
in verifying that this package's contents are trustworthy.
 
To verify logdna-agent.exe:
1. Download <https://github.com/logdna/logdna-agent/releases/download/2.0.0/logdna-agent.exe>
2. You can use one of the following methods to calculate the checksum
  - Use powershell function 'Get-Filehash'
  - Use chocolatey utility 'checksum.exe'

  checksum type: sha256
  checksum: 4cc0803d93160bb9f547fd438f802989ab7e9d17a457af2c407f2b4b434e3e6a
 
This package is published by LogDNA. You can build a binary directly
by following the instructions here:
https://github.com/logdna/logdna-agent/blob/master/CONTRIBUTING.md

Log in or click on link to see number of positives.

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Version Downloads Last Updated Status
LogDNA Agent for Windows 2.1.1 11 Thursday, November 12, 2020 Approved
LogDNA Agent for Windows 2.1.0 37 Monday, November 2, 2020 Approved
LogDNA Agent for Windows 2.0.0 122 Monday, October 5, 2020 Approved
LogDNA Agent for Windows 1.6.5 334 Monday, August 24, 2020 Approved
LogDNA Agent for Windows 1.6.2 1238 Friday, December 6, 2019 Approved
LogDNA Agent for Windows 1.6.1 2974 Friday, July 19, 2019 Approved
LogDNA Agent for Windows 1.6.0 204 Monday, July 8, 2019 Approved
LogDNA Agent for Windows 1.5.6 14360 Friday, May 10, 2019 Approved

LogDNA Agent for Windows


Discussion for the LogDNA Agent for Windows Package

Ground Rules:

  • This discussion is only about LogDNA Agent for Windows and the LogDNA Agent for Windows package. If you have feedback for Chocolatey, please contact the Google Group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or LogDNA Agent for Windows, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.
comments powered by Disqus