Unpacking Software Livestream

Join our monthly Unpacking Software livestream to hear about the latest news, chat and opinion on packaging, software deployment and lifecycle management!

Learn More

Chocolatey Product Spotlight

Join the Chocolatey Team on our regular monthly stream where we put a spotlight on the most recent Chocolatey product releases. You'll have a chance to have your questions answered in a live Ask Me Anything format.

Learn More

Chocolatey Coding Livestream

Join us for the Chocolatey Coding Livestream, where members of our team dive into the heart of open source development by coding live on various Chocolatey projects. Tune in to witness real-time coding, ask questions, and gain insights into the world of package management. Don't miss this opportunity to engage with our team and contribute to the future of Chocolatey!

Learn More

Calling All Chocolatiers! Whipping Up Windows Automation with Chocolatey Central Management

Webinar from
Wednesday, 17 January 2024

We are delighted to announce the release of Chocolatey Central Management v0.12.0, featuring seamless Deployment Plan creation, time-saving duplications, insightful Group Details, an upgraded Dashboard, bug fixes, user interface polishing, and refined documentation. As an added bonus we'll have members of our Solutions Engineering team on-hand to dive into some interesting ways you can leverage the new features available!

Watch On-Demand
Chocolatey Community Coffee Break

Join the Chocolatey Team as we discuss all things Community, what we do, how you can get involved and answer your Chocolatey questions.

Watch The Replays
Chocolatey and Intune Overview

Webinar Replay from
Wednesday, 30 March 2022

At Chocolatey Software we strive for simple, and teaching others. Let us teach you just how simple it could be to keep your 3rd party applications updated across your devices, all with Intune!

Watch On-Demand
Chocolatey For Business. In Azure. In One Click.

Livestream from
Thursday, 9 June 2022

Join James and Josh to show you how you can get the Chocolatey For Business recommended infrastructure and workflow, created, in Azure, in around 20 minutes.

Watch On-Demand
The Future of Chocolatey CLI

Livestream from
Thursday, 04 August 2022

Join Paul and Gary to hear more about the plans for the Chocolatey CLI in the not so distant future. We'll talk about some cool new features, long term asks from Customers and Community and how you can get involved!

Watch On-Demand
Hacktoberfest Tuesdays 2022

Livestreams from
October 2022

For Hacktoberfest, Chocolatey ran a livestream every Tuesday! Re-watch Cory, James, Gary, and Rain as they share knowledge on how to contribute to open-source projects such as Chocolatey CLI.

Watch On-Demand

Downloads:

27,536

Downloads of v 1.4.2.09161814:

735

Last Update:

17 Sep 2014

Package Maintainer(s):

Software Author(s):

  • logstash

Tags:

logstash, logging

logstash

This is not the latest version of logstash available.

  • 1
  • 2
  • 3

1.4.2.09161814 | Updated: 17 Sep 2014

Downloads:

27,536

Downloads of v 1.4.2.09161814:

735

Software Author(s):

  • logstash

logstash 1.4.2.09161814

This is not the latest version of logstash available.

  • 1
  • 2
  • 3

Some Checks Have Failed or Are Not Yet Complete

Not All Tests Have Passed


Validation Testing Unknown


Verification Testing Unknown


Scan Testing Successful:

No detections found in any package files

Details
Learn More

Deployment Method: Individual Install, Upgrade, & Uninstall

To install logstash, run the following command from the command line or from PowerShell:

>

To upgrade logstash, run the following command from the command line or from PowerShell:

>

To uninstall logstash, run the following command from the command line or from PowerShell:

>

Deployment Method:

NOTE

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

1. Enter Your Internal Repository Url

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


2. Setup Your Environment

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

2. Get the package into your environment

  • 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://community.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. Copy Your Script

choco upgrade logstash -y --source="'INTERNAL REPO URL'" --version="'1.4.2.09161814'" [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 logstash -y --source="'INTERNAL REPO URL'" --version="'1.4.2.09161814'" 
$exitCode = $LASTEXITCODE

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

Exit $exitCode

- name: Install logstash
  win_chocolatey:
    name: logstash
    version: '1.4.2.09161814'
    source: INTERNAL REPO URL
    state: present

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


chocolatey_package 'logstash' do
  action    :install
  source   'INTERNAL REPO URL'
  version  '1.4.2.09161814'
end

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


cChocoPackageInstaller logstash
{
    Name     = "logstash"
    Version  = "1.4.2.09161814"
    Source   = "INTERNAL REPO URL"
}

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


package { 'logstash':
  ensure   => '1.4.2.09161814',
  provider => 'chocolatey',
  source   => 'INTERNAL REPO URL',
}

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


4. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

Package Approved

This package was approved as a trusted package on 02 May 2018.

Description

Logstash is a tool for managing events and logs. You can use it to collect logs, parse them, and store them for later use (like, for searching).
This package installs logstash as an agent service via nssm. All you need to do - is to configure your logstash.conf in conf.d\ directory and start Logstash service (sc start Logstash).
Service is installed using nssm and is calling bin\logstash.cmd which wraps bin\logstash.bat with these parameters: "logstash.bat agent --config c:/logstash/conf.d/ --log c:/logstash/log/logstash.log"
Package update backs up previous logstash directory to c:\logstash-old_DATETIME. Available parameters:
backup (default=true) # Enables or disables backup copy of the previous installation
config (default=false) # Drops a simple working config instead of .sample
autostart (default=false) # Starts logstash service after installation.

Example:
-params 'backup=true;config=false;autostart=true'

This package is updated automatically to use new url when a new version comes out.


tools\chocolateyInstall.ps1
# $package_version = 
$url=""

$package_name = 'logstash'
$service_name = "Logstash"
$package_dir="c:\${package_name}"

$current_datetime = Get-Date -format yyyyddMMhhmm
#$package_backup_dir = Join-Path ${package_dir} "${package_name}-old_${current_datetime}"
$package_backup_dir = "${package_dir}-old_${current_datetime}"

$bin_dir = $(Join-Path $package_dir "bin")
$log_dir = $(Join-Path $package_dir "log")
$config_dir = $(Join-Path $package_dir "conf.d")
$config_sample_dir = $(Join-Path $package_dir "conf.d.sample")

$log_file = $(Join-Path $log_dir "${package_name}.log")
$cmd_file = $(Join-Path $bin_dir "${package_name}.cmd")
$config_file = $(Join-Path $config_dir "${package_name}.conf")
$config_sample_file = $(Join-Path $config_dir "${package_name}.conf.sample")


## Additional Parameters ##
$autostart_enabled = $false
$backup_enabled = $true
$config_enabled = $false
if (![string]::IsNullOrEmpty($env:chocolateyPackageParameters))
{
	if ($env:chocolateyPackageParameters.ToLower().Contains("autostart") -or $env:chocolateyPackageParameters.ToLower().Contains("backup") -or $env:chocolateyPackageParameters.ToLower().Contains("config") )
	{		
		# Getting Parameters
		$rawTxt =  [regex]::escape($env:chocolateyPackageParameters)
		$params = $($rawTxt -split ';' | ForEach-Object {
		   $temp= $_ -split '='
		   "{0}={1}" -f $temp[0].Substring(0,$temp[0].Length),$temp[1]
		} | ConvertFrom-StringData)


		if ($params.autostart -eq 'true')
		{			
			Write-Host "Found 'autostart' parameter enabled."
			$autostart_enabled = $true
			
		}
		else
		{
			Write-Host "Found 'autostart' parameter disabled."
			$autostart_enabled = $false
		}
		
		if ($params.backup -eq 'true')
		{			
			Write-Host "Found 'backup' parameter enabled."
			$backup_enabled = $true
			
		}
		else
		{
			Write-Host "Found 'backup' parameter disabled."
			$backup_enabled = $false
		}
		
		if ($params.config -eq 'true')
		{			
			Write-Host "Found 'config' parameter enabled. Sample config will be saved as conf.d\logstash.conf"
			$config_enabled = $true
			
		}
		else
		{
			Write-Host "Found 'config' parameter disabled."
			$config_enabled = $false
		}
	}
}

try {                                                                                                           if (Test-Path -path $package_dir) {
    if (!(Test-Path -path ${package_backup_dir})) {
    
        if ($backup_enabled)
		{
			New-Item "${package_backup_dir}" -Type Directory | Out-Null
			Write-Host "Backing up current ${package_name} installation to ${package_backup_dir}."
			Copy-Item -Recurse "${package_dir}\*" ${package_backup_dir} -Exclude *-old*
		}
		
        Write-Host "Uninstalling current version of ${package_name}"
        cuninst logstash

        if ($LastExitCode -ne 0) {
            try {
    
                if ($(Get-Service "$service_name" -ErrorAction SilentlyContinue).Status -eq "Running") {
                    #Start-ChocolateyProcessAsAdmin "\\localhost stop `"${service_name}`"" "sc.exe"
                    Start-ChocolateyProcessAsAdmin "Stop-Service ${service_name} -Force"
                    Start-Sleep 2
                }
    
    
    
                if ($(Get-Service "$service_name"  -ErrorAction SilentlyContinue).Status -ne "Running") {
                    Remove-Item -recurse $(Join-Path $package_dir "\*") -exclude *.conf.*, *-bak*, *-old*
                }

                # Write-ChocolateySuccess $package_name
            } catch {
                Write-ChocolateyFailure $package_name "$($_.Exception.Message)"
                throw
            }
        }
    } else {
        Write-Error "Can't create more than 1 backup per minute (I know that's stupid). Please try in 1 minute."
    }


        Write-Host "Continuing ${package_name} installation"
    }

    
    
    #Write-Host "Making sure ${config_sample_dir} is in place"
    #if (!(Test-Path -path $config_sample_dir)) {New-Item $config_sample_dir -Type Directory  | Out-Null}

    Write-Host "Making sure ${config_dir} is in place"
    if (!(Test-Path -path $config_dir)) {New-Item $config_dir -Type Directory  | Out-Null}


    Write-Host "Making sure ${package_dir} is in place"
    if (!(Test-Path -path $package_dir)) {New-Item $package_dir -Type Directory  | Out-Null}

    Write-Host "Making sure ${log_dir} is in place"
    if (!(Test-Path -path $log_dir)) { New-Item $log_dir -Type Directory  | Out-Null }

    Install-ChocolateyZipPackage "${package_name}" $url $package_dir
    Move-Item "$(Join-Path ${package_dir} logstash-*\*)" "${package_dir}" -Force
    Remove-Item "$(Join-Path ${package_dir} logstash-*)" -Force


    if (!(Test-Path ($cmd_file)))
    {
      $cmdcontent = @"
cd /d ${package_dir}
bin/logstash.bat agent --config ${config_dir} --log ${log_file}
"@
        echo "Dropping a ${package_name}.cmd file"
        Set-Content $cmd_file $cmdcontent -Encoding ASCII -Force
    }


    if (!(Test-Path ($config_sample_file)))
    {
      $confcontent = @"
input {
    stdin {}
}

output {
    stdout {}
}
"@  

        if ($config_enabled)
		{
			echo "Dropping a ${config_file} file (so you can start ${package_name} service right away."
			Set-Content $config_file $confcontent -Encoding ASCII -Force		
		}
		else
		{
			echo "Dropping a sample ${package_name}.conf.sample file - rename it to logstash.conf if you want to use it!"
			Set-Content $config_sample_file $confcontent -Encoding ASCII -Force				
		}
		
    }


    if ($serviceinfo = Get-Service "${service_name}" -ErrorAction SilentlyContinue)
    {
	    if ($serviceinfo.status -ne 'Running')
	    {
		    if ($serviceinfo.status -eq 'Stopped')
		    {
			    echo "${service_name} service found and is stopped."
			    echo "Deletinng ${service_name} Service"
			    
                Start-ChocolateyProcessAsAdmin "\\localhost delete `"${service_name}`"" "sc.exe"

                echo "Installing ${service_name} Service"
			    Start-ChocolateyProcessAsAdmin "install ${service_name} ${cmd_file}" nssm
		    }
	    }
	    else
	    {
		    echo "Stoping ${service_name} Service"
		    Start-ChocolateyProcessAsAdmin "\\localhost stop `"${service_name}`"" "sc.exe"
		    Start-ChocolateyProcessAsAdmin echo "Deleting "${service_name}" Service"
		    Start-ChocolateyProcessAsAdmin "\\localhost delete `"${service_name}`"" "sc.exe"
		    echo "Installing ${service_name} Service"
		    Start-ChocolateyProcessAsAdmin "install ${service_name} ${cmd_file}" nssm

	    }
    }
    else
    {
	    echo "No ${service_name} Service detected"
        echo "Installing ${service_name} Service"
    

	    Start-ChocolateyProcessAsAdmin "install ${service_name} ${cmd_file}" nssm
    }

    # Write-ChocolateySuccess $package_name
    
    if ($autostart_enabled)
	{
		Write-Host "Starting ${service_name}"
		Start-ChocolateyProcessAsAdmin "Start-Service ${service_name}"
	}

} catch {
    Write-ChocolateyFailure $package_name "$($_.Exception.Message)"
    throw
}
tools\chocolateyUninstall.ps1
$package_name = 'logstash'
$service_name = "Logstash"
$package_dir="c:\$package_name"

try {
    
    if ($(Get-Service "$service_name" -ErrorAction SilentlyContinue).Status -eq "Running") {
        Start-ChocolateyProcessAsAdmin "Stop-Service ${service_name} -Force"
        Start-Sleep 2
    }
    
    if ($(Get-Service "$service_name"  -ErrorAction SilentlyContinue).Status -ne "Running") {
        Write-Host "Deleting ${service_name} Service"        
		Start-ChocolateyProcessAsAdmin "\\localhost delete ${service_name}" "sc.exe"

        Write-Host "Cleaning ${package_dir} directory"
        Remove-Item -recurse $(Join-Path $package_dir "\*") -exclude *.conf, *-bak*, *-old*
    }

    Write-ChocolateySuccess $package_name
} catch {
    Write-ChocolateyFailure $package_name "$($_.Exception.Message)"
    throw
}

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.

Add to Builder Version Downloads Last Updated Status
Logstash 8.12.1 96 Wednesday, February 7, 2024 Approved
Logstash 8.12.0 66 Thursday, January 18, 2024 Approved
Logstash 8.11.4 36 Friday, January 12, 2024 Approved
Logstash 8.11.3 82 Wednesday, December 13, 2023 Approved
Logstash 8.11.2 34 Friday, December 8, 2023 Approved
Logstash 8.11.1 91 Tuesday, November 14, 2023 Approved
Logstash 8.11.0 48 Wednesday, November 8, 2023 Approved
Logstash 8.10.4 101 Wednesday, October 18, 2023 Approved
Logstash 8.10.3 66 Wednesday, October 11, 2023 Approved
Logstash 8.10.2 95 Friday, September 22, 2023 Approved
Logstash 8.10.1 35 Tuesday, September 19, 2023 Approved
Logstash 8.9.2 69 Thursday, September 7, 2023 Approved
Logstash 8.9.1 81 Friday, August 18, 2023 Approved
Logstash 8.9.0 109 Wednesday, July 26, 2023 Approved
Logstash 8.8.2 87 Friday, June 30, 2023 Approved
Logstash 8.8.1 101 Friday, June 9, 2023 Approved
Logstash 8.8.0 76 Friday, May 26, 2023 Approved
Logstash 8.7.1 96 Wednesday, May 3, 2023 Approved
Logstash 8.7.0 125 Friday, March 31, 2023 Approved
Logstash 8.6.2 125 Friday, February 17, 2023 Approved
Logstash 8.6.1 78 Friday, January 27, 2023 Approved
Logstash 8.6.0 74 Wednesday, January 11, 2023 Approved
Logstash 8.5.3 99 Friday, December 9, 2022 Approved
Logstash 8.5.1 87 Wednesday, November 16, 2022 Approved
Logstash 8.5.0 65 Wednesday, November 2, 2022 Approved
Logstash 8.4.2 146 Wednesday, September 21, 2022 Approved
Logstash 8.4.1 92 Wednesday, August 31, 2022 Exempted
Logstash 8.3.3 114 Friday, July 29, 2022 Exempted
Logstash 8.2.3 173 Wednesday, June 15, 2022 Exempted
Logstash 8.2.2 60 Friday, May 27, 2022 Exempted
Logstash 8.2.1 50 Wednesday, May 25, 2022 Exempted
Logstash 8.2.0 113 Wednesday, May 4, 2022 Exempted
Logstash 8.1.3 82 Thursday, April 21, 2022 Exempted
Logstash 8.1.2 94 Friday, April 1, 2022 Exempted
Logstash 8.1.1 83 Wednesday, March 23, 2022 Exempted
Logstash 8.1.0 65 Wednesday, March 9, 2022 Exempted
Logstash 8.0.1 111 Wednesday, March 2, 2022 Approved
Logstash 8.0.0 122 Friday, February 11, 2022 Exempted
Logstash 8.0.0-rc2 63 Friday, February 4, 2022 Exempted
Logstash 8.0.0-rc1 72 Thursday, January 13, 2022 Exempted
Logstash 8.0.0-beta1 75 Wednesday, November 10, 2021 Exempted
Logstash 8.0.0-alpha2 80 Friday, September 17, 2021 Exempted
Logstash 8.0.0-alpha1 85 Wednesday, August 11, 2021 Exempted
Logstash 7.17.17 13 Wednesday, January 24, 2024 Approved
Logstash 7.17.7 50 Wednesday, October 26, 2022 Approved
Logstash 7.17.1 695 Tuesday, March 1, 2022 Exempted
Logstash 7.16.3 179 Friday, January 14, 2022 Exempted
Logstash 7.16.2 748 Monday, December 20, 2021 Exempted
Logstash 7.16.1 143 Tuesday, December 14, 2021 Exempted
Logstash 7.16.0 107 Wednesday, December 8, 2021 Exempted
Logstash 7.15.2 131 Thursday, November 11, 2021 Exempted
Logstash 7.15.1 168 Friday, October 15, 2021 Exempted
Logstash 7.15.0 137 Thursday, September 23, 2021 Exempted
Logstash 7.14.2 88 Wednesday, September 22, 2021 Exempted
Logstash 7.14.1 120 Thursday, September 2, 2021 Exempted
Logstash 7.14.0 138 Wednesday, August 4, 2021 Exempted
Logstash 7.13.4 93 Wednesday, July 21, 2021 Exempted
Logstash 7.13.3 101 Thursday, July 8, 2021 Exempted
Logstash 7.13.2 81 Tuesday, June 15, 2021 Exempted
Logstash 7.13.1 176 Thursday, June 3, 2021 Exempted
Logstash 7.13.0 72 Wednesday, May 26, 2021 Exempted
Logstash 7.12.1 173 Wednesday, April 28, 2021 Exempted
Logstash 7.11.2 192 Thursday, March 11, 2021 Approved
Logstash 7.11.1 98 Wednesday, March 3, 2021 Approved
Logstash 7.9.3 580 Friday, October 23, 2020 Approved
Logstash 7.9.1 324 Friday, September 4, 2020 Approved
Logstash 7.9.0 254 Wednesday, August 19, 2020 Approved
Logstash 7.8.1 190 Tuesday, July 28, 2020 Approved
Logstash 7.8.0 1239 Friday, June 19, 2020 Approved
Logstash 7.7.1 164 Thursday, June 4, 2020 Approved
Logstash 7.7.0 367 Thursday, May 14, 2020 Approved
Logstash 7.6.2 347 Wednesday, April 1, 2020 Approved
Logstash 7.6.1 312 Thursday, March 5, 2020 Approved
Logstash 7.6.0 334 Wednesday, February 12, 2020 Approved
Logstash 7.5.2 249 Wednesday, January 22, 2020 Approved
Logstash 7.5.1 242 Thursday, December 19, 2019 Approved
Logstash 7.5.0 236 Tuesday, December 3, 2019 Approved
Logstash 7.4.2 631 Monday, November 25, 2019 Approved
Logstash 6.2.4 2445 Tuesday, May 1, 2018 Approved
Logstash 5.2.1 1567 Tuesday, February 14, 2017 Approved
Logstash 5.2.0 504 Tuesday, February 14, 2017 Approved
Logstash 5.1.2 449 Tuesday, February 14, 2017 Approved
Logstash 2.3.4 1077 Thursday, August 18, 2016 Approved
logstash 1.4.2.12291406 2226 Monday, December 29, 2014 Approved
logstash 1.4.2.09161814 735 Wednesday, September 17, 2014 Approved
logstash 1.4.1.2014061249 719 Friday, June 13, 2014 Approved
logstash 1.3.3.2014021403 704 Friday, February 14, 2014 Approved
logstash 1.2.1.2013101701 521 Thursday, October 17, 2013 Approved
logstash 1.2.1.2013100803 488 Tuesday, October 8, 2013 Approved
logstash 1.2.1.2013100705 446 Tuesday, October 8, 2013 Approved

Discussion for the logstash Package

Ground Rules:

  • This discussion is only about logstash and the logstash 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 logstash, 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