Downloads:

39,747

Downloads of v 1.5.5.20181121:

1,044

Last Update:

11/21/2018

Package Maintainer(s):

Software Author(s):

  • smusali
  • leeliu

Tags:

logdna-agent logdna-cli cli tail logging devops logdna

LogDNA Agent for Windows

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

1.5.5.20181121 | Updated: 11/21/2018

Downloads:

39,747

Downloads of v 1.5.5.20181121:

1,044

Maintainer(s):

Software Author(s):

  • smusali
  • leeliu

LogDNA Agent for Windows 1.5.5.20181121

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: 1.5.5.20181121
    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  '1.5.5.20181121'
  source   'STEP 3 URL'
end

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


Chocolatey::Ensure-Package
(
    Name: logdna-agent,
    Version: 1.5.5.20181121,
    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  = '1.5.5.20181121'
   Source   = 'STEP 3 URL'
}

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


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

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


salt '*' chocolatey.install logdna-agent version="1.5.5.20181121" 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 4/28/2019.

Description

LogDNA's collector agent which streams 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
    }
    if(Test-Path -Path $env:ALLUSERSPROFILE\logdna\winTail.ps1){
        Remove-Item $env:ALLUSERSPROFILE\logdna\winTail.ps1 -Force
    }
    Copy-Item $PSScriptRoot\winTail.ps1 -Destination $env:ALLUSERSPROFILE\logdna\winTail.ps1 -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
Copyright 2016-2018 LogDNA, Inc.

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: E4505E0682F65FD26C0D72DADF3A415A | sha1: AFE99B47CF3734A388368FDF0D0D29F792DAA8C4 | sha256: 1314742FD5EB757E4CE16562EE6587B20C39EB7415FE049A63779792F7A0FDAF | sha512: 84D1A4F86918931F8EE0C4E7875D95820ED709979D73E2480130C4A0F083A5D13D472034849592ABB325B8972D837EB92A5A77994956DF2A89550B9DC1A67F47
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 the logdna-agent.exe:

1. Download <https://s3.amazonaws.com/repo.logdna.com/win/logdna-agent.1.5.5.20181121.zip> which includes "logdna-agent.exe"
2. You can use one of the following methods to obtain the checksum
  - Use powershell function 'Get-Filehash'
  - Use chocolatey utility 'checksum.exe'

  checksum type: sha256
  checksum: 9daf22c15f4f42e8c7ac4cdf73c26f7154d325d0defe14ece18d1203a9c7afd1

This package is published by the LogDNA. You can build a binary directly
by following instructions here:
https://github.com/logdna/logdna-agent/blob/master/CONTRIBUTING.md
tools\VERSION.txt
1.5.5.20181121
tools\winTail.ps1
Set-PSDebug -Strict
$LogName = $args[0]
$curr = (Get-EventLog -LogName $LogName -Newest 1 2> $null).Index
if ([string]::IsNullOrEmpty($curr))
{
    $curr = -1
}
while ($true)
{
    start-sleep -Seconds 1
    $next = (Get-EventLog -LogName $LogName -Newest 1 2> $null).Index
    if ([string]::IsNullOrEmpty($next))
    {
        $next = -1
    }
    if ($next -gt $curr) {
        $data = Get-EventLog -LogName $LogName -Newest ($next - $curr + 1000) 2> $null | where {$_.Index -gt $curr}
        $curr = $data[-1].Index
        $data | ConvertTo-Json
    }
}

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 1.6.0 158 Monday, July 8, 2019 Approved
LogDNA Agent for Windows 1.5.6 5983 Friday, May 10, 2019 Approved
LogDNA Agent for Windows 1.5.5.20181121 1044 Wednesday, November 21, 2018 Approved
LogDNA Agent for Windows 1.5.4 827 Thursday, June 21, 2018 Approved
LogDNA Agent for Windows 1.5.3 116 Thursday, June 21, 2018 Approved
LogDNA Agent for Windows 1.5.2 98 Wednesday, June 20, 2018 Approved

LogDNA Collector 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