Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating from remote master #2

Merged
merged 161 commits into from
Jul 27, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
161 commits
Select commit Hold shift + click to select a range
3c006b3
Improve stop-enviornment command (#1867)
ruflin Jun 15, 2016
fb21b76
Update fields.yml to follow new structure (#1874)
ruflin Jun 16, 2016
939aeda
Update dependencies to most recent version
ruflin Jun 16, 2016
bcc9866
Add build docs script (#1873)
ruflin Jun 16, 2016
ba34d49
Logstash window sizing if pipelining is enabled (#1875)
Jun 16, 2016
c13f555
Start a new harvester when file was truncated
ruflin Jun 17, 2016
1edfd23
Removed typo "made" from the note (#1881)
jakommo Jun 17, 2016
b60c79c
[beat-generator] Update .travis.yml for better support for community …
radoondas Jun 17, 2016
bcb3e5d
Merge pull request #1877 from ruflin/update-dependencies
Jun 17, 2016
b9eba6e
Merge pull request #1882 from ruflin/refactor-truncated
Jun 17, 2016
879a00e
Update to elastic/go-lumber v0.1.0 (#1884)
Jun 20, 2016
f1bb922
Script for cleaning up vendor directory
ruflin Jun 20, 2016
e4f49d9
Docs fix
ruflin Jun 20, 2016
4b8cbf0
Fix for rendering ForwardedEvents in Winlogbeat. (#1891)
andrewkroh Jun 21, 2016
7576fcd
Change titles in config reference topics (#1885)
dedemorton Jun 21, 2016
e14c4ea
Fix topbeat docs build (#1892)
ruflin Jun 21, 2016
ee266ad
Merge pull request #1888 from ruflin/cleanup-vendor
Jun 21, 2016
c8d6192
Improve timestamp handling (#1889)
ruflin Jun 21, 2016
6954ce6
Start removing topbeat files (#1890)
ruflin Jun 21, 2016
8a35fdb
Restructure navigation to move config options up (#1794)
dedemorton Jun 22, 2016
5a08cac
packetbeat: nfs: fix first-class operation code in compound
kofemann Jun 22, 2016
6079993
Improve Filebeat organisiation and Cleanup
ruflin Jun 21, 2016
a15d0ef
Merge pull request #1894 from ruflin/improve-namespacing
Jun 22, 2016
4d202f6
Update dependencies to alpha4
ruflin Jun 23, 2016
40d599e
Merge pull request #1899 from ruflin/alpha4-build
Jun 23, 2016
6ce744e
Cleanup Harvester and Input parts of Filebeat
ruflin Jun 22, 2016
2d95eb8
Update urso/ucfg to elastic/go-ucfg v0.3.0 (#1900)
Jun 23, 2016
b170061
Update mysql version dependency to 5.7.12
ruflin Jun 24, 2016
08960d1
Merge pull request #1896 from ruflin/harvester-cleanup
Jun 24, 2016
139705b
Merge pull request #1904 from ruflin/fix-flaky-mysql-build
Jun 24, 2016
b88eb05
Merge pull request #1821 from kofemann/fix-compound-opcode
Jun 24, 2016
65d48cc
Document NFSv4 first-class opcode fix (#1906)
Jun 24, 2016
dedc109
Update dependencies (#1905)
ruflin Jun 24, 2016
45520e0
Remove the _ttl param from the Elasticsearch topology code (#1907)
tsg Jun 24, 2016
5bc18ea
Remove MongoDB from the default config (#1908)
tsg Jun 24, 2016
c162add
Update changelog with gzip compression support in the ES output
monicasarbu Jun 27, 2016
c4bc9b5
Merge pull request #1910 from monicasarbu/add_gzip_es_output_changelog
Jun 27, 2016
f4aa97f
Update changelog with the mongodb module (#1911)
monicasarbu Jun 27, 2016
f2c36ee
Reduce the polling interval in metricbeat sys tests (#1912)
tsg Jun 27, 2016
b7aad0b
Config management improvements in filebeat
ruflin Jun 24, 2016
391e840
Fix/overlapping tcp segments (#1898)
Jun 27, 2016
61fe22e
Close changelog alpha4 (#1916)
tsg Jun 27, 2016
afbe06b
Fix flaky apache test (#1920)
ruflin Jun 28, 2016
3ce2e2f
Add technical edits to metricbeat doc (#1902)
dedemorton Jun 28, 2016
3d13ce2
Unify version handling
Jun 27, 2016
4b80571
Also added the branch to the version file
Jun 28, 2016
f9d028e
Merge pull request #1903 from ruflin/config-cleanup
Jun 28, 2016
4576f47
Add close_removed and close_renamed, deprecate force_close_files
ruflin Jun 27, 2016
e42a8d0
Implement review feedback
ruflin Jun 28, 2016
1a5be3c
Merge pull request #1909 from ruflin/filebeat-close
Jun 28, 2016
1cc46b6
Introduce close_eof harvster option
ruflin Jun 27, 2016
ee38038
Merge pull request #1914 from ruflin/fb-close-eof
Jun 28, 2016
c8c7a29
Merge pull request #1919 from tsg/single_version_in_docs
dedemorton Jun 28, 2016
14a2220
Introducing ttl and timestamp in state
ruflin Jun 27, 2016
8afb523
Merge pull request #1915 from ruflin/fb-clean-older
Jun 29, 2016
c739296
Update file paths for beats gs topics (#1925)
dedemorton Jun 30, 2016
30e3e70
Update annotations for alpha4 (#1937)
dedemorton Jun 30, 2016
74ad54f
Switch from using index-docinfo.xml to page_header.html
clintongormley Jun 30, 2016
593db38
Docs version bump to alpha4 (#1939)
tsg Jun 30, 2016
1e1d670
Fix a few minor issues noticed during testing (#1947)
dedemorton Jul 1, 2016
4792368
Add alpha4 note about dashboards (#1942)
dedemorton Jul 1, 2016
7a88510
Rename the filters section with processors (#1944)
monicasarbu Jul 1, 2016
5758f3d
Introduce the condition in the processor with the when keyword
monicasarbu Jul 1, 2016
6405b73
update full config files
monicasarbu Jul 1, 2016
57bb20b
Merge pull request #1949 from monicasarbu/introduce_condition_with_wh…
Jul 1, 2016
f4803fa
Disable ES bootstrap checks in 5.0.0-alpha4 docker-compose (#1951)
Jul 3, 2016
23888d0
Replace most Packetbeat warnings with expvar metrics (#1948)
tsg Jul 4, 2016
e3e19e5
Fixed the folder name for the windows packages (#1946)
tsg Jul 4, 2016
b311c34
Use OS specific network interfaces in full configs (#1945)
tsg Jul 4, 2016
3498d2c
Use half floats for most floating point numbers (#1941)
tsg Jul 4, 2016
9cd3696
Switch default level to INFO (#1952)
tsg Jul 4, 2016
4e58444
Bump version to alpha5 (#1957)
tsg Jul 5, 2016
fefa0f3
Update dependencies to most recent version (#1932)
ruflin Jul 5, 2016
4827c2e
Remove scan_frequency config docs for 0s (#1933)
ruflin Jul 5, 2016
fd34f67
Add config examples with deprecation text to support alpha4 and beta1…
dedemorton Jul 5, 2016
11499e6
Fix Filebeat rotation issue (#1954)
ruflin Jul 5, 2016
125a0b8
Update gosigar library (#1960)
monicasarbu Jul 5, 2016
2f3885f
Log non-zero expvars periodically (#1955)
tsg Jul 5, 2016
4ae89f2
Introduce clean_removed (#1922)
ruflin Jul 5, 2016
51c169d
Snapshot expvar maps for periodic logging (#1969)
tsg Jul 5, 2016
b00a66a
Remove optional labels from config topic headings (#1965)
dedemorton Jul 6, 2016
e412c00
Add freebsd build tags for Metricbeat system metricsets (#1966)
andrewkroh Jul 6, 2016
114c428
Use dots for expvar names (#1967)
tsg Jul 6, 2016
6460fce
Reduce filebeat verbosity at INFO level (#1970)
tsg Jul 6, 2016
4a3276d
Allow device ID to be equal to 0 on OpenBSD (#1979)
andrewkroh Jul 6, 2016
3972206
Log connection attempts (#1973)
tsg Jul 7, 2016
d362f62
Use go-ucfg based variable expansion support (#1984)
Jul 8, 2016
befc176
Rename doc files and IDs for "filters" to "processors" renaming (#1981)
dedemorton Jul 8, 2016
1aa88a8
Update link to the processors definition (#1994)
monicasarbu Jul 8, 2016
4ef2be7
Add enable-setting to all output plugins (#1987)
Jul 8, 2016
a32eb74
The '-c' flag can be used multiple times (#1985)
Jul 8, 2016
14c8970
Fixes TOC link in the Packetbeat doc (#1999)
dedemorton Jul 8, 2016
f9754a6
Enable Prospector to Update state without Harvester (#1978)
ruflin Jul 8, 2016
7319a68
Added saltbeat reference (#2001)
martinhoefling Jul 11, 2016
2d35d50
Add OR/AND/NOT to the condition associated with the processors (#1983)
monicasarbu Jul 11, 2016
acb86c5
Replace optional FlagsHandler interface with callback list (#2002)
Jul 11, 2016
058a483
Update beat generator to take local beats version for build (#2006)
ruflin Jul 11, 2016
54e25b8
Cleanup system module (#1961)
ruflin Jul 11, 2016
f1ed821
Cleanup Filebeat code (#1975)
ruflin Jul 12, 2016
5d6083d
Add '-E' CLI flag (#1986)
Jul 12, 2016
01b8d64
Simplify Beater interface (#2003)
Jul 12, 2016
0e53eb0
Turn libbeat.Publisher into interface (#2009)
Jul 12, 2016
5c1e9ed
Modify ca statement (#1971) (#2017)
dedemorton Jul 13, 2016
b8bdeac
Alphabetize list of community beats (#2022)
dedemorton Jul 13, 2016
eecb37a
Update Beat launcher to pass beater config section to New (#2014)
Jul 13, 2016
787f45b
Load template by default, depending on the version (#1993)
tsg Jul 13, 2016
dff726c
Added https user/pass to the default config (#2023)
tsg Jul 13, 2016
420ae9e
Make full config file optional for beats (#2026)
ruflin Jul 13, 2016
c5c2ada
Unify beat generator and metricset generator (#2015)
ruflin Jul 13, 2016
3b877f7
Use dotted notation in the ingest node docs (#2025)
tsg Jul 13, 2016
8c2b3c7
Use pywin download hosted by our S3 (#2024)
tsg Jul 13, 2016
316059e
Remove IsConnected from ProtocolClient interface
Jul 13, 2016
500472d
Remove IsConnected from output protocol clients
Jul 13, 2016
6177714
Merge pull request #2030 from urso/issue/1997-connection-closing
tsg Jul 13, 2016
dfc109d
Update the developer guide about how to create a new Beat (#2033)
monicasarbu Jul 14, 2016
f45c188
Update the README with the latest changes (#2036)
monicasarbu Jul 14, 2016
c54b7c4
Small fixes (#2037)
monicasarbu Jul 14, 2016
7bd35f4
Don't include empty values in Metricbeat (#2034)
tsg Jul 15, 2016
6b5ddb4
Fix data loss on filebeat/winlogbeat shutdown (#2046)
Jul 15, 2016
3c4cadf
Check stdout being available in console output (#2047)
Jul 18, 2016
fb63026
How does Filebeat work
ruflin Jul 5, 2016
04a0491
Merge pull request #1963 from ruflin/filebeat-how-it-works
tsg Jul 18, 2016
e2db509
Adopt the new schema approach for the MongoDb module
Jul 14, 2016
fc76d70
Generalize the converter schema
Jul 15, 2016
e002cd5
Merge pull request #2040 from tsg/mongodb_refactor_take2
ruflin Jul 19, 2016
4360e15
Rename *_close to *_inactive (#2051)
ruflin Jul 19, 2016
297ea34
Make default path.X available in config file (#2042)
Jul 19, 2016
e6c8026
packetbeat protocols `enable` config (#1988)
Jul 19, 2016
edf6edc
Fix Metricbeat field names for redis aof
Jul 19, 2016
b41276c
Fix for fail to remove state where file was deleted and clean_removed…
Jul 19, 2016
f016d36
Add PGID field to Process struct used in Metricbeat (#2021)
nickivanov Jul 19, 2016
7bd61bf
Added info about schema to the Metricbeat dev guide (#2057)
tsg Jul 19, 2016
2e761cd
fix printing default config file path (#2060)
Jul 19, 2016
9a78dd3
Docs: Use [source,yaml] format for all YAML snippets. (#2062)
7lima Jul 19, 2016
99137dc
Merge pull request #2059 from tsg/fix_redis_aof_name
ruflin Jul 20, 2016
b78cb9c
Merge pull request #2061 from prezi/upstream
ruflin Jul 20, 2016
c7f5aa4
Merge pull request #2066 from tsg/fwd_port_2062
ruflin Jul 20, 2016
08be317
Add some format string support to libbeat (#2065)
Jul 20, 2016
8cb7193
Prospector and Harvester Cleanups (#2020)
ruflin Jul 20, 2016
a77e88f
Add dashboard for Network (#2071)
monicasarbu Jul 21, 2016
805114f
Always add conditionals to all processor actions (#2068)
Jul 21, 2016
1d60a99
EventFormatString unpack for use with configurations
Jul 22, 2016
e579bf2
Merge pull request #2085 from urso/enh/fmtstr-cfg
ruflin Jul 25, 2016
a0dd781
Renamed redis.index option to redis.key (#2077)
tsg Jul 25, 2016
4e66e8c
Add date formatter support
Jul 22, 2016
33d06a6
Add timestamp formatting to EventStringFormatter
Jul 22, 2016
b3ec2d9
Refactor processors and readers (#2088)
ruflin Jul 25, 2016
c5c51dd
Merge pull request #2083 from urso/enh/fmtstr-with-timestamps
tsg Jul 25, 2016
621a2f3
Unmarshal JSON numbers as ints where possible (#2091)
tsg Jul 26, 2016
1ce32d2
Harvester Cleanup (#2090)
ruflin Jul 26, 2016
ebbbb4c
Restore JSON tests deleted accidentally (#2093)
tsg Jul 26, 2016
f56a9dc
Make format string thread safe (#2086)
Jul 26, 2016
f4ad0c5
Fix empty lines sent (#2095)
ruflin Jul 26, 2016
3ffb2b1
Only cleanup state if harvester finished (#2075)
ruflin Jul 26, 2016
fb80edf
Validate wrong filebeat config combinations (#2007)
ruflin Jul 26, 2016
6a6d15a
Update go-ucfg to version 0.3.1 (#2097)
Jul 26, 2016
99b7106
Add Kibana dashboards for system module (#2080)
monicasarbu Jul 26, 2016
7532c80
Update annotations for alpha5 (#2100)
dedemorton Jul 27, 2016
ed21869
Fix state removal and sending empty lines (#2105)
ruflin Jul 27, 2016
33e7e3f
Closing readers based on errors (#2098)
ruflin Jul 27, 2016
048b8ba
Update tests to most recent alpha5 dependencies (#2106)
ruflin Jul 27, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 1 addition & 3 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,10 @@ os: Windows Server 2012 R2
environment:
GOROOT: c:\go1.6.2
GOPATH: c:\gopath
PYWIN_DL: https://downloads.sourceforge.net/project/pywin32/pywin32/Build%20219/pywin32-219.win32-py2.7.exe
PYWIN_DL: https://beats-files.s3.amazonaws.com/deps/pywin32-220.win32-py2.7.exe
matrix:
- PROJ: github.com\elastic\beats\filebeat
BEAT: filebeat
- PROJ: github.com\elastic\beats\topbeat
BEAT: topbeat
- PROJ: github.com\elastic\beats\winlogbeat
BEAT: winlogbeat

Expand Down
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ env:
matrix:
- TARGETS="check"
- TARGETS="-C libbeat testsuite"
- TARGETS="-C topbeat testsuite"
- TARGETS="-C filebeat testsuite"
- TARGETS="-C packetbeat testsuite"
- TARGETS="-C metricbeat testsuite"
Expand Down Expand Up @@ -101,6 +100,5 @@ after_success:
# Copy full.cov to coverage.txt because codecov.io requires this file
- test -f filebeat/build/coverage/full.cov && bash <(curl -s https://codecov.io/bash) -f filebeat/build/coverage/full.cov
- test -f packetbeat/build/coverage/full.cov && bash <(curl -s https://codecov.io/bash) -f packetbeat/build/coverage/full.cov
- test -f topbeat/build/coverage/full.cov && bash <(curl -s https://codecov.io/bash) -f topbeat/build/coverage/full.cov
- test -f libbeat/build/coverage/full.cov && bash <(curl -s https://codecov.io/bash) -f libbeat/build/coverage/full.cov
- test -f metricbeat/build/coverage/full.cov && bash <(curl -s https://codecov.io/bash) -f metricbeat/build/coverage/full.cov
94 changes: 85 additions & 9 deletions CHANGELOG.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,22 @@
// Template, add newest changes here

=== Beats version HEAD
https://github.com/elastic/beats/compare/v5.0.0-alpha3...master[Check the HEAD diff]
https://github.com/elastic/beats/compare/v5.0.0-alpha4...master[Check the HEAD diff]

==== Breaking changes

*Affecting all Beats*

- Rename the `filters` section to `processors`. {pull}1944[1944]
- Introduce the condition with `when` in the processor configuration. {pull}1949[1949]
- The Elasticsearch template is now loaded by default. {pull}1993[1993]
- The Redis output `index` setting is renamed to `key`. `index` still works but it's deprecated. {pull}2077[2077]
- The undocumented file output `index` setting was removed. Use `filename` instead. {pull}2077[2077]

*Metricbeat*

*Packetbeat*
- Set `enabled` ` in `packetbeat.protocols.icmp` configuration to `true` by default. {pull}1988[1988]

*Topbeat*

Expand All @@ -30,38 +37,54 @@ https://github.com/elastic/beats/compare/v5.0.0-alpha3...master[Check the HEAD d
==== Bugfixes

*Affecting all Beats*
- Reset backoff factor on partial ACK. {issue}1803[1803]
- Fix beats load balancer deadlock if max_retries: -1 or publish_async is enabled in filebeat. {issue}1829[1829]
- Fix sync publisher PublishEvents return value if client is closed concurrently. {pull}2046[2046]

*Metricbeat*
- Fix the CPU values returned for each core. {issue}1863[1863]

- Do not send zero values when no value was present in the source. {issue}1972[1972]

*Packetbeat*
- Add missing nil-check to memcached GapInStream handler. {issue}1162[1162]

*Topbeat*

*Filebeat*

- Fix potential data loss between filebeat restarts, reporting unpublished lines as published. {issue}2041[2041]
- Fix open file handler issue {issue}2028[2028] {pull}2020[2020]
- Fix filtering of JSON events when using integers in conditions {issue}2038[2038]

*Winlogbeat*
- Fix potential data loss between winlogbeat restarts, reporting unpublished lines as published. {issue}2041[2041]

==== Added


*Affecting all Beats*

- Periodically log internal metrics. {pull}1955[1955]
- Add enabled setting to all output modules. {pull}1987[1987]
- Command line flag -c can be used multiple times. {pull}1985[1985]
- Add OR/AND/NOT to the condition associated with the processors. {pull}1983[1983]
- Add '-E' CLI flag for overwriting single config options via command line. {pull}1986[1986]
- Choose the mapping template file based on the Elasticsearch version. {pull}1993[1993]
- Check stdout being available when console output is configured. {issue}2035[2035]
- Add enabled setting to packetbeat protocols. {pull}1988[1988]
- Add enabled setting to packetbeat network flows configuration. {pull}1988[1988]

*Metricbeat*
- Add pgid field to process information. {pull} 2021[2021]

*Packetbeat*

*Topbeat*

*Filebeat*
- Introduce close_removed and close_renamed harvester options {issue}1600[1600]
- Introduce close_eof harvester option {issue}1600[1600]
- Add clean_removed config option {issue}1600[1600]

*Winlogbeat*



==== Deprecated

*Affecting all Beats*
Expand All @@ -71,14 +94,67 @@ https://github.com/elastic/beats/compare/v5.0.0-alpha3...master[Check the HEAD d
*Topbeat*

*Filebeat*
- Deprecate close_older option and replace it with close_inactive {issue}2051[2051]
- Deprecate force_close_files option and replace it with close_removed and close_renamed {issue}1600[1600]


*Winlogbeat*

////////////////////////////////////////////////////////////

[[release-notes-5.0.0-alpha4]]
=== Beats version 5.0.0-alpha4
https://github.com/elastic/beats/compare/v5.0.0-alpha3...v5.0.0-alpha4[View commits]

==== Breaking changes

*Affecting all Beats*

- The topology_expire option of the Elasticserach output was removed. {pull}1907[1907]

*Filebeat*

- Stop following symlink. Symlinks are now ignored: {pull}1686[1686]

==== Bugfixes

*Affecting all Beats*

- Reset backoff factor on partial ACK. {issue}1803[1803]
- Fix beats load balancer deadlock if max_retries: -1 or publish_async is enabled in filebeat. {issue}1829[1829]
- Fix logstash output with pipelining mode enabled not reconnecting. {issue}1876[1876]
- Empty configuration sections become merge-able with variables containing full path. {pull}1900[1900]
- Fix error message about required fields missing not printing the missing field name. {pull}1900[1900]

*Metricbeat*

- Fix the CPU values returned for each core. {issue}1863[1863]

*Packetbeat*

- Add missing nil-check to memcached GapInStream handler. {issue}1162[1162]
- Fix NFSv4 Operation returning the first found first-class operation available in compound requests. {pull}1821[1821]
- Fix TCP overlapping segments not being handled correctly. {pull}1898[1898]

*Winlogbeat*

- Fix issue with rendering forwarded event log records. {pull}1891[1891]

==== Added

*Affecting all Beats*

- Improve error message if compiling regular expression from config files fails. {pull}1900[1900]
- Compression support in the Elasticsearch output. {pull}1835[1835]

*Metricbeat*

- Add MongoDB module. {pull}1837[1837]


[[release-notes-5.0.0-alpha3]]
=== Beats version 5.0.0-alpha3
https://github.com/elastic/beats/compare/v5.0.0alpha2...v5.0.0-alpha3[View commits]
https://github.com/elastic/beats/compare/v5.0.0-alpha2...v5.0.0-alpha3[View commits]

==== Breaking changes

Expand Down Expand Up @@ -148,7 +224,7 @@ https://github.com/elastic/beats/compare/v1.2.2...v1.2.3[View commits]

[[release-notes-5.0.0-alpha2]]
=== Beats version 5.0.0-alpha2
https://github.com/elastic/beats/compare/v5.0.0alpha1...v5.0.0-alpha2[View commits]
https://github.com/elastic/beats/compare/v5.0.0-alpha1...v5.0.0-alpha2[View commits]

==== Breaking changes

Expand Down
9 changes: 9 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,15 @@ Running the testsuite has the following requirements:
* Docker >=1.10.0
* Docker-compose >= 1.7.0


## Documentation

The documentation for each beat can be found in {beatname}/docs and are based on asciidoc. After every change of the
docs it should be verified that the docs are still building to not break the automated docs build. To build the docs
run `make docs`. In case you want to preview the docs for a beat, run `make docs-preview` inside the beats folder.
This will automatically open your browser with the docs for preview.


## Dependencies

To manage the `vendor/` folder we use
Expand Down
22 changes: 16 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
BUILD_DIR=build
COVERAGE_DIR=${BUILD_DIR}/coverage
BEATS=packetbeat topbeat filebeat winlogbeat metricbeat
BEATS=packetbeat filebeat winlogbeat metricbeat
PROJECTS=libbeat ${BEATS}

# Runs complete testsuites (unit, system, integration) for all beats,
# with coverage and race detection.
# Runs complete testsuites (unit, system, integration) for all beats with coverage and race detection.
# Also it builds the docs and the generators
.PHONY: testsuite
testsuite:
$(foreach var,$(PROJECTS),$(MAKE) -C $(var) testsuite || exit 1;)
#$(MAKE) -C generate test

# Runs unit and system tests without coverage and race detection.
.PHONY: test
Expand All @@ -27,7 +28,6 @@ coverage-report:
# Collects all coverage files and skips top line with mode
-tail -q -n +2 ./filebeat/${COVERAGE_DIR}/*.cov >> ./${COVERAGE_DIR}/full.cov
-tail -q -n +2 ./packetbeat/${COVERAGE_DIR}/*.cov >> ./${COVERAGE_DIR}/full.cov
-tail -q -n +2 ./topbeat/${COVERAGE_DIR}/*.cov >> ./${COVERAGE_DIR}/full.cov
-tail -q -n +2 ./winlogbeat/${COVERAGE_DIR}/*.cov >> ./${COVERAGE_DIR}/full.cov
-tail -q -n +2 ./libbeat/${COVERAGE_DIR}/*.cov >> ./${COVERAGE_DIR}/full.cov
go tool cover -html=./${COVERAGE_DIR}/full.cov -o ${COVERAGE_DIR}/full.html
Expand All @@ -38,9 +38,15 @@ update:

.PHONY: clean
clean:
rm -rf build
$(foreach var,$(PROJECTS),$(MAKE) -C $(var) clean || exit 1;)
$(MAKE) -C generate/beat clean
$(MAKE) -C generate/metricbeat/metricset clean
$(MAKE) -C generate clean

# Cleans up the vendor directory from unnecessary files
# This should always be run after updating the dependencies
.PHONY: clean-vendor
clean-vendor:
sh scripts/clean_vendor.sh

.PHONY: check
check:
Expand All @@ -60,3 +66,7 @@ beats-dashboards:
mkdir -p build
$(foreach var,$(PROJECTS),cp -r $(var)/etc/kibana/ build/dashboards || exit 1;)

# Builds the documents for each beat
.PHONY: docs
docs:
sh libbeat/scripts/build_docs.sh ${PROJECTS}
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ following folders:
Folder | Description
--- | ---
[libbeat](https://github.com/elastic/beats/tree/master/libbeat) | The Go framework for creating new Beats
[Topbeat](https://github.com/elastic/beats/tree/master/topbeat) | Like 'top' but inserting the data into Elasticsearch
[Packetbeat](https://github.com/elastic/beats/tree/master/packetbeat) | Tap into your wire data
[Filebeat](https://github.com/elastic/beats/tree/master/filebeat) | Lightweight log forwarder to Logstash & Elasticsearch
[Winlogbeat](https://github.com/elastic/beats/tree/master/winlogbeat) | Sends Windows Event logs
Expand Down
3 changes: 1 addition & 2 deletions dev-tools/.beatconfig
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
packetbeat-/packetbeat-
filebeat-/filebeat-
topbeat-/topbeat-
winlogonbeat-/winlogonbeat-
logstash-/logstash-
logstash-/logstash-
4 changes: 2 additions & 2 deletions dev-tools/export_dashboards.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,11 @@ def main():
help="Elasticsearch URL. E.g. http://localhost:9200",
default="http://localhost:9200")
parser.add_argument("--beat",
help="Beat name e.g. topbeat",
help="Beat name e.g. metricbeat",
required=True)
parser.add_argument("--index",
help="Elasticsearch index for the Beat data. "
"E.g. topbeat-*")
"E.g. metricbeat-*")
parser.add_argument("--kibana",
help="Elasticsearch index for the Kibana dashboards. "
"E.g. .kibana",
Expand Down
2 changes: 1 addition & 1 deletion dev-tools/import_dashboards.sh
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ if [ -f ${BEAT_CONFIG} ]; then
fi
# Failsafe
if [ -z ${SED_STRING} ]; then
SED_STRING="s/packetbeat-/packetbeat-/g;s/filebeat-/filebeat-/g;s/topbeat-/topbeat-/g;s/winlogonbeat-/winlogonbeat-/g"
SED_STRING="s/packetbeat-/packetbeat-/g;s/filebeat-/filebeat-/g;s/metricbeat-/metricbeat-/g;s/winlogonbeat-/winlogonbeat-/g"
fi

if [ -d /tmp ]; then
Expand Down
4 changes: 0 additions & 4 deletions dev-tools/packer/beats/topbeat.yml

This file was deleted.

22 changes: 11 additions & 11 deletions dev-tools/packer/platforms/windows/run.sh.j2
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,20 @@ if [ "$SNAPSHOT" = "yes" ]; then
VERSION="${VERSION}-SNAPSHOT"
fi

mkdir /{{.beat_name}}-${VERSION}-windows
cp -a homedirs/{{.beat_name}}/. /{{.beat_name}}-${VERSION}-windows/
cp {{.beat_name}}-windows-{{.arch}}.exe /{{.beat_name}}-${VERSION}-windows/{{.beat_name}}.exe
mkdir /{{.beat_name}}-${VERSION}-windows-{{.win_arch}}
cp -a homedirs/{{.beat_name}}/. /{{.beat_name}}-${VERSION}-windows-{{.win_arch}}/
cp {{.beat_name}}-windows-{{.arch}}.exe /{{.beat_name}}-${VERSION}-windows-{{.win_arch}}/{{.beat_name}}.exe
unix2dos {{.beat_name}}-win.yml
cp {{.beat_name}}-win.yml /{{.beat_name}}-${VERSION}-windows/{{.beat_name}}.yml
cp {{.beat_name}}-win.full.yml /{{.beat_name}}-${VERSION}-windows/{{.beat_name}}.full.yml
cp {{.beat_name}}.template.json /{{.beat_name}}-${VERSION}-windows/
cp {{.beat_name}}.template-es2x.json /{{.beat_name}}-${VERSION}-windows/
cp install-service-{{.beat_name}}.ps1 /{{.beat_name}}-${VERSION}-windows/
cp uninstall-service-{{.beat_name}}.ps1 /{{.beat_name}}-${VERSION}-windows/
cp {{.beat_name}}-win.yml /{{.beat_name}}-${VERSION}-windows-{{.win_arch}}/{{.beat_name}}.yml
cp {{.beat_name}}-win.full.yml /{{.beat_name}}-${VERSION}-windows-{{.win_arch}}/{{.beat_name}}.full.yml
cp {{.beat_name}}.template.json /{{.beat_name}}-${VERSION}-windows-{{.win_arch}}/
cp {{.beat_name}}.template-es2x.json /{{.beat_name}}-${VERSION}-windows-{{.win_arch}}/
cp install-service-{{.beat_name}}.ps1 /{{.beat_name}}-${VERSION}-windows-{{.win_arch}}/
cp uninstall-service-{{.beat_name}}.ps1 /{{.beat_name}}-${VERSION}-windows-{{.win_arch}}/

mkdir -p upload/{{.beat_name}}
zip -r upload/{{.beat_name}}/{{.beat_name}}-${VERSION}-windows-{{.win_arch}}.zip /{{.beat_name}}-${VERSION}-windows
echo "Created upload/{{.beat_name}}/{{.beat_name}}-${VERSION}-windows.zip"
zip -r upload/{{.beat_name}}/{{.beat_name}}-${VERSION}-windows-{{.win_arch}}.zip /{{.beat_name}}-${VERSION}-windows-{{.win_arch}}
echo "Created upload/{{.beat_name}}/{{.beat_name}}-${VERSION}-windows-{{.win_arch}}.zip"

cd upload/{{.beat_name}}
sha1sum {{.beat_name}}-${VERSION}-windows-{{.win_arch}}.zip > {{.beat_name}}-${VERSION}-windows-{{.win_arch}}.zip.sha1.txt
Expand Down
2 changes: 1 addition & 1 deletion dev-tools/packer/version.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version: "5.0.0-alpha4"
version: "5.0.0-alpha5"
Loading