├── libbeat ├── scripts │ └── __init__.py ├── tests │ ├── system │ │ ├── beat │ │ │ └── __init__.py │ │ ├── .gitignore │ │ ├── beatname.template.json │ │ ├── mockbeat.template.json │ │ ├── requirements.txt │ │ └── base.py │ └── files │ │ ├── invalid.yml │ │ └── config.yml ├── outputs │ ├── outil │ │ └── outil.go │ ├── fileout │ │ └── file_test.go │ ├── mode │ │ ├── modetest │ │ │ └── signal.go │ │ └── lb │ │ │ └── worker.go │ ├── logstash │ │ └── common_test.go │ ├── console │ │ └── config.go │ └── transport │ │ └── wrap.go ├── version │ ├── version.go │ └── helper.go ├── docs │ ├── images │ │ ├── beat_overview.png │ │ ├── beats-platform.png │ │ ├── kibana-navigation-vis.png │ │ ├── kibana-created-indexes.png │ │ └── option_ignore_outgoing.png │ ├── version.asciidoc │ └── visualizing-data.asciidoc ├── plugin │ ├── cli_stub.go │ └── load_stub.go ├── dashboards │ └── testdata │ │ └── testbeat-dashboards.zip ├── logp │ └── syslog_other.go ├── service │ └── service_unix.go ├── common │ ├── endpoint.go │ ├── statuses.go │ ├── file │ │ └── fileinfo_windows.go │ ├── dtfmt │ │ └── dtfmt.go │ └── droppriv │ │ └── droppriv_windows.go ├── libbeat.go ├── processors │ └── config_test.go ├── monitoring │ ├── report │ │ └── elasticsearch │ │ │ └── snapshot.go │ └── mode_string.go ├── libbeat_test.go └── Makefile ├── filebeat ├── tests │ ├── files │ │ ├── logs │ │ │ ├── system.log │ │ │ ├── .gitignore │ │ │ ├── json_override.log │ │ │ ├── test.log │ │ │ ├── nasa-50k.log.gz │ │ │ ├── json_int.log │ │ │ ├── multiline-c-log.log │ │ │ ├── json_timestamp.log │ │ │ └── json.log │ │ └── config2.yml │ ├── system │ │ ├── .gitignore │ │ └── config │ │ │ └── filebeat_modules.yml.j2 │ ├── load │ │ └── Makefile │ └── open-file-handlers │ │ ├── run.sh │ │ └── Dockerfile-log ├── docs │ ├── support.asciidoc │ ├── images │ │ ├── filebeat.png │ │ ├── kibana-mysql.png │ │ ├── kibana-nginx.png │ │ ├── go-playground.png │ │ ├── kibana-apache2.png │ │ ├── kibana-system.png │ │ ├── filebeat-overview.png │ │ ├── filebeat-discover-tab.png │ │ └── option_ignore_outgoing.png │ ├── module-development-guide.asciidoc │ └── upgrading.asciidoc ├── module │ ├── mysql │ │ ├── _meta │ │ │ ├── config.yml │ │ │ └── fields.yml │ │ ├── error │ │ │ └── config │ │ │ │ └── error.yml │ │ └── slowlog │ │ │ └── config │ │ │ └── slowlog.yml │ ├── system │ │ ├── _meta │ │ │ ├── config.yml │ │ │ ├── fields.yml │ │ │ └── config.full.yml │ │ ├── auth │ │ │ ├── config │ │ │ │ └── auth.yml │ │ │ └── manifest.yml │ │ └── syslog │ │ │ ├── config │ │ │ └── syslog.yml │ │ │ └── manifest.yml │ ├── apache2 │ │ ├── error │ │ │ ├── config │ │ │ │ └── error.yml │ │ │ └── test │ │ │ │ ├── darwin-2.4.23.log │ │ │ │ └── test.log │ │ ├── access │ │ │ ├── config │ │ │ │ └── access.yml │ │ │ └── test │ │ │ │ └── test.log │ │ └── _meta │ │ │ └── fields.yml │ └── nginx │ │ ├── access │ │ └── config │ │ │ └── nginx-access.yml │ │ ├── error │ │ ├── config │ │ │ └── nginx-error.yml │ │ └── manifest.yml │ │ └── _meta │ │ ├── config.yml │ │ └── fields.yml ├── harvester │ ├── harvester_test.go │ ├── source │ │ ├── file.go │ │ └── source.go │ ├── reader │ │ ├── doc.go │ │ ├── reader.go │ │ └── json_config.go │ ├── util.go │ └── stdin.go ├── scripts │ └── module │ │ ├── docs.asciidoc │ │ ├── fileset │ │ ├── config │ │ │ └── config.yml │ │ ├── fields.yml │ │ ├── ingest │ │ │ └── pipeline.json │ │ └── manifest.yml │ │ └── fields.yml ├── .gitignore └── make.bat ├── generator ├── beat │ ├── {beat} │ │ ├── CONTRIBUTING.md │ │ ├── tests │ │ │ └── system │ │ │ │ └── requirements.txt │ │ ├── config │ │ │ ├── config_test.go.tmpl │ │ │ └── config.go.tmpl │ │ ├── .gitignore │ │ ├── docs │ │ │ └── index.asciidoc │ │ ├── NOTICE │ │ ├── _meta │ │ │ ├── fields.yml │ │ │ └── beat.yml │ │ └── main.go.tmpl │ ├── .gitignore │ ├── Makefile │ └── README.md ├── metricbeat │ ├── {beat} │ │ ├── CONTRIBUTING.md │ │ ├── .gitignore │ │ └── NOTICE │ ├── .gitignore │ ├── Makefile │ └── README.md └── Makefile ├── metricbeat ├── module │ ├── php_fpm │ │ ├── Dockerfile │ │ ├── _meta │ │ │ ├── env │ │ │ ├── config.yml │ │ │ ├── Dockerfile │ │ │ └── fields.yml │ │ ├── doc.go │ │ └── pool │ │ │ └── _meta │ │ │ └── docs.asciidoc │ ├── jolokia │ │ ├── jmx │ │ │ └── _meta │ │ │ │ └── fields.yml │ │ ├── _meta │ │ │ ├── env │ │ │ ├── docs.asciidoc │ │ │ ├── config.yml │ │ │ └── fields.yml │ │ └── doc.go │ ├── prometheus │ │ ├── collector │ │ │ └── _meta │ │ │ │ ├── fields.yml │ │ │ │ └── docs.asciidoc │ │ ├── _meta │ │ │ ├── env │ │ │ ├── Dockerfile │ │ │ ├── docs.asciidoc │ │ │ ├── config.yml │ │ │ └── fields.yml │ │ ├── doc.go │ │ └── stats │ │ │ └── _meta │ │ │ └── docs.asciidoc │ ├── ceph │ │ ├── _meta │ │ │ ├── env │ │ │ ├── config.yml │ │ │ ├── docs.asciidoc │ │ │ ├── Dockerfile │ │ │ └── fields.yml │ │ ├── doc.go │ │ ├── pool_disk │ │ │ └── _meta │ │ │ │ └── docs.asciidoc │ │ ├── cluster_disk │ │ │ └── _meta │ │ │ │ └── docs.asciidoc │ │ ├── cluster_health │ │ │ └── _meta │ │ │ │ └── docs.asciidoc │ │ └── monitor_health │ │ │ └── _meta │ │ │ └── docs.asciidoc │ ├── nginx │ │ ├── _meta │ │ │ ├── env │ │ │ ├── config.yml │ │ │ ├── Dockerfile │ │ │ ├── config.full.yml │ │ │ ├── docs.asciidoc │ │ │ └── fields.yml │ │ ├── doc.go │ │ ├── stubstatus │ │ │ └── _meta │ │ │ │ └── docs.asciidoc │ │ └── testing.go │ ├── apache │ │ ├── _meta │ │ │ ├── env │ │ │ ├── config.yml │ │ │ ├── Dockerfile │ │ │ └── fields.yml │ │ ├── doc.go │ │ └── status │ │ │ └── _meta │ │ │ └── docs.asciidoc │ ├── kafka │ │ ├── _meta │ │ │ ├── env │ │ │ ├── docs.asciidoc │ │ │ ├── fields.yml │ │ │ └── Dockerfile │ │ ├── kafka.go │ │ └── consumergroup │ │ │ └── _meta │ │ │ └── docs.asciidoc │ ├── redis │ │ ├── _meta │ │ │ ├── env │ │ │ ├── Dockerfile │ │ │ ├── config.yml │ │ │ └── fields.yml │ │ ├── redis_integration_test.go │ │ ├── info │ │ │ └── _meta │ │ │ │ └── docs.asciidoc │ │ └── keyspace │ │ │ └── _meta │ │ │ └── docs.asciidoc │ ├── docker │ │ ├── vendor │ │ │ └── github.com │ │ │ │ ├── docker │ │ │ │ └── docker │ │ │ │ │ ├── VERSION │ │ │ │ │ ├── pkg │ │ │ │ │ ├── graphdb │ │ │ │ │ │ └── unsupported.go │ │ │ │ │ ├── chrootarchive │ │ │ │ │ │ ├── init_windows.go │ │ │ │ │ │ └── chroot_unix.go │ │ │ │ │ ├── archive │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ ├── archive_other.go │ │ │ │ │ │ ├── copy_windows.go │ │ │ │ │ │ ├── copy_unix.go │ │ │ │ │ │ ├── time_unsupported.go │ │ │ │ │ │ └── time_linux.go │ │ │ │ │ ├── stringutils │ │ │ │ │ │ └── README.md │ │ │ │ │ ├── sysinfo │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ ├── numcpu.go │ │ │ │ │ │ ├── sysinfo_windows.go │ │ │ │ │ │ └── sysinfo_unix.go │ │ │ │ │ ├── stringid │ │ │ │ │ │ └── README.md │ │ │ │ │ ├── signal │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ └── signal_unsupported.go │ │ │ │ │ ├── useragent │ │ │ │ │ │ └── README.md │ │ │ │ │ ├── mount │ │ │ │ │ │ ├── mountinfo_windows.go │ │ │ │ │ │ ├── mounter_unsupported.go │ │ │ │ │ │ └── mountinfo_unsupported.go │ │ │ │ │ ├── plugins │ │ │ │ │ │ ├── pluginrpc-gen │ │ │ │ │ │ │ └── fixtures │ │ │ │ │ │ │ │ └── otherfixture │ │ │ │ │ │ │ │ └── spaceship.go │ │ │ │ │ │ ├── discovery_unix.go │ │ │ │ │ │ ├── discovery_windows.go │ │ │ │ │ │ ├── plugins_linux.go │ │ │ │ │ │ └── plugins_windows.go │ │ │ │ │ ├── fileutils │ │ │ │ │ │ ├── fileutils_windows.go │ │ │ │ │ │ └── fileutils_solaris.go │ │ │ │ │ ├── namesgenerator │ │ │ │ │ │ └── cmd │ │ │ │ │ │ │ └── names-generator │ │ │ │ │ │ │ └── main.go │ │ │ │ │ ├── system │ │ │ │ │ │ ├── errors.go │ │ │ │ │ │ ├── meminfo_unsupported.go │ │ │ │ │ │ ├── umask_windows.go │ │ │ │ │ │ ├── utimes_unsupported.go │ │ │ │ │ │ ├── umask.go │ │ │ │ │ │ ├── chtimes_unix.go │ │ │ │ │ │ ├── mknod_windows.go │ │ │ │ │ │ └── stat_openbsd.go │ │ │ │ │ ├── ioutils │ │ │ │ │ │ └── temp_unix.go │ │ │ │ │ ├── reexec │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ └── command_unsupported.go │ │ │ │ │ ├── symlink │ │ │ │ │ │ └── fs_unix.go │ │ │ │ │ ├── pidfile │ │ │ │ │ │ ├── pidfile_darwin.go │ │ │ │ │ │ └── pidfile_unix.go │ │ │ │ │ ├── tlsconfig │ │ │ │ │ │ └── tlsconfig_clone.go │ │ │ │ │ ├── promise │ │ │ │ │ │ └── promise.go │ │ │ │ │ ├── homedir │ │ │ │ │ │ └── homedir_others.go │ │ │ │ │ └── devicemapper │ │ │ │ │ │ └── log.go │ │ │ │ │ ├── opts │ │ │ │ │ ├── hosts_windows.go │ │ │ │ │ ├── opts_unix.go │ │ │ │ │ └── hosts_unix.go │ │ │ │ │ └── api │ │ │ │ │ └── types │ │ │ │ │ └── time │ │ │ │ │ └── duration_convert.go │ │ │ │ ├── opencontainers │ │ │ │ └── runc │ │ │ │ │ └── libcontainer │ │ │ │ │ ├── cgroups │ │ │ │ │ └── cgroups_unsupported.go │ │ │ │ │ ├── devices │ │ │ │ │ └── devices_unsupported.go │ │ │ │ │ ├── configs │ │ │ │ │ ├── namespaces.go │ │ │ │ │ ├── cgroup_unsupported.go │ │ │ │ │ ├── cgroup_windows.go │ │ │ │ │ ├── hugepage_limit.go │ │ │ │ │ ├── namespaces_unsupported.go │ │ │ │ │ └── interface_priority_map.go │ │ │ │ │ └── system │ │ │ │ │ ├── unsupported.go │ │ │ │ │ └── sysconfig.go │ │ │ │ ├── Microsoft │ │ │ │ └── go-winio │ │ │ │ │ ├── backuptar │ │ │ │ │ └── noop.go │ │ │ │ │ └── syscall.go │ │ │ │ ├── Sirupsen │ │ │ │ └── logrus │ │ │ │ │ ├── terminal_appengine.go │ │ │ │ │ ├── terminal_bsd.go │ │ │ │ │ └── terminal_solaris.go │ │ │ │ └── fsouza │ │ │ │ └── go-dockerclient │ │ │ │ ├── DOCKER-LICENSE │ │ │ │ └── travis-scripts │ │ │ │ └── run-tests.bash │ │ ├── doc.go │ │ ├── cpu │ │ │ └── _meta │ │ │ │ └── docs.asciidoc │ │ ├── image │ │ │ └── _meta │ │ │ │ └── docs.asciidoc │ │ ├── memory │ │ │ └── _meta │ │ │ │ └── docs.asciidoc │ │ ├── diskio │ │ │ └── _meta │ │ │ │ └── docs.asciidoc │ │ ├── network │ │ │ └── _meta │ │ │ │ └── docs.asciidoc │ │ ├── container │ │ │ └── _meta │ │ │ │ └── docs.asciidoc │ │ ├── healthcheck │ │ │ └── _meta │ │ │ │ └── docs.asciidoc │ │ ├── _meta │ │ │ ├── docs.asciidoc │ │ │ └── fields.yml │ │ └── info │ │ │ └── _meta │ │ │ └── docs.asciidoc │ ├── haproxy │ │ ├── _meta │ │ │ ├── env │ │ │ ├── config.yml │ │ │ ├── config.full.yml │ │ │ ├── Dockerfile │ │ │ └── fields.yml │ │ ├── doc.go │ │ ├── info │ │ │ └── _meta │ │ │ │ └── docs.asciidoc │ │ └── stat │ │ │ └── _meta │ │ │ └── docs.asciidoc │ ├── mongodb │ │ ├── _meta │ │ │ ├── env │ │ │ ├── Dockerfile │ │ │ └── fields.yml │ │ ├── doc.go │ │ ├── status │ │ │ └── _meta │ │ │ │ └── docs.asciidoc │ │ └── dbstats │ │ │ └── _meta │ │ │ └── docs.asciidoc │ ├── memcached │ │ ├── _meta │ │ │ ├── env │ │ │ ├── config.yml │ │ │ ├── docs.asciidoc │ │ │ ├── Dockerfile │ │ │ └── fields.yml │ │ ├── doc.go │ │ └── stats │ │ │ └── _meta │ │ │ └── docs.asciidoc │ ├── system │ │ ├── system_test.go │ │ ├── cpu │ │ │ ├── doc.go │ │ │ └── _meta │ │ │ │ └── docs.asciidoc │ │ ├── core │ │ │ ├── doc.go │ │ │ └── _meta │ │ │ │ └── docs.asciidoc │ │ ├── load │ │ │ ├── doc.go │ │ │ └── _meta │ │ │ │ └── docs.asciidoc │ │ ├── memory │ │ │ ├── doc.go │ │ │ └── _meta │ │ │ │ └── docs.asciidoc │ │ ├── network │ │ │ └── doc.go │ │ ├── socket │ │ │ ├── doc.go │ │ │ └── hashset_test.go │ │ ├── system_other.go │ │ ├── doc.go │ │ ├── _meta │ │ │ ├── testing │ │ │ │ ├── README.md │ │ │ │ └── burn.go │ │ │ └── fields.yml │ │ ├── fsstat │ │ │ └── _meta │ │ │ │ └── docs.asciidoc │ │ └── diskio │ │ │ ├── _meta │ │ │ └── docs.asciidoc │ │ │ └── doc.go │ ├── zookeeper │ │ ├── _meta │ │ │ ├── env │ │ │ ├── Dockerfile │ │ │ ├── config.yml │ │ │ ├── docs.asciidoc │ │ │ └── fields.yml │ │ └── mntr │ │ │ └── _meta │ │ │ └── docs.asciidoc │ ├── windows │ │ ├── _meta │ │ │ ├── docs.asciidoc │ │ │ ├── config.yml │ │ │ └── fields.yml │ │ └── doc.go │ ├── mysql │ │ ├── _meta │ │ │ ├── env │ │ │ ├── Dockerfile │ │ │ ├── fields.yml │ │ │ └── config.yml │ │ └── mysql_integration_test.go │ ├── postgresql │ │ ├── _meta │ │ │ ├── Dockerfile │ │ │ ├── env │ │ │ └── fields.yml │ │ ├── doc.go │ │ ├── activity │ │ │ └── _meta │ │ │ │ └── docs.asciidoc │ │ ├── bgwriter │ │ │ └── _meta │ │ │ │ └── docs.asciidoc │ │ ├── database │ │ │ └── _meta │ │ │ │ └── docs.asciidoc │ │ ├── vendor │ │ │ └── github.com │ │ │ │ └── lib │ │ │ │ └── pq │ │ │ │ ├── oid │ │ │ │ └── doc.go │ │ │ │ ├── ssl_renegotiation.go │ │ │ │ └── ssl_windows.go │ │ └── testing.go │ ├── golang │ │ ├── doc.go │ │ ├── heap │ │ │ └── _meta │ │ │ │ └── docs.asciidoc │ │ ├── _meta │ │ │ ├── docs.asciidoc │ │ │ ├── fields.yml │ │ │ └── config.yml │ │ └── expvar │ │ │ └── _meta │ │ │ ├── docs.asciidoc │ │ │ └── fields.yml │ └── couchbase │ │ ├── doc.go │ │ ├── _meta │ │ ├── env │ │ ├── config.yml │ │ ├── docs.asciidoc │ │ ├── Dockerfile │ │ └── fields.yml │ │ ├── bucket │ │ └── _meta │ │ │ └── docs.asciidoc │ │ ├── node │ │ └── _meta │ │ │ └── docs.asciidoc │ │ ├── cluster │ │ └── _meta │ │ │ └── docs.asciidoc │ │ └── testing.go ├── scripts │ └── module │ │ ├── docs.asciidoc │ │ ├── doc.go.tmpl │ │ ├── metricset │ │ ├── docs.asciidoc │ │ └── fields.yml │ │ ├── config.yml │ │ └── fields.yml ├── docs │ ├── images │ │ ├── module-overview.png │ │ ├── kibana-created-indexes.png │ │ ├── kibana-navigation-vis.png │ │ ├── option_ignore_outgoing.png │ │ ├── apache_httpd_server_status.png │ │ └── metricbeat_system_dashboard.png │ ├── configuring-logstash.asciidoc │ ├── command-line.asciidoc │ ├── upgrading.asciidoc │ └── modules │ │ └── golang │ │ └── expvar.asciidoc ├── .gitignore ├── schema │ ├── doc.go │ └── errors_test.go └── beater │ └── config.go ├── heartbeat ├── tests │ └── system │ │ ├── requirements.txt │ │ └── heartbeat.py ├── config │ └── config_test.go ├── .gitignore ├── docs │ ├── images │ │ ├── heartbeat-statistics.png │ │ ├── kibana-navigation-vis.png │ │ └── kibana-created-indexes.png │ ├── heartbeat-filtering.asciidoc │ ├── configuring-logstash.asciidoc │ ├── page_header.html │ ├── faq.asciidoc │ └── how-heartbeat-works.asciidoc ├── monitors │ ├── active │ │ └── icmp │ │ │ └── util.go │ └── defaults │ │ └── default.go └── main.go ├── dev-tools ├── requirements.txt ├── packer │ ├── version.yml │ ├── docker │ │ ├── deb-rpm-s3 │ │ │ ├── .gitignore │ │ │ ├── rpmmacros │ │ │ └── build.sh │ │ ├── xgo-image │ │ │ ├── base │ │ │ │ └── patch.tar.xz │ │ │ ├── beats-builder │ │ │ │ └── wpcap.dll │ │ │ └── build.sh │ │ ├── xgo-image-deb6 │ │ │ ├── base │ │ │ │ └── sources.list │ │ │ └── build.sh │ │ ├── fpm-image │ │ │ └── Dockerfile │ │ └── go-daemon │ │ │ └── Dockerfile │ ├── platforms │ │ ├── README │ │ ├── windows │ │ │ └── uninstall-service.ps1.j2 │ │ ├── centos │ │ │ └── beatname.sh.j2 │ │ └── debian │ │ │ └── beatname.sh.j2 │ ├── archs │ │ ├── 386.yml │ │ └── amd64.yml │ └── .gitignore ├── cmd │ └── import_dashboards │ │ ├── .gitignore │ │ └── Makefile ├── .beatconfig └── vendor │ ├── golang.org │ └── x │ │ └── crypto │ │ ├── README │ │ ├── AUTHORS │ │ └── CONTRIBUTORS │ └── github.com │ ├── blakesmith │ └── ar │ │ └── README.md │ └── cavaliercoder │ └── go-rpm │ └── doc.go ├── packetbeat ├── tests │ └── system │ │ ├── gen │ │ ├── memcache │ │ │ ├── requirements.txt │ │ │ ├── udp_counter_ops.py │ │ │ ├── udp_delete.py │ │ │ ├── tcp_delete.py │ │ │ ├── tcp_stats.py │ │ │ ├── tcp_counter_ops.py │ │ │ ├── udp_single_store.py │ │ │ └── udp_multi_store.py │ │ └── README.md │ │ ├── .gitignore │ │ └── pcaps │ │ ├── dns_mx.pcap │ │ ├── dns_ns.pcap │ │ ├── dns_txt.pcap │ │ ├── nfs_v3.pcap │ │ ├── nfs_v4.pcap │ │ ├── http_post.pcap │ │ ├── mysql_long.pcap │ │ ├── nfs4_close.pcap │ │ ├── pgsql_rt.pcap │ │ ├── wsgi_drum.pcap │ │ ├── amqp_publish.pcap │ │ ├── dns_tcp_axfr.pcap │ │ ├── http_realip.pcap │ │ ├── ipv6_thrift.pcap │ │ ├── mongodb_find.pcap │ │ ├── pgsql_insert.pcap │ │ ├── dns_additional.pcap │ │ ├── dns_google_com.pcap │ │ ├── dns_not_found.pcap │ │ ├── dns_udp_edns_ds.pcap │ │ ├── gap_in_stream.pcap │ │ ├── hide_secret_GET.pcap │ │ ├── http_basicauth.pcap │ │ ├── http_minitwit.pcap │ │ ├── http_over_vlan.pcap │ │ ├── http_post_json.pcap │ │ ├── http_url_params.pcap │ │ ├── icmp │ │ ├── icmp4_ping.pcap │ │ ├── icmp6_ping.pcap │ │ ├── icmp_2_pings.pcap │ │ ├── icmp4_ping_over_vlan.pcap │ │ └── icmp6_ping_over_vlan.pcap │ │ ├── mongo_one_row.pcap │ │ ├── mongodb_inserts.pcap │ │ ├── mongodb_use_db.pcap │ │ ├── mysql_with_gap.pcap │ │ ├── redis_session.pcap │ │ ├── thrift_tutorial.pcap │ │ ├── wsgi_loopback.pcap │ │ ├── amqp_emit_receive.pcap │ │ ├── hide_secret_POST.pcap │ │ ├── http_get_2k_file.pcap │ │ ├── mongo_3.0_session.pcap │ │ ├── mongodb_more_rows.pcap │ │ ├── mysql_long_result.pcap │ │ ├── pgsql_long_result.pcap │ │ ├── amqp_channel_error.pcap │ │ ├── http_x_forwarded_for.pcap │ │ ├── mysql_affected_rows.pcap │ │ ├── pgsql_extended_query.pcap │ │ ├── pgsql_insert_error.pcap │ │ ├── thrift_echo_binary.pcap │ │ ├── thrift_integration.pcap │ │ ├── mysql_with_whitespaces.pcap │ │ ├── pgsql_request_response.pcap │ │ ├── redis_one_transaction.pcap │ │ ├── http_10_connection_close.pcap │ │ ├── mongodb_create_collection.pcap │ │ ├── mongodb_reply_request_reply.pcap │ │ ├── mysql_int_string_operations.pcap │ │ ├── cassandra │ │ └── v4 │ │ │ ├── cassandra_insert.pcap │ │ │ ├── cassandra_select.pcap │ │ │ ├── cassandra_trace_err.pcap │ │ │ ├── cassandra_compressed.pcap │ │ │ ├── cassandra_create_index.pcap │ │ │ ├── cassandra_create_table.pcap │ │ │ ├── cassandra_mixed_frame.pcap │ │ │ ├── cassandra_create_keyspace.pcap │ │ │ └── cassandra_select_via_index.pcap │ │ ├── mongodb_insert_duplicate_key.pcap │ │ ├── memcache │ │ ├── memcache_bin_tcp_delete.pcap │ │ ├── memcache_bin_tcp_stats.pcap │ │ ├── memcache_bin_udp_delete.pcap │ │ ├── memcache_text_tcp_stats.pcap │ │ ├── memcache_text_tcp_delete.pcap │ │ ├── memcache_text_udp_delete.pcap │ │ ├── memcache_bin_tcp_counter_ops.pcap │ │ ├── memcache_bin_udp_counter_ops.pcap │ │ ├── memcache_bin_udp_multi_store.pcap │ │ ├── memcache_bin_udp_single_store.pcap │ │ ├── memcache_text_tcp_counter_ops.pcap │ │ ├── memcache_text_udp_counter_ops.pcap │ │ ├── memcache_text_udp_multi_store.pcap │ │ ├── memcache_text_udp_single_store.pcap │ │ ├── memcache_bin_tcp_multi_store_load.pcap │ │ ├── memcache_bin_tcp_single_load_store.pcap │ │ ├── memcache_text_tcp_multi_store_load.pcap │ │ └── memcache_text_tcp_single_load_store.pcap │ │ ├── mysql_err_database_not_selected.pcap │ │ └── thrift_tutorial_framed_transport.pcap ├── docs │ ├── images │ │ ├── kibana-discover.png │ │ ├── kibana-filters.png │ │ ├── kibana-update-map.png │ │ ├── thrift-dashboard.png │ │ ├── filter_from_context.png │ │ ├── kibana-index-pattern.png │ │ ├── kibana-created-indexes.png │ │ ├── kibana-navigation-vis.png │ │ ├── kibana-query-filtering.png │ │ ├── option_ignore_outgoing.png │ │ ├── packetbeat-statistics.png │ │ ├── kibana_connection_failed.png │ │ ├── saved-packetbeat-searches.png │ │ ├── discovery-packetbeat-flows.png │ │ ├── kibana-refresh-index-fields.png │ │ └── discovery-packetbeat-transactions.png │ ├── configuring-logstash.asciidoc │ └── upgrading.asciidoc └── protos │ ├── cassandra │ └── README.md │ └── nfs │ └── config.go ├── vendor ├── github.com │ ├── miekg │ │ └── dns │ │ │ ├── AUTHORS │ │ │ └── CONTRIBUTORS │ ├── tsg │ │ └── gopacket │ │ │ ├── CHANGELOG │ │ │ ├── pcap │ │ │ ├── test_dns.pcap │ │ │ ├── test_ethernet.pcap │ │ │ └── test_loopback.pcap │ │ │ └── README.mkd │ ├── klauspost │ │ └── cpuid │ │ │ └── generate.go │ ├── stretchr │ │ ├── testify │ │ │ ├── http │ │ │ │ └── doc.go │ │ │ ├── vendor │ │ │ │ └── github.com │ │ │ │ │ └── stretchr │ │ │ │ │ └── objx │ │ │ │ │ ├── README.md │ │ │ │ │ ├── security.go │ │ │ │ │ └── value.go │ │ │ ├── Godeps │ │ │ │ └── Readme │ │ │ ├── require │ │ │ │ ├── require_forward.go.tmpl │ │ │ │ ├── require.go.tmpl │ │ │ │ └── requirements.go │ │ │ └── assert │ │ │ │ ├── assertion_forward.go.tmpl │ │ │ │ └── errors.go │ │ └── objx │ │ │ ├── README.md │ │ │ ├── security.go │ │ │ └── constants.go │ ├── StackExchange │ │ └── wmi │ │ │ └── README.md │ ├── elastic │ │ ├── gosigar │ │ │ ├── sys │ │ │ │ ├── windows │ │ │ │ │ └── doc.go │ │ │ │ └── linux │ │ │ │ │ ├── sysconf_nocgo.go │ │ │ │ │ └── sysconf_cgo.go │ │ │ └── sigar_util.go │ │ ├── go-lumber │ │ │ ├── server │ │ │ │ └── v2 │ │ │ │ │ └── doc.go │ │ │ └── client │ │ │ │ └── v2 │ │ │ │ └── doc.go │ │ └── procfs │ │ │ ├── Makefile │ │ │ └── NOTICE │ ├── rcrowley │ │ └── go-metrics │ │ │ ├── runtime_no_cgo.go │ │ │ ├── runtime_cgo.go │ │ │ ├── runtime_no_gccpufraction.go │ │ │ ├── runtime_gccpufraction.go │ │ │ └── validate.sh │ ├── go-ole │ │ └── go-ole │ │ │ ├── error_func.go │ │ │ ├── itypeinfo_func.go │ │ │ ├── oleutil │ │ │ ├── go-get.go │ │ │ └── connection_func.go │ │ │ ├── iprovideclassinfo_func.go │ │ │ ├── variant_386.go │ │ │ ├── variant_amd64.go │ │ │ ├── iconnectionpointcontainer_func.go │ │ │ ├── ienumvariant.go │ │ │ └── iinspectable_func.go │ ├── dustin │ │ └── go-humanize │ │ │ └── humanize.go │ └── pierrre │ │ └── gotestcover │ │ └── Makefile ├── gopkg.in │ └── mgo.v2 │ │ ├── raceon.go │ │ ├── raceoff.go │ │ ├── Makefile │ │ ├── README.md │ │ ├── saslstub.go │ │ └── saslimpl.go └── golang.org │ └── x │ ├── net │ ├── ipv4 │ │ ├── thunk_linux_386.s │ │ ├── sys_stub.go │ │ └── sockopt_stub.go │ ├── ipv6 │ │ ├── thunk_linux_386.s │ │ ├── sys_stub.go │ │ └── sockopt_stub.go │ └── icmp │ │ └── sys_freebsd.go │ ├── text │ ├── language │ │ └── go1_2.go │ └── encoding │ │ └── japanese │ │ └── all.go │ └── sys │ └── windows │ ├── svc │ └── go12.go │ └── env_unset.go ├── testing └── environments │ ├── docker │ ├── test.env │ ├── elasticsearch │ │ └── config │ │ │ ├── elasticsearch.yml │ │ │ └── log4j2.properties │ ├── redis │ │ └── Dockerfile │ ├── kafka │ │ └── Dockerfile │ ├── sredis │ │ ├── stunnel.conf │ │ ├── gencerts.sh │ │ └── Dockerfile │ ├── kibana │ │ └── config │ │ │ └── kibana.yml │ └── logstash │ │ └── gencerts.sh │ ├── Dockerfile │ └── args.yml ├── winlogbeat ├── docs │ ├── images │ │ ├── winlogbeat-dashboard.png │ │ ├── kibana-created-indexes.png │ │ ├── kibana-navigation-vis.png │ │ └── option_ignore_outgoing.png │ └── upgrading.asciidoc ├── sys │ ├── doc.go │ ├── wineventlog │ │ └── doc.go │ └── errors.go ├── checkpoint │ └── file_unix.go ├── eventlog │ └── doc.go └── README.md ├── .gitattributes └── .pylintrc /libbeat/scripts/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /filebeat/tests/files/logs/system.log: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /generator/beat/{beat}/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /libbeat/tests/system/beat/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /metricbeat/module/php_fpm/Dockerfile: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /filebeat/tests/system/.gitignore: -------------------------------------------------------------------------------- 1 | *.pyc 2 | -------------------------------------------------------------------------------- /generator/metricbeat/{beat}/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /heartbeat/tests/system/requirements.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /libbeat/tests/system/.gitignore: -------------------------------------------------------------------------------- 1 | *.pyc 2 | -------------------------------------------------------------------------------- /dev-tools/requirements.txt: -------------------------------------------------------------------------------- 1 | elasticsearch 2 | -------------------------------------------------------------------------------- /libbeat/outputs/outil/outil.go: -------------------------------------------------------------------------------- 1 | package outil 2 | -------------------------------------------------------------------------------- /metricbeat/module/jolokia/jmx/_meta/fields.yml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /generator/beat/.gitignore: -------------------------------------------------------------------------------- 1 | # Folders 2 | build 3 | -------------------------------------------------------------------------------- /generator/beat/{beat}/tests/system/requirements.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /dev-tools/packer/version.yml: -------------------------------------------------------------------------------- 1 | version: "6.0.0-alpha1" 2 | -------------------------------------------------------------------------------- /filebeat/docs/support.asciidoc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /metricbeat/module/prometheus/collector/_meta/fields.yml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /filebeat/module/mysql/_meta/config.yml: -------------------------------------------------------------------------------- 1 | #- module: mysql 2 | -------------------------------------------------------------------------------- /filebeat/module/system/_meta/config.yml: -------------------------------------------------------------------------------- 1 | #- module: system 2 | -------------------------------------------------------------------------------- /libbeat/tests/system/beatname.template.json: -------------------------------------------------------------------------------- 1 | {"template": true} -------------------------------------------------------------------------------- /libbeat/tests/system/mockbeat.template.json: -------------------------------------------------------------------------------- 1 | {"template": true} -------------------------------------------------------------------------------- /dev-tools/cmd/import_dashboards/.gitignore: -------------------------------------------------------------------------------- 1 | import_dashboards 2 | -------------------------------------------------------------------------------- /dev-tools/packer/docker/deb-rpm-s3/.gitignore: -------------------------------------------------------------------------------- 1 | elasticsearch.asc 2 | -------------------------------------------------------------------------------- /generator/beat/Makefile: -------------------------------------------------------------------------------- 1 | 2 | 3 | include ../common/Makefile 4 | -------------------------------------------------------------------------------- /generator/metricbeat/{beat}/.gitignore: -------------------------------------------------------------------------------- 1 | # Directories 2 | build 3 | -------------------------------------------------------------------------------- /packetbeat/tests/system/gen/memcache/requirements.txt: -------------------------------------------------------------------------------- 1 | pylibmc 2 | -------------------------------------------------------------------------------- /vendor/github.com/miekg/dns/AUTHORS: -------------------------------------------------------------------------------- 1 | Miek Gieben 2 | -------------------------------------------------------------------------------- /metricbeat/module/ceph/_meta/env: -------------------------------------------------------------------------------- 1 | CEPH_HOST=ceph 2 | CEPH_PORT=5000 3 | -------------------------------------------------------------------------------- /metricbeat/module/nginx/_meta/env: -------------------------------------------------------------------------------- 1 | NGINX_HOST=nginx 2 | NGINX_PORT=80 3 | -------------------------------------------------------------------------------- /libbeat/tests/files/invalid.yml: -------------------------------------------------------------------------------- 1 | test: 2 | test were 3 | : invalid yml 4 | -------------------------------------------------------------------------------- /metricbeat/module/apache/_meta/env: -------------------------------------------------------------------------------- 1 | APACHE_HOST=apache 2 | APACHE_PORT=80 3 | -------------------------------------------------------------------------------- /metricbeat/module/kafka/_meta/env: -------------------------------------------------------------------------------- 1 | KAFKA_HOST=kafka 2 | KAFKA_PORT=9092 3 | -------------------------------------------------------------------------------- /metricbeat/module/php_fpm/_meta/env: -------------------------------------------------------------------------------- 1 | PHPFPM_HOST=phpfpm 2 | PHPFPM_PORT=81 3 | -------------------------------------------------------------------------------- /metricbeat/module/redis/_meta/env: -------------------------------------------------------------------------------- 1 | REDIS_HOST=redis 2 | REDIS_PORT=6379 3 | -------------------------------------------------------------------------------- /packetbeat/tests/system/.gitignore: -------------------------------------------------------------------------------- 1 | *.pyc 2 | *.swp 3 | *.swo 4 | *.swn 5 | -------------------------------------------------------------------------------- /heartbeat/config/config_test.go: -------------------------------------------------------------------------------- 1 | // +build !integration 2 | 3 | package config 4 | -------------------------------------------------------------------------------- /metricbeat/module/docker/vendor/github.com/docker/docker/VERSION: -------------------------------------------------------------------------------- 1 | 1.14.0-dev 2 | -------------------------------------------------------------------------------- /metricbeat/module/haproxy/_meta/env: -------------------------------------------------------------------------------- 1 | HAPROXY_HOST=haproxy 2 | HAPROXY_PORT=14567 3 | -------------------------------------------------------------------------------- /metricbeat/module/jolokia/_meta/env: -------------------------------------------------------------------------------- 1 | JOLOKIA_HOST=jolokia 2 | JOLOKIA_PORT=8778 3 | -------------------------------------------------------------------------------- /metricbeat/module/mongodb/_meta/env: -------------------------------------------------------------------------------- 1 | MONGODB_HOST=mongodb 2 | MONGODB_PORT=27017 3 | -------------------------------------------------------------------------------- /testing/environments/docker/test.env: -------------------------------------------------------------------------------- 1 | ES_HOST=elasticsearch 2 | ES_PORT=9200 3 | -------------------------------------------------------------------------------- /libbeat/outputs/fileout/file_test.go: -------------------------------------------------------------------------------- 1 | // +build !integration 2 | 3 | package fileout 4 | -------------------------------------------------------------------------------- /filebeat/harvester/harvester_test.go: -------------------------------------------------------------------------------- 1 | // +build !integration 2 | 3 | package harvester 4 | -------------------------------------------------------------------------------- /filebeat/tests/files/logs/.gitignore: -------------------------------------------------------------------------------- 1 | # Ignore all temp files 2 | tmp* 3 | nasa-50k.log 4 | -------------------------------------------------------------------------------- /filebeat/tests/files/logs/json_override.log: -------------------------------------------------------------------------------- 1 | {"source": "hello", "message": "test source"} 2 | -------------------------------------------------------------------------------- /filebeat/tests/load/Makefile: -------------------------------------------------------------------------------- 1 | run: 2 | python load.py 3 | 4 | clean: 5 | rm -r logs 6 | -------------------------------------------------------------------------------- /metricbeat/module/memcached/_meta/env: -------------------------------------------------------------------------------- 1 | MEMCACHED_HOST=memcached 2 | MEMCACHED_PORT=11211 3 | -------------------------------------------------------------------------------- /metricbeat/module/system/system_test.go: -------------------------------------------------------------------------------- 1 | // +build !integration 2 | 3 | package system 4 | -------------------------------------------------------------------------------- /metricbeat/module/zookeeper/_meta/env: -------------------------------------------------------------------------------- 1 | ZOOKEEPER_HOST=zookeeper 2 | ZOOKEEPER_PORT=2181 3 | -------------------------------------------------------------------------------- /testing/environments/docker/elasticsearch/config/elasticsearch.yml: -------------------------------------------------------------------------------- 1 | http.compression: true 2 | -------------------------------------------------------------------------------- /filebeat/scripts/module/docs.asciidoc: -------------------------------------------------------------------------------- 1 | == {module} module 2 | 3 | This is the {module} module. 4 | -------------------------------------------------------------------------------- /filebeat/tests/files/logs/test.log: -------------------------------------------------------------------------------- 1 | This 2 | Must 3 | Be 4 | At least 10 characters 5 | Long 6 | -------------------------------------------------------------------------------- /generator/metricbeat/.gitignore: -------------------------------------------------------------------------------- 1 | # Directories 2 | .idea 3 | build 4 | 5 | # Files 6 | .DS_Store -------------------------------------------------------------------------------- /libbeat/version/version.go: -------------------------------------------------------------------------------- 1 | package version 2 | 3 | const defaultBeatVersion = "6.0.0-alpha1" 4 | -------------------------------------------------------------------------------- /metricbeat/module/prometheus/_meta/env: -------------------------------------------------------------------------------- 1 | PROMETHEUS_HOST=prometheus 2 | PROMETHEUS_PORT=9090 3 | -------------------------------------------------------------------------------- /vendor/github.com/tsg/gopacket/CHANGELOG: -------------------------------------------------------------------------------- 1 | See https://code.google.com/p/gopacket/wiki/ChangeLog 2 | -------------------------------------------------------------------------------- /dev-tools/packer/platforms/README: -------------------------------------------------------------------------------- 1 | Pseudo-platform to build the dashboards in their own package. 2 | -------------------------------------------------------------------------------- /generator/beat/{beat}/config/config_test.go.tmpl: -------------------------------------------------------------------------------- 1 | // +build !integration 2 | 3 | package config 4 | -------------------------------------------------------------------------------- /metricbeat/module/windows/_meta/docs.asciidoc: -------------------------------------------------------------------------------- 1 | == Windows Module 2 | 3 | This is the Windows module. 4 | -------------------------------------------------------------------------------- /metricbeat/scripts/module/docs.asciidoc: -------------------------------------------------------------------------------- 1 | == {module} Module 2 | 3 | This is the {module} Module. 4 | 5 | -------------------------------------------------------------------------------- /vendor/github.com/klauspost/cpuid/generate.go: -------------------------------------------------------------------------------- 1 | package cpuid 2 | 3 | //go:generate go run private-gen.go 4 | -------------------------------------------------------------------------------- /vendor/gopkg.in/mgo.v2/raceon.go: -------------------------------------------------------------------------------- 1 | // +build race 2 | 3 | package mgo 4 | 5 | const raceDetector = true 6 | -------------------------------------------------------------------------------- /generator/beat/{beat}/.gitignore: -------------------------------------------------------------------------------- 1 | /.idea 2 | /build 3 | 4 | .DS_Store 5 | /{beat} 6 | /{beat}.test 7 | *.pyc 8 | -------------------------------------------------------------------------------- /metricbeat/module/redis/_meta/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM redis:3.2.4-alpine 2 | HEALTHCHECK CMD nc -z localhost 6379 3 | -------------------------------------------------------------------------------- /testing/environments/docker/redis/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM redis:3.2.4-alpine 2 | HEALTHCHECK CMD nc -z localhost 6379 3 | -------------------------------------------------------------------------------- /vendor/gopkg.in/mgo.v2/raceoff.go: -------------------------------------------------------------------------------- 1 | // +build !race 2 | 3 | package mgo 4 | 5 | const raceDetector = false 6 | -------------------------------------------------------------------------------- /generator/beat/{beat}/docs/index.asciidoc: -------------------------------------------------------------------------------- 1 | = {Beat} Docs 2 | 3 | Welcome to the {Beat} documentation. 4 | 5 | 6 | -------------------------------------------------------------------------------- /metricbeat/module/mysql/_meta/env: -------------------------------------------------------------------------------- 1 | MYSQL_DSN=root:test@tcp(mysql:3306)/ 2 | MYSQL_HOST=mysql 3 | MYSQL_PORT=3306 4 | -------------------------------------------------------------------------------- /metricbeat/module/zookeeper/_meta/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM jplock/zookeeper:3.4.8 2 | HEALTHCHECK CMD nc -z localhost 2181 3 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/http/doc.go: -------------------------------------------------------------------------------- 1 | // Package http DEPRECATED USE net/http/httptest 2 | package http 3 | -------------------------------------------------------------------------------- /vendor/gopkg.in/mgo.v2/Makefile: -------------------------------------------------------------------------------- 1 | startdb: 2 | @harness/setup.sh start 3 | 4 | stopdb: 5 | @harness/setup.sh stop 6 | -------------------------------------------------------------------------------- /dev-tools/packer/archs/386.yml: -------------------------------------------------------------------------------- 1 | arch: '386' 2 | deb_arch: i386 3 | rpm_arch: i686 4 | bin_arch: x86 5 | win_arch: x86 6 | -------------------------------------------------------------------------------- /filebeat/tests/open-file-handlers/run.sh: -------------------------------------------------------------------------------- 1 | /etc/init.d/metricbeat start 2 | cd /filebeat 3 | ./filebeat -httpprof :6060 4 | -------------------------------------------------------------------------------- /libbeat/outputs/mode/modetest/signal.go: -------------------------------------------------------------------------------- 1 | package modetest 2 | 3 | func Signals(s ...bool) []bool { 4 | return s 5 | } 6 | -------------------------------------------------------------------------------- /metricbeat/module/kafka/_meta/docs.asciidoc: -------------------------------------------------------------------------------- 1 | == kafka Module 2 | 3 | beta[] 4 | 5 | This is the kafka Module. 6 | 7 | -------------------------------------------------------------------------------- /metricbeat/module/postgresql/_meta/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM postgres:9.5.3 2 | HEALTHCHECK CMD psql -h localhost -U postgres -l 3 | -------------------------------------------------------------------------------- /metricbeat/module/system/cpu/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Package cpu collects CPU metrics from the host OS. 3 | */ 4 | package cpu 5 | -------------------------------------------------------------------------------- /filebeat/docs/images/filebeat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/filebeat/docs/images/filebeat.png -------------------------------------------------------------------------------- /metricbeat/module/ceph/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Package ceph is a Metricbeat module that contains MetricSets. 3 | */ 4 | package ceph 5 | -------------------------------------------------------------------------------- /metricbeat/module/jolokia/_meta/docs.asciidoc: -------------------------------------------------------------------------------- 1 | == Jolokia Module 2 | 3 | beta[] 4 | 5 | This is the Jolokia Module. 6 | 7 | -------------------------------------------------------------------------------- /metricbeat/module/system/core/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Package core collects cpu core metrics from the host OS. 3 | */ 4 | package core 5 | -------------------------------------------------------------------------------- /vendor/github.com/StackExchange/wmi/README.md: -------------------------------------------------------------------------------- 1 | wmi 2 | === 3 | 4 | Package wmi provides a WQL interface for WMI on Windows. 5 | -------------------------------------------------------------------------------- /dev-tools/.beatconfig: -------------------------------------------------------------------------------- 1 | packetbeat-/packetbeat- 2 | filebeat-/filebeat- 3 | winlogonbeat-/winlogonbeat- 4 | logstash-/logstash- 5 | -------------------------------------------------------------------------------- /dev-tools/packer/archs/amd64.yml: -------------------------------------------------------------------------------- 1 | arch: amd64 2 | deb_arch: amd64 3 | rpm_arch: x86_64 4 | bin_arch: x86_64 5 | win_arch: x86_64 6 | -------------------------------------------------------------------------------- /filebeat/docs/images/kibana-mysql.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/filebeat/docs/images/kibana-mysql.png -------------------------------------------------------------------------------- /filebeat/docs/images/kibana-nginx.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/filebeat/docs/images/kibana-nginx.png -------------------------------------------------------------------------------- /libbeat/docs/images/beat_overview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/libbeat/docs/images/beat_overview.png -------------------------------------------------------------------------------- /metricbeat/module/apache/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Package apache is Metricbeat module for the Apache HTTPD server. 3 | */ 4 | package apache 5 | -------------------------------------------------------------------------------- /metricbeat/module/docker/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Package docker is a Metricbeat module that contains MetricSets. 3 | */ 4 | package docker 5 | -------------------------------------------------------------------------------- /metricbeat/module/golang/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Package golang is a Metricbeat module that contains MetricSets. 3 | */ 4 | package golang 5 | -------------------------------------------------------------------------------- /metricbeat/module/nginx/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Package nginx is Metricbeat module for the Nginx reverse proxy. 3 | */ 4 | package nginx 5 | -------------------------------------------------------------------------------- /metricbeat/module/system/load/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Package load collects system load metrics from the host OS. 3 | */ 4 | package load 5 | -------------------------------------------------------------------------------- /metricbeat/module/system/memory/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Package memory collects memory metrics from the host OS. 3 | */ 4 | package memory 5 | -------------------------------------------------------------------------------- /vendor/github.com/elastic/gosigar/sys/windows/doc.go: -------------------------------------------------------------------------------- 1 | // Package windows contains various Windows system call. 2 | package windows 3 | -------------------------------------------------------------------------------- /filebeat/docs/images/go-playground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/filebeat/docs/images/go-playground.png -------------------------------------------------------------------------------- /filebeat/docs/images/kibana-apache2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/filebeat/docs/images/kibana-apache2.png -------------------------------------------------------------------------------- /filebeat/docs/images/kibana-system.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/filebeat/docs/images/kibana-system.png -------------------------------------------------------------------------------- /heartbeat/.gitignore: -------------------------------------------------------------------------------- 1 | /_meta/heartbeat.dev.yml 2 | .vagrant 3 | /docs/html_docs 4 | 5 | heartbeat 6 | 7 | build 8 | /tests/load/logs 9 | -------------------------------------------------------------------------------- /libbeat/docs/images/beats-platform.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/libbeat/docs/images/beats-platform.png -------------------------------------------------------------------------------- /metricbeat/module/docker/vendor/github.com/docker/docker/pkg/graphdb/unsupported.go: -------------------------------------------------------------------------------- 1 | // +build !cgo !linux 2 | 3 | package graphdb 4 | -------------------------------------------------------------------------------- /metricbeat/module/haproxy/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Package haproxy is a Metricbeat module that contains MetricSets. 3 | */ 4 | package haproxy 5 | -------------------------------------------------------------------------------- /metricbeat/module/jolokia/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Package jolokia is a Metricbeat module that contains MetricSets. 3 | */ 4 | package jolokia 5 | -------------------------------------------------------------------------------- /metricbeat/module/mongodb/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Package mongodb is a Metricbeat module that contains MetricSets. 3 | */ 4 | package mongodb 5 | -------------------------------------------------------------------------------- /metricbeat/module/php_fpm/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Package php_fpm is a Metricbeat module that contains MetricSets. 3 | */ 4 | package php_fpm 5 | -------------------------------------------------------------------------------- /metricbeat/module/system/network/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Package network provides network IO metrics from the OS. 3 | */ 4 | package network 5 | -------------------------------------------------------------------------------- /metricbeat/module/windows/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Package windows is a Metricbeat module that contains MetricSets. 3 | */ 4 | package windows 5 | -------------------------------------------------------------------------------- /filebeat/docs/images/filebeat-overview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/filebeat/docs/images/filebeat-overview.png -------------------------------------------------------------------------------- /filebeat/tests/files/logs/nasa-50k.log.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/filebeat/tests/files/logs/nasa-50k.log.gz -------------------------------------------------------------------------------- /libbeat/docs/version.asciidoc: -------------------------------------------------------------------------------- 1 | :stack-version: 6.0.0-alpha1 2 | :doc-branch: master 3 | :go-version: 1.7.4 4 | :release-state: unreleased 5 | -------------------------------------------------------------------------------- /libbeat/plugin/cli_stub.go: -------------------------------------------------------------------------------- 1 | //+build !linux !go1.8 !cgo 2 | 3 | package plugin 4 | 5 | func Initialize() error { 6 | return nil 7 | } 8 | -------------------------------------------------------------------------------- /metricbeat/docs/images/module-overview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/metricbeat/docs/images/module-overview.png -------------------------------------------------------------------------------- /metricbeat/module/couchbase/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Package couchbase is a Metricbeat module that contains MetricSets. 3 | */ 4 | package couchbase 5 | -------------------------------------------------------------------------------- /metricbeat/module/docker/cpu/_meta/docs.asciidoc: -------------------------------------------------------------------------------- 1 | === Docker CPU Metricset 2 | 3 | The Docker `cpu` metricset collects runtime CPU metrics. 4 | -------------------------------------------------------------------------------- /metricbeat/module/docker/image/_meta/docs.asciidoc: -------------------------------------------------------------------------------- 1 | === docker image MetricSet 2 | 3 | This is the image metricset of the module docker. 4 | -------------------------------------------------------------------------------- /metricbeat/module/docker/memory/_meta/docs.asciidoc: -------------------------------------------------------------------------------- 1 | === Docker Memory Metricset 2 | 3 | The Docker `memory` metricset collects memory metrics. -------------------------------------------------------------------------------- /metricbeat/module/memcached/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Package memcached is a Metricbeat module that contains MetricSets. 3 | */ 4 | package memcached 5 | -------------------------------------------------------------------------------- /metricbeat/module/php_fpm/pool/_meta/docs.asciidoc: -------------------------------------------------------------------------------- 1 | === php_fpm pool MetricSet 2 | 3 | This is the pool metricset of the module php_fpm. 4 | -------------------------------------------------------------------------------- /metricbeat/scripts/module/doc.go.tmpl: -------------------------------------------------------------------------------- 1 | /* 2 | Package {module} is a Metricbeat module that contains MetricSets. 3 | */ 4 | package {module} 5 | -------------------------------------------------------------------------------- /packetbeat/docs/images/kibana-discover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/docs/images/kibana-discover.png -------------------------------------------------------------------------------- /packetbeat/docs/images/kibana-filters.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/docs/images/kibana-filters.png -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/dns_mx.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/dns_mx.pcap -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/dns_ns.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/dns_ns.pcap -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/dns_txt.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/dns_txt.pcap -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/nfs_v3.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/nfs_v3.pcap -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/nfs_v4.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/nfs_v4.pcap -------------------------------------------------------------------------------- /vendor/github.com/stretchr/objx/README.md: -------------------------------------------------------------------------------- 1 | # objx 2 | 3 | * Jump into the [API Documentation](http://godoc.org/github.com/stretchr/objx) 4 | -------------------------------------------------------------------------------- /dev-tools/packer/.gitignore: -------------------------------------------------------------------------------- 1 | *.swp 2 | *.swo 3 | /build/ 4 | /env/ 5 | 6 | # copied over from xgo-image/ 7 | docker/xgo-image-deb6/base/build.sh 8 | -------------------------------------------------------------------------------- /libbeat/docs/images/kibana-navigation-vis.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/libbeat/docs/images/kibana-navigation-vis.png -------------------------------------------------------------------------------- /metricbeat/module/ceph/pool_disk/_meta/docs.asciidoc: -------------------------------------------------------------------------------- 1 | === ceph pool_disk MetricSet 2 | 3 | This is the pool_disk metricset of the module ceph. 4 | -------------------------------------------------------------------------------- /metricbeat/module/docker/diskio/_meta/docs.asciidoc: -------------------------------------------------------------------------------- 1 | === Docker Diskio Metricset 2 | 3 | The Docker `diskio` metricset collects disk I/O metrics. -------------------------------------------------------------------------------- /metricbeat/module/docker/network/_meta/docs.asciidoc: -------------------------------------------------------------------------------- 1 | === Docker Network Metricset 2 | 3 | The Docker `network` metricset collects network metrics. -------------------------------------------------------------------------------- /metricbeat/module/docker/vendor/github.com/docker/docker/pkg/chrootarchive/init_windows.go: -------------------------------------------------------------------------------- 1 | package chrootarchive 2 | 3 | func init() { 4 | } 5 | -------------------------------------------------------------------------------- /metricbeat/module/mongodb/status/_meta/docs.asciidoc: -------------------------------------------------------------------------------- 1 | === MongoDB Status Metricset 2 | 3 | This is the `status` metricset of the MongoDB module. 4 | -------------------------------------------------------------------------------- /metricbeat/module/postgresql/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Package postgresql is a Metricbeat module that contains MetricSets. 3 | */ 4 | package postgresql 5 | -------------------------------------------------------------------------------- /metricbeat/module/prometheus/_meta/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM prom/prometheus:v1.5.1 2 | HEALTHCHECK CMD nc -w 1 localhost 9090 3 | -------------------------------------------------------------------------------- /filebeat/docs/images/filebeat-discover-tab.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/filebeat/docs/images/filebeat-discover-tab.png -------------------------------------------------------------------------------- /filebeat/docs/images/option_ignore_outgoing.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/filebeat/docs/images/option_ignore_outgoing.png -------------------------------------------------------------------------------- /heartbeat/docs/images/heartbeat-statistics.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/heartbeat/docs/images/heartbeat-statistics.png -------------------------------------------------------------------------------- /heartbeat/docs/images/kibana-navigation-vis.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/heartbeat/docs/images/kibana-navigation-vis.png -------------------------------------------------------------------------------- /libbeat/docs/images/kibana-created-indexes.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/libbeat/docs/images/kibana-created-indexes.png -------------------------------------------------------------------------------- /libbeat/docs/images/option_ignore_outgoing.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/libbeat/docs/images/option_ignore_outgoing.png -------------------------------------------------------------------------------- /metricbeat/module/couchbase/_meta/env: -------------------------------------------------------------------------------- 1 | COUCHBASE_HOST=couchbase 2 | COUCHBASE_PORT=8091 3 | COUCHBASE_DSN=http://Administrator:password@couchbase:8091 4 | -------------------------------------------------------------------------------- /metricbeat/module/docker/vendor/github.com/docker/docker/pkg/archive/README.md: -------------------------------------------------------------------------------- 1 | This code provides helper functions for dealing with archive files. 2 | -------------------------------------------------------------------------------- /metricbeat/module/docker/vendor/github.com/docker/docker/pkg/stringutils/README.md: -------------------------------------------------------------------------------- 1 | This package provides helper functions for dealing with strings 2 | -------------------------------------------------------------------------------- /metricbeat/module/docker/vendor/github.com/docker/docker/pkg/sysinfo/README.md: -------------------------------------------------------------------------------- 1 | SysInfo stores information about which features a kernel supports. 2 | -------------------------------------------------------------------------------- /metricbeat/module/docker/vendor/github.com/opencontainers/runc/libcontainer/cgroups/cgroups_unsupported.go: -------------------------------------------------------------------------------- 1 | // +build !linux 2 | 3 | package cgroups 4 | -------------------------------------------------------------------------------- /metricbeat/module/docker/vendor/github.com/opencontainers/runc/libcontainer/devices/devices_unsupported.go: -------------------------------------------------------------------------------- 1 | // +build windows 2 | 3 | package devices 4 | -------------------------------------------------------------------------------- /metricbeat/module/kafka/kafka.go: -------------------------------------------------------------------------------- 1 | package kafka 2 | 3 | import "github.com/elastic/beats/libbeat/logp" 4 | 5 | var debugf = logp.MakeDebug("kafka") 6 | -------------------------------------------------------------------------------- /metricbeat/module/memcached/stats/_meta/docs.asciidoc: -------------------------------------------------------------------------------- 1 | === memcached stats MetricSet 2 | 3 | This is the stats metricset of the module memcached. 4 | -------------------------------------------------------------------------------- /metricbeat/module/mongodb/dbstats/_meta/docs.asciidoc: -------------------------------------------------------------------------------- 1 | === mongodb dbstats MetricSet 2 | 3 | This is the dbstats metricset of the module mongodb. 4 | -------------------------------------------------------------------------------- /packetbeat/docs/images/filter_from_context.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/docs/images/filter_from_context.png -------------------------------------------------------------------------------- /packetbeat/docs/images/kibana-index-pattern.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/docs/images/kibana-index-pattern.png -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/amqp_publish.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/amqp_publish.pcap -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/dns_tcp_axfr.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/dns_tcp_axfr.pcap -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/http_realip.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/http_realip.pcap -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/ipv6_thrift.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/ipv6_thrift.pcap -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/mongodb_find.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/mongodb_find.pcap -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/pgsql_insert.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/pgsql_insert.pcap -------------------------------------------------------------------------------- /vendor/github.com/elastic/go-lumber/server/v2/doc.go: -------------------------------------------------------------------------------- 1 | // Package v2 implements the lumberjack server supporting protocol version 2. 2 | package v2 3 | -------------------------------------------------------------------------------- /winlogbeat/docs/images/winlogbeat-dashboard.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/winlogbeat/docs/images/winlogbeat-dashboard.png -------------------------------------------------------------------------------- /heartbeat/docs/images/kibana-created-indexes.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/heartbeat/docs/images/kibana-created-indexes.png -------------------------------------------------------------------------------- /libbeat/tests/system/requirements.txt: -------------------------------------------------------------------------------- 1 | pip 2 | nose 3 | jinja2 4 | PyYAML 5 | nose-timer 6 | redis 7 | elasticsearch 8 | requests 9 | autopep8 10 | -------------------------------------------------------------------------------- /metricbeat/docs/images/kibana-created-indexes.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/metricbeat/docs/images/kibana-created-indexes.png -------------------------------------------------------------------------------- /metricbeat/docs/images/kibana-navigation-vis.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/metricbeat/docs/images/kibana-navigation-vis.png -------------------------------------------------------------------------------- /metricbeat/docs/images/option_ignore_outgoing.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/metricbeat/docs/images/option_ignore_outgoing.png -------------------------------------------------------------------------------- /metricbeat/module/ceph/cluster_disk/_meta/docs.asciidoc: -------------------------------------------------------------------------------- 1 | === ceph cluster_disk MetricSet 2 | 3 | This is the cluster_disk metricset of the module ceph. 4 | -------------------------------------------------------------------------------- /metricbeat/module/docker/vendor/github.com/docker/docker/pkg/stringid/README.md: -------------------------------------------------------------------------------- 1 | This package provides helper functions for dealing with string identifiers 2 | -------------------------------------------------------------------------------- /metricbeat/module/mongodb/_meta/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM mongo:3.4 2 | RUN apt-get update && apt-get install -y netcat 3 | HEALTHCHECK CMD nc -z localhost 27017 4 | -------------------------------------------------------------------------------- /metricbeat/scripts/module/metricset/docs.asciidoc: -------------------------------------------------------------------------------- 1 | === {module} {metricset} MetricSet 2 | 3 | This is the {metricset} metricset of the module {module}. 4 | -------------------------------------------------------------------------------- /packetbeat/docs/images/kibana-created-indexes.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/docs/images/kibana-created-indexes.png -------------------------------------------------------------------------------- /packetbeat/docs/images/kibana-navigation-vis.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/docs/images/kibana-navigation-vis.png -------------------------------------------------------------------------------- /packetbeat/docs/images/kibana-query-filtering.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/docs/images/kibana-query-filtering.png -------------------------------------------------------------------------------- /packetbeat/docs/images/option_ignore_outgoing.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/docs/images/option_ignore_outgoing.png -------------------------------------------------------------------------------- /packetbeat/docs/images/packetbeat-statistics.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/docs/images/packetbeat-statistics.png -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/dns_additional.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/dns_additional.pcap -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/dns_google_com.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/dns_google_com.pcap -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/dns_not_found.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/dns_not_found.pcap -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/dns_udp_edns_ds.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/dns_udp_edns_ds.pcap -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/gap_in_stream.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/gap_in_stream.pcap -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/hide_secret_GET.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/hide_secret_GET.pcap -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/http_basicauth.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/http_basicauth.pcap -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/http_minitwit.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/http_minitwit.pcap -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/http_over_vlan.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/http_over_vlan.pcap -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/http_post_json.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/http_post_json.pcap -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/http_url_params.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/http_url_params.pcap -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/icmp/icmp4_ping.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/icmp/icmp4_ping.pcap -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/icmp/icmp6_ping.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/icmp/icmp6_ping.pcap -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/mongo_one_row.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/mongo_one_row.pcap -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/mongodb_inserts.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/mongodb_inserts.pcap -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/mongodb_use_db.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/mongodb_use_db.pcap -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/mysql_with_gap.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/mysql_with_gap.pcap -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/redis_session.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/redis_session.pcap -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/thrift_tutorial.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/thrift_tutorial.pcap -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/wsgi_loopback.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/wsgi_loopback.pcap -------------------------------------------------------------------------------- /vendor/github.com/tsg/gopacket/pcap/test_dns.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/vendor/github.com/tsg/gopacket/pcap/test_dns.pcap -------------------------------------------------------------------------------- /winlogbeat/docs/images/kibana-created-indexes.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/winlogbeat/docs/images/kibana-created-indexes.png -------------------------------------------------------------------------------- /winlogbeat/docs/images/kibana-navigation-vis.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/winlogbeat/docs/images/kibana-navigation-vis.png -------------------------------------------------------------------------------- /winlogbeat/docs/images/option_ignore_outgoing.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/winlogbeat/docs/images/option_ignore_outgoing.png -------------------------------------------------------------------------------- /dev-tools/packer/docker/xgo-image/base/patch.tar.xz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/dev-tools/packer/docker/xgo-image/base/patch.tar.xz -------------------------------------------------------------------------------- /libbeat/dashboards/testdata/testbeat-dashboards.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/libbeat/dashboards/testdata/testbeat-dashboards.zip -------------------------------------------------------------------------------- /metricbeat/module/ceph/cluster_health/_meta/docs.asciidoc: -------------------------------------------------------------------------------- 1 | === ceph cluster_health MetricSet 2 | 3 | This is the cluster_health metricset of the module ceph. 4 | -------------------------------------------------------------------------------- /metricbeat/module/ceph/monitor_health/_meta/docs.asciidoc: -------------------------------------------------------------------------------- 1 | === ceph monitor_health MetricSet 2 | 3 | This is the monitor_health metricset of the module ceph. 4 | -------------------------------------------------------------------------------- /metricbeat/module/kafka/consumergroup/_meta/docs.asciidoc: -------------------------------------------------------------------------------- 1 | === kafka consumergroup MetricSet 2 | 3 | This is the consumergroup metricset of the module kafka. 4 | -------------------------------------------------------------------------------- /metricbeat/module/postgresql/activity/_meta/docs.asciidoc: -------------------------------------------------------------------------------- 1 | === postgresql activity MetricSet 2 | 3 | This is the activity metricset of the module postgresql. 4 | -------------------------------------------------------------------------------- /metricbeat/module/postgresql/bgwriter/_meta/docs.asciidoc: -------------------------------------------------------------------------------- 1 | === postgresql bgwriter MetricSet 2 | 3 | This is the bgwriter metricset of the module postgresql. 4 | -------------------------------------------------------------------------------- /metricbeat/module/postgresql/database/_meta/docs.asciidoc: -------------------------------------------------------------------------------- 1 | === postgresql database MetricSet 2 | 3 | This is the database metricset of the module postgresql. 4 | -------------------------------------------------------------------------------- /metricbeat/module/windows/_meta/config.yml: -------------------------------------------------------------------------------- 1 | #- module: windows 2 | # metricsets: ["perfmon"] 3 | # enabled: true 4 | # period: 10s 5 | # perfmon.counters: 6 | -------------------------------------------------------------------------------- /metricbeat/scripts/module/config.yml: -------------------------------------------------------------------------------- 1 | - module: {module} 2 | metricsets: ["{metricset}"] 3 | enabled: true 4 | period: 10s 5 | hosts: ["localhost"] 6 | 7 | -------------------------------------------------------------------------------- /packetbeat/docs/images/kibana_connection_failed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/docs/images/kibana_connection_failed.png -------------------------------------------------------------------------------- /packetbeat/docs/images/saved-packetbeat-searches.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/docs/images/saved-packetbeat-searches.png -------------------------------------------------------------------------------- /packetbeat/protos/cassandra/README.md: -------------------------------------------------------------------------------- 1 | #### Cassandra 2 | 3 | ##Protocol spec 4 | https://github.com/apache/cassandra/blob/trunk/doc/native_protocol_v4.spec 5 | -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/amqp_emit_receive.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/amqp_emit_receive.pcap -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/hide_secret_POST.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/hide_secret_POST.pcap -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/http_get_2k_file.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/http_get_2k_file.pcap -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/icmp/icmp_2_pings.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/icmp/icmp_2_pings.pcap -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/mongo_3.0_session.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/mongo_3.0_session.pcap -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/mongodb_more_rows.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/mongodb_more_rows.pcap -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/mysql_long_result.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/mysql_long_result.pcap -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/pgsql_long_result.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/pgsql_long_result.pcap -------------------------------------------------------------------------------- /testing/environments/docker/kafka/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM spotify/kafka 2 | RUN apt-get update && apt-get install -y netcat 3 | HEALTHCHECK CMD nc -z localhost 9092 4 | -------------------------------------------------------------------------------- /filebeat/tests/files/config2.yml: -------------------------------------------------------------------------------- 1 | filebeat: 2 | prospectors: 3 | - 4 | paths: 5 | - /var/log/*.log 6 | input: log 7 | 8 | spool_size: 9 | -------------------------------------------------------------------------------- /filebeat/tests/files/logs/json_int.log: -------------------------------------------------------------------------------- 1 | {"http_user_agent": "ELB-HealthChecker/1.0", "status": 200} 2 | {"http_user_agent": "ELB-HealthChecker/1.0", "status": 404} 3 | -------------------------------------------------------------------------------- /metricbeat/.gitignore: -------------------------------------------------------------------------------- 1 | build 2 | _meta/kibana 3 | _meta/beat.yml 4 | _meta/beat.full.yml 5 | 6 | /metricbeat 7 | /metricbeat.test 8 | /docs/html_docs 9 | 10 | -------------------------------------------------------------------------------- /metricbeat/docs/images/apache_httpd_server_status.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/metricbeat/docs/images/apache_httpd_server_status.png -------------------------------------------------------------------------------- /metricbeat/docs/images/metricbeat_system_dashboard.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/metricbeat/docs/images/metricbeat_system_dashboard.png -------------------------------------------------------------------------------- /metricbeat/module/system/system_other.go: -------------------------------------------------------------------------------- 1 | // +build !linux,!windows 2 | 3 | package system 4 | 5 | func initModule() { 6 | // Stub method for non-linux. 7 | } 8 | -------------------------------------------------------------------------------- /metricbeat/module/zookeeper/mntr/_meta/docs.asciidoc: -------------------------------------------------------------------------------- 1 | === ZooKeeper mntr Metricset 2 | 3 | The ZooKeeper `mntr` metricset collects ZooKeeper monitoring statistics. 4 | -------------------------------------------------------------------------------- /packetbeat/docs/images/discovery-packetbeat-flows.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/docs/images/discovery-packetbeat-flows.png -------------------------------------------------------------------------------- /packetbeat/docs/images/kibana-refresh-index-fields.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/docs/images/kibana-refresh-index-fields.png -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/amqp_channel_error.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/amqp_channel_error.pcap -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/http_x_forwarded_for.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/http_x_forwarded_for.pcap -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/mysql_affected_rows.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/mysql_affected_rows.pcap -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/pgsql_extended_query.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/pgsql_extended_query.pcap -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/pgsql_insert_error.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/pgsql_insert_error.pcap -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/thrift_echo_binary.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/thrift_echo_binary.pcap -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/thrift_integration.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/thrift_integration.pcap -------------------------------------------------------------------------------- /vendor/github.com/rcrowley/go-metrics/runtime_no_cgo.go: -------------------------------------------------------------------------------- 1 | // +build !cgo appengine 2 | 3 | package metrics 4 | 5 | func numCgoCall() int64 { 6 | return 0 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/tsg/gopacket/pcap/test_ethernet.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/vendor/github.com/tsg/gopacket/pcap/test_ethernet.pcap -------------------------------------------------------------------------------- /vendor/github.com/tsg/gopacket/pcap/test_loopback.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/vendor/github.com/tsg/gopacket/pcap/test_loopback.pcap -------------------------------------------------------------------------------- /dev-tools/packer/docker/xgo-image/beats-builder/wpcap.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/dev-tools/packer/docker/xgo-image/beats-builder/wpcap.dll -------------------------------------------------------------------------------- /filebeat/module/apache2/error/config/error.yml: -------------------------------------------------------------------------------- 1 | input_type: log 2 | paths: 3 | {{ range $i, $path := .paths }} 4 | - {{$path}} 5 | {{ end }} 6 | exclude_files: [".gz$"] 7 | -------------------------------------------------------------------------------- /filebeat/module/mysql/error/config/error.yml: -------------------------------------------------------------------------------- 1 | input_type: log 2 | paths: 3 | {{ range $i, $path := .paths }} 4 | - {{$path}} 5 | {{ end }} 6 | exclude_files: [".gz$"] 7 | -------------------------------------------------------------------------------- /generator/metricbeat/Makefile: -------------------------------------------------------------------------------- 1 | BEAT_TYPE=metricbeat 2 | PREPARE_COMMAND=MODULE=elastic METRICSET=test make create-metricset ; 3 | 4 | include ../common/Makefile 5 | 6 | -------------------------------------------------------------------------------- /metricbeat/module/docker/vendor/github.com/docker/docker/pkg/signal/README.md: -------------------------------------------------------------------------------- 1 | This package provides helper functions for dealing with signals across various operating systems -------------------------------------------------------------------------------- /metricbeat/module/memcached/_meta/config.yml: -------------------------------------------------------------------------------- 1 | - module: memcached 2 | metricsets: ["stats"] 3 | enabled: true 4 | period: 10s 5 | hosts: ["localhost:11211"] 6 | 7 | -------------------------------------------------------------------------------- /metricbeat/module/zookeeper/_meta/config.yml: -------------------------------------------------------------------------------- 1 | #- module: zookeeper 2 | #metricsets: ["mntr"] 3 | #enabled: true 4 | #period: 10s 5 | #hosts: ["localhost:2181"] 6 | -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/mysql_with_whitespaces.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/mysql_with_whitespaces.pcap -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/pgsql_request_response.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/pgsql_request_response.pcap -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/redis_one_transaction.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/redis_one_transaction.pcap -------------------------------------------------------------------------------- /dev-tools/packer/docker/xgo-image-deb6/base/sources.list: -------------------------------------------------------------------------------- 1 | deb http://archive.debian.org/debian/ squeeze main contrib 2 | deb http://archive.debian.org/debian/ squeeze-lts main 3 | -------------------------------------------------------------------------------- /filebeat/module/apache2/access/config/access.yml: -------------------------------------------------------------------------------- 1 | input_type: log 2 | paths: 3 | {{ range $i, $path := .paths }} 4 | - {{$path}} 5 | {{ end }} 6 | exclude_files: [".gz$"] 7 | -------------------------------------------------------------------------------- /filebeat/module/nginx/access/config/nginx-access.yml: -------------------------------------------------------------------------------- 1 | input_type: log 2 | paths: 3 | {{ range $i, $path := .paths }} 4 | - {{$path}} 5 | {{ end }} 6 | exclude_files: [".gz$"] 7 | -------------------------------------------------------------------------------- /filebeat/module/nginx/error/config/nginx-error.yml: -------------------------------------------------------------------------------- 1 | input_type: log 2 | paths: 3 | {{ range $i, $path := .paths }} 4 | - {{$path}} 5 | {{ end }} 6 | exclude_files: [".gz$"] 7 | -------------------------------------------------------------------------------- /filebeat/scripts/module/fileset/config/config.yml: -------------------------------------------------------------------------------- 1 | input_type: log 2 | paths: 3 | {{ range $i, $path := .paths }} 4 | - {{$path}} 5 | {{ end }} 6 | exclude_files: [".gz$"] 7 | -------------------------------------------------------------------------------- /metricbeat/module/haproxy/_meta/config.yml: -------------------------------------------------------------------------------- 1 | - module: haproxy 2 | metricsets: ["info", "stat"] 3 | enabled: true 4 | period: 10s 5 | hosts: ["tcp://127.0.0.1:14567"] 6 | -------------------------------------------------------------------------------- /metricbeat/module/haproxy/info/_meta/docs.asciidoc: -------------------------------------------------------------------------------- 1 | === HAProxy Info Metricset 2 | 3 | The HAProxy `info` metricset collects general information about HAProxy processes. 4 | -------------------------------------------------------------------------------- /metricbeat/module/memcached/_meta/docs.asciidoc: -------------------------------------------------------------------------------- 1 | == memcached Module 2 | 3 | This is the memcached Module. These metricsets were tested with memcached version 1.4.35. 4 | 5 | -------------------------------------------------------------------------------- /metricbeat/module/redis/redis_integration_test.go: -------------------------------------------------------------------------------- 1 | // +build integration 2 | 3 | package redis 4 | 5 | import ( 6 | _ "github.com/elastic/beats/metricbeat/mb/testing" 7 | ) 8 | -------------------------------------------------------------------------------- /packetbeat/docs/images/discovery-packetbeat-transactions.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/docs/images/discovery-packetbeat-transactions.png -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/http_10_connection_close.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/http_10_connection_close.pcap -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/icmp/icmp4_ping_over_vlan.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/icmp/icmp4_ping_over_vlan.pcap -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/icmp/icmp6_ping_over_vlan.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/icmp/icmp6_ping_over_vlan.pcap -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/mongodb_create_collection.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/mongodb_create_collection.pcap -------------------------------------------------------------------------------- /vendor/github.com/elastic/procfs/Makefile: -------------------------------------------------------------------------------- 1 | ci: 2 | ! gofmt -l *.go | read nothing 3 | go vet 4 | go test -v ./... 5 | go get github.com/golang/lint/golint 6 | golint *.go 7 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/vendor/github.com/stretchr/objx/README.md: -------------------------------------------------------------------------------- 1 | # objx 2 | 3 | * Jump into the [API Documentation](http://godoc.org/github.com/stretchr/objx) 4 | -------------------------------------------------------------------------------- /metricbeat/module/redis/_meta/config.yml: -------------------------------------------------------------------------------- 1 | - module: redis 2 | metricsets: ["info"] 3 | enabled: true 4 | period: 10s 5 | 6 | # Redis hosts 7 | hosts: ["127.0.0.1:6379"] 8 | -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/mongodb_reply_request_reply.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/mongodb_reply_request_reply.pcap -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/mysql_int_string_operations.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/mysql_int_string_operations.pcap -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | CHANGELOG.md merge=union 2 | CHANGELOG.asciidoc merge=union 3 | 4 | # Keep these file types as CRLF (Windows). 5 | *.bat text eol=crlf 6 | *.cmd text eol=crlf 7 | -------------------------------------------------------------------------------- /filebeat/harvester/source/file.go: -------------------------------------------------------------------------------- 1 | package source 2 | 3 | import "os" 4 | 5 | type File struct { 6 | *os.File 7 | } 8 | 9 | func (File) Continuable() bool { return true } 10 | -------------------------------------------------------------------------------- /filebeat/tests/open-file-handlers/Dockerfile-log: -------------------------------------------------------------------------------- 1 | FROM python:2.7 2 | 3 | COPY log_file.py /log_file.py 4 | 5 | # Starts logging on startup 6 | ENTRYPOINT ["python", "/log_file.py"] 7 | -------------------------------------------------------------------------------- /generator/beat/{beat}/NOTICE: -------------------------------------------------------------------------------- 1 | {beat} 2 | Copyright 2017 {full_name} 3 | 4 | This product includes software developed by The Apache Software 5 | Foundation (http://www.apache.org/). 6 | -------------------------------------------------------------------------------- /heartbeat/docs/heartbeat-filtering.asciidoc: -------------------------------------------------------------------------------- 1 | [[filtering-and-enhancing-data]] 2 | == Filtering and Enhancing the Exported Data 3 | 4 | include::../../libbeat/docs/processors.asciidoc[] 5 | -------------------------------------------------------------------------------- /metricbeat/module/docker/vendor/github.com/docker/docker/pkg/useragent/README.md: -------------------------------------------------------------------------------- 1 | This package provides helper functions to pack version information into a single User-Agent header. 2 | -------------------------------------------------------------------------------- /metricbeat/module/haproxy/_meta/config.full.yml: -------------------------------------------------------------------------------- 1 | #- module: haproxy 2 | #metricsets: ["info", "stat"] 3 | #enabled: true 4 | #period: 10s 5 | #hosts: ["tcp://127.0.0.1:14567"] 6 | -------------------------------------------------------------------------------- /metricbeat/module/prometheus/stats/_meta/docs.asciidoc: -------------------------------------------------------------------------------- 1 | === Prometheus Stats Metricset 2 | 3 | The Prometheus `stats` metricset collects statistics about the Prometheus 4 | server. 5 | -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/cassandra/v4/cassandra_insert.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/cassandra/v4/cassandra_insert.pcap -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/cassandra/v4/cassandra_select.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/cassandra/v4/cassandra_select.pcap -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/mongodb_insert_duplicate_key.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/mongodb_insert_duplicate_key.pcap -------------------------------------------------------------------------------- /vendor/gopkg.in/mgo.v2/README.md: -------------------------------------------------------------------------------- 1 | The MongoDB driver for Go 2 | ------------------------- 3 | 4 | Please go to [http://labix.org/mgo](http://labix.org/mgo) for all project details. 5 | -------------------------------------------------------------------------------- /generator/metricbeat/{beat}/NOTICE: -------------------------------------------------------------------------------- 1 | {beat} 2 | Copyright 2017 {full_name} 3 | 4 | This product includes software developed by The Apache Software 5 | Foundation (http://www.apache.org/). 6 | -------------------------------------------------------------------------------- /metricbeat/module/apache/_meta/config.yml: -------------------------------------------------------------------------------- 1 | - module: apache 2 | metricsets: ["status"] 3 | enabled: true 4 | period: 10s 5 | 6 | # Apache hosts 7 | hosts: ["http://127.0.0.1"] 8 | -------------------------------------------------------------------------------- /metricbeat/module/couchbase/_meta/config.yml: -------------------------------------------------------------------------------- 1 | #- module: couchbase 2 | #metricsets: ["cluster", "node", "bucket"] 3 | #enabled: true 4 | #period: 10s 5 | #hosts: ["localhost:8091"] 6 | -------------------------------------------------------------------------------- /metricbeat/module/couchbase/_meta/docs.asciidoc: -------------------------------------------------------------------------------- 1 | == Couchbase Module 2 | 3 | beta[] 4 | 5 | This module periodically fetches metrics from https://www.couchbase.com/[Couchbase] 6 | servers. 7 | -------------------------------------------------------------------------------- /metricbeat/module/docker/vendor/github.com/opencontainers/runc/libcontainer/configs/namespaces.go: -------------------------------------------------------------------------------- 1 | package configs 2 | 3 | type NamespaceType string 4 | 5 | type Namespaces []Namespace 6 | -------------------------------------------------------------------------------- /metricbeat/module/mysql/_meta/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM mysql:5.7.12 2 | RUN apt-get update && apt-get install -y netcat 3 | HEALTHCHECK CMD nc -z localhost 3306 4 | 5 | ENV MYSQL_ROOT_PASSWORD test 6 | -------------------------------------------------------------------------------- /metricbeat/module/nginx/_meta/config.yml: -------------------------------------------------------------------------------- 1 | - module: nginx 2 | metricsets: ["stubstatus"] 3 | enabled: true 4 | period: 10s 5 | 6 | # Nginx hosts 7 | hosts: ["http://127.0.0.1"] 8 | -------------------------------------------------------------------------------- /metricbeat/module/postgresql/_meta/env: -------------------------------------------------------------------------------- 1 | POSTGRESQL_DSN=postgres://postgresql:5432?sslmode=disable 2 | POSTGRESQL_HOST=postgresql 3 | POSTGRESQL_PORT=5432 4 | POSTGRESQL_USERNAME=postgres 5 | -------------------------------------------------------------------------------- /metricbeat/module/prometheus/_meta/docs.asciidoc: -------------------------------------------------------------------------------- 1 | == Prometheus Module 2 | 3 | beta[] 4 | 5 | This module periodically fetches metrics from 6 | https://prometheus.io/docs/[Prometheus]. 7 | -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/cassandra/v4/cassandra_trace_err.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/cassandra/v4/cassandra_trace_err.pcap -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/memcache/memcache_bin_tcp_delete.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/memcache/memcache_bin_tcp_delete.pcap -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/memcache/memcache_bin_tcp_stats.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/memcache/memcache_bin_tcp_stats.pcap -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/memcache/memcache_bin_udp_delete.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/memcache/memcache_bin_udp_delete.pcap -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/memcache/memcache_text_tcp_stats.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/memcache/memcache_text_tcp_stats.pcap -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/mysql_err_database_not_selected.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/mysql_err_database_not_selected.pcap -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/thrift_tutorial_framed_transport.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/thrift_tutorial_framed_transport.pcap -------------------------------------------------------------------------------- /metricbeat/module/golang/heap/_meta/docs.asciidoc: -------------------------------------------------------------------------------- 1 | === golang heap MetricSet 2 | 3 | This is the heap metricset of the module golang. 4 | It will collect the memstats information from the expvar api. -------------------------------------------------------------------------------- /metricbeat/module/php_fpm/_meta/config.yml: -------------------------------------------------------------------------------- 1 | #- module: php_fpm 2 | #metricsets: ["pool"] 3 | #enabled: true 4 | #period: 10s 5 | #status_path: "/status" 6 | #hosts: ["localhost:8080"] 7 | -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/cassandra/v4/cassandra_compressed.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/cassandra/v4/cassandra_compressed.pcap -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/cassandra/v4/cassandra_create_index.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/cassandra/v4/cassandra_create_index.pcap -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/cassandra/v4/cassandra_create_table.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/cassandra/v4/cassandra_create_table.pcap -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/cassandra/v4/cassandra_mixed_frame.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/cassandra/v4/cassandra_mixed_frame.pcap -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/memcache/memcache_text_tcp_delete.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/memcache/memcache_text_tcp_delete.pcap -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/memcache/memcache_text_udp_delete.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/memcache/memcache_text_udp_delete.pcap -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/error_func.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package ole 4 | 5 | // errstr converts error code to string. 6 | func errstr(errno int) string { 7 | return "" 8 | } 9 | -------------------------------------------------------------------------------- /dev-tools/vendor/golang.org/x/crypto/README: -------------------------------------------------------------------------------- 1 | This repository holds supplementary Go cryptography libraries. 2 | 3 | To submit changes to this repository, see http://golang.org/doc/contribute.html. 4 | -------------------------------------------------------------------------------- /metricbeat/module/docker/vendor/github.com/Microsoft/go-winio/backuptar/noop.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | // This file only exists to allow go get on non-Windows platforms. 3 | 4 | package backuptar 5 | -------------------------------------------------------------------------------- /metricbeat/module/nginx/_meta/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM nginx:1.9 2 | RUN apt-get update && apt-get install -y curl 3 | HEALTHCHECK CMD curl -f http://localhost/server-status 4 | COPY ./nginx.conf /etc/nginx/ 5 | -------------------------------------------------------------------------------- /metricbeat/module/system/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Package system is a Metricbeat module that contains MetricSets that collect 3 | system level information like CPU and memory stats. 4 | */ 5 | package system 6 | -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/memcache/memcache_bin_tcp_counter_ops.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/memcache/memcache_bin_tcp_counter_ops.pcap -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/memcache/memcache_bin_udp_counter_ops.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/memcache/memcache_bin_udp_counter_ops.pcap -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/memcache/memcache_bin_udp_multi_store.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/memcache/memcache_bin_udp_multi_store.pcap -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/itypeinfo_func.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package ole 4 | 5 | func (v *ITypeInfo) GetTypeAttr() (*TYPEATTR, error) { 6 | return nil, NewError(E_NOTIMPL) 7 | } 8 | -------------------------------------------------------------------------------- /libbeat/logp/syslog_other.go: -------------------------------------------------------------------------------- 1 | // +build windows nacl plan9 2 | 3 | package logp 4 | 5 | import "log" 6 | 7 | func openSyslog(level Priority, prefix string) *log.Logger { 8 | return nil 9 | } 10 | -------------------------------------------------------------------------------- /metricbeat/module/docker/container/_meta/docs.asciidoc: -------------------------------------------------------------------------------- 1 | === Docker Container Metricset 2 | 3 | The Docker `container` metricset collects information and statistics about 4 | running Docker containers. 5 | -------------------------------------------------------------------------------- /metricbeat/module/docker/vendor/github.com/opencontainers/runc/libcontainer/configs/cgroup_unsupported.go: -------------------------------------------------------------------------------- 1 | // +build !windows,!linux,!freebsd 2 | 3 | package configs 4 | 5 | type Cgroup struct { 6 | } 7 | -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/cassandra/v4/cassandra_create_keyspace.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/cassandra/v4/cassandra_create_keyspace.pcap -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/cassandra/v4/cassandra_select_via_index.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/cassandra/v4/cassandra_select_via_index.pcap -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/memcache/memcache_bin_udp_single_store.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/memcache/memcache_bin_udp_single_store.pcap -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/memcache/memcache_text_tcp_counter_ops.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/memcache/memcache_text_tcp_counter_ops.pcap -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/memcache/memcache_text_udp_counter_ops.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/memcache/memcache_text_udp_counter_ops.pcap -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/memcache/memcache_text_udp_multi_store.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/memcache/memcache_text_udp_multi_store.pcap -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/memcache/memcache_text_udp_single_store.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/memcache/memcache_text_udp_single_store.pcap -------------------------------------------------------------------------------- /testing/environments/docker/sredis/stunnel.conf: -------------------------------------------------------------------------------- 1 | foreground=yes 2 | 3 | cert=/etc/pki/tls/certs/sredis.crt 4 | key=/etc/pki/tls/private/sredis.key 5 | 6 | [redis] 7 | accept=6380 8 | connect=redis:6379 9 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/Godeps/Readme: -------------------------------------------------------------------------------- 1 | This directory tree is generated automatically by godep. 2 | 3 | Please do not edit. 4 | 5 | See https://github.com/tools/godep for more information. 6 | -------------------------------------------------------------------------------- /heartbeat/docs/configuring-logstash.asciidoc: -------------------------------------------------------------------------------- 1 | [[config-heartbeat-logstash]] 2 | == Configuring Heartbeat to Use Logstash 3 | 4 | :allplatforms: 5 | include::../../libbeat/docs/shared-logstash-config.asciidoc[] 6 | -------------------------------------------------------------------------------- /metricbeat/module/docker/healthcheck/_meta/docs.asciidoc: -------------------------------------------------------------------------------- 1 | === Docker healthcheck Metricset 2 | 3 | The Docker `healthcheck` metricset collects information and statistics about 4 | running Docker containers. 5 | -------------------------------------------------------------------------------- /metricbeat/module/memcached/_meta/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM memcached:1.4.35-alpine 2 | 3 | USER root 4 | RUN apk update 5 | RUN apk add netcat-openbsd 6 | USER memcache 7 | 8 | HEALTHCHECK CMD nc -z localhost 11211 9 | -------------------------------------------------------------------------------- /metricbeat/module/system/_meta/testing/README.md: -------------------------------------------------------------------------------- 1 | This directory contains utilities for testing metricbeat system module. 2 | 3 | To execute burn application: 4 | GOMAXPROCS=4 go run burn.go -cpus 4 5 | 6 | 7 | -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/memcache/memcache_bin_tcp_multi_store_load.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/memcache/memcache_bin_tcp_multi_store_load.pcap -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/require/require_forward.go.tmpl: -------------------------------------------------------------------------------- 1 | {{.CommentWithoutT "a"}} 2 | func (a *Assertions) {{.DocInfo.Name}}({{.Params}}) { 3 | {{.DocInfo.Name}}(a.t, {{.ForwardedParams}}) 4 | } 5 | -------------------------------------------------------------------------------- /metricbeat/docs/configuring-logstash.asciidoc: -------------------------------------------------------------------------------- 1 | [[config-metricbeat-logstash]] 2 | == Configuring Metricbeat to Use Logstash 3 | 4 | :allplatforms: 5 | include::../../libbeat/docs/shared-logstash-config.asciidoc[] 6 | -------------------------------------------------------------------------------- /metricbeat/module/apache/_meta/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM httpd:2.4.20 2 | RUN apt-get update && apt-get install -y curl 3 | HEALTHCHECK CMD curl -f http://localhost 4 | COPY ./httpd.conf /usr/local/apache2/conf/httpd.conf 5 | -------------------------------------------------------------------------------- /metricbeat/module/ceph/_meta/config.yml: -------------------------------------------------------------------------------- 1 | #- module: ceph 2 | # metricsets: ["cluster_disk", "cluster_health", "monitor_health", "pool_disk"] 3 | # enabled: true 4 | # period: 10s 5 | # hosts: ["localhost:5000"] 6 | -------------------------------------------------------------------------------- /metricbeat/module/couchbase/_meta/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM couchbase:4.5.1 2 | HEALTHCHECK CMD curl -f http://localhost:8091 3 | 4 | COPY configure-node.sh /opt/couchbase 5 | 6 | CMD ["/opt/couchbase/configure-node.sh"] 7 | -------------------------------------------------------------------------------- /metricbeat/module/docker/vendor/github.com/docker/docker/pkg/mount/mountinfo_windows.go: -------------------------------------------------------------------------------- 1 | package mount 2 | 3 | func parseMountTable() ([]*Info, error) { 4 | // Do NOT return an error! 5 | return nil, nil 6 | } 7 | -------------------------------------------------------------------------------- /metricbeat/module/docker/vendor/github.com/docker/docker/pkg/plugins/pluginrpc-gen/fixtures/otherfixture/spaceship.go: -------------------------------------------------------------------------------- 1 | package otherfixture 2 | 3 | // Spaceship is a fixture for tests 4 | type Spaceship struct{} 5 | -------------------------------------------------------------------------------- /metricbeat/module/golang/_meta/docs.asciidoc: -------------------------------------------------------------------------------- 1 | == golang Module 2 | 3 | This is the golang Module. Metrics are collected submitting HTTP GET requests to golang-expvar-api. 4 | Reference: https://golang.org/pkg/expvar/ -------------------------------------------------------------------------------- /packetbeat/docs/configuring-logstash.asciidoc: -------------------------------------------------------------------------------- 1 | [[config-packetbeat-logstash]] 2 | == Configuring Packetbeat to Use Logstash 3 | 4 | :allplatforms: 5 | include::../../libbeat/docs/shared-logstash-config.asciidoc[] 6 | -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/memcache/memcache_bin_tcp_single_load_store.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/memcache/memcache_bin_tcp_single_load_store.pcap -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/memcache/memcache_text_tcp_multi_store_load.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/memcache/memcache_text_tcp_multi_store_load.pcap -------------------------------------------------------------------------------- /packetbeat/tests/system/pcaps/memcache/memcache_text_tcp_single_load_store.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/beats/master/packetbeat/tests/system/pcaps/memcache/memcache_text_tcp_single_load_store.pcap -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/oleutil/go-get.go: -------------------------------------------------------------------------------- 1 | // This file is here so go get succeeds as without it errors with: 2 | // no buildable Go source files in ... 3 | // 4 | // +build !windows 5 | 6 | package oleutil 7 | -------------------------------------------------------------------------------- /dev-tools/packer/docker/deb-rpm-s3/build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | 4 | # 5 | # Build script for the deb-rpm-s3 docker container. 6 | # 7 | 8 | cd "$(dirname "$0")" 9 | 10 | docker build -t deb-rpm-s3 . 11 | -------------------------------------------------------------------------------- /libbeat/service/service_unix.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package service 4 | 5 | // ProcessWindowsControlEvents is not used on non-windows platforms. 6 | func ProcessWindowsControlEvents(stopCallback func()) { 7 | } 8 | -------------------------------------------------------------------------------- /libbeat/tests/files/config.yml: -------------------------------------------------------------------------------- 1 | output: 2 | elasticsearch: 3 | enabled: true 4 | port: 9200 5 | host: localhost 6 | 7 | env: 8 | test_key: ${TEST_KEY} 9 | default: ${NON_EXISTENT:default} 10 | -------------------------------------------------------------------------------- /metricbeat/module/docker/vendor/github.com/docker/docker/pkg/plugins/discovery_unix.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package plugins 4 | 5 | var specsPaths = []string{"/etc/docker/plugins", "/usr/lib/docker/plugins"} 6 | -------------------------------------------------------------------------------- /packetbeat/tests/system/gen/README.md: -------------------------------------------------------------------------------- 1 | Helper scripts used to generate traces for integration tests. 2 | 3 | Scripts must connect to remote server and run theris scenarios. 4 | Use tcpdump to create pcaps for traces. 5 | -------------------------------------------------------------------------------- /vendor/github.com/miekg/dns/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | Alex A. Skinner 2 | Andrew Tunnell-Jones 3 | Ask Bjørn Hansen 4 | Dave Cheney 5 | Dusty Wilson 6 | Marek Majkowski 7 | Peter van Dijk 8 | Omri Bahumi 9 | Alex Sergeyev 10 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/assert/assertion_forward.go.tmpl: -------------------------------------------------------------------------------- 1 | {{.CommentWithoutT "a"}} 2 | func (a *Assertions) {{.DocInfo.Name}}({{.Params}}) bool { 3 | return {{.DocInfo.Name}}(a.t, {{.ForwardedParams}}) 4 | } 5 | -------------------------------------------------------------------------------- /filebeat/tests/files/logs/multiline-c-log.log: -------------------------------------------------------------------------------- 1 | The following are log messages 2 | This is a C style log\\ 3 | file which is on multiple\\ 4 | lines 5 | In addition it has normal lines 6 | The total should be 4 lines covered 7 | -------------------------------------------------------------------------------- /metricbeat/module/postgresql/vendor/github.com/lib/pq/oid/doc.go: -------------------------------------------------------------------------------- 1 | // Package oid contains OID constants 2 | // as defined by the Postgres server. 3 | package oid 4 | 5 | // Oid is a Postgres Object ID. 6 | type Oid uint32 7 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/iprovideclassinfo_func.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package ole 4 | 5 | func getClassInfo(disp *IProvideClassInfo) (tinfo *ITypeInfo, err error) { 6 | return nil, NewError(E_NOTIMPL) 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/require/require.go.tmpl: -------------------------------------------------------------------------------- 1 | {{.Comment}} 2 | func {{.DocInfo.Name}}(t TestingT, {{.Params}}) { 3 | if !assert.{{.DocInfo.Name}}(t, {{.ForwardedParams}}) { 4 | t.FailNow() 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /dev-tools/vendor/golang.org/x/crypto/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /dev-tools/vendor/golang.org/x/crypto/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /metricbeat/module/docker/_meta/docs.asciidoc: -------------------------------------------------------------------------------- 1 | == Docker Module 2 | 3 | beta[] 4 | 5 | This module fetches metrics from https://www.docker.com/[Docker] containers. 6 | 7 | The docker module is currently not tested on Windows. 8 | -------------------------------------------------------------------------------- /metricbeat/module/haproxy/_meta/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM haproxy:1.6 2 | RUN apt-get update && apt-get install -y netcat 3 | HEALTHCHECK CMD nc -z localhost 14567 4 | COPY ./haproxy.conf /usr/local/etc/haproxy/haproxy.cfg 5 | EXPOSE 14567 6 | -------------------------------------------------------------------------------- /metricbeat/module/prometheus/_meta/config.yml: -------------------------------------------------------------------------------- 1 | #- module: prometheus 2 | #metricsets: ["stats"] 3 | #enabled: true 4 | #period: 10s 5 | #hosts: ["localhost:9090"] 6 | #metrics_path: /metrics 7 | #namespace: example 8 | -------------------------------------------------------------------------------- /vendor/github.com/rcrowley/go-metrics/runtime_cgo.go: -------------------------------------------------------------------------------- 1 | // +build cgo 2 | // +build !appengine 3 | 4 | package metrics 5 | 6 | import "runtime" 7 | 8 | func numCgoCall() int64 { 9 | return runtime.NumCgoCall() 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/rcrowley/go-metrics/runtime_no_gccpufraction.go: -------------------------------------------------------------------------------- 1 | // +build !go1.5 2 | 3 | package metrics 4 | 5 | import "runtime" 6 | 7 | func gcCPUFraction(memStats *runtime.MemStats) float64 { 8 | return 0 9 | } 10 | -------------------------------------------------------------------------------- /filebeat/.gitignore: -------------------------------------------------------------------------------- 1 | /_meta/filebeat.dev.yml 2 | .vagrant 3 | /docs/html_docs 4 | 5 | filebeat 6 | 7 | build 8 | _meta/kibana 9 | _meta/module.generated 10 | _meta/beat.yml 11 | _meta/beat.full.yml 12 | /tests/load/logs 13 | -------------------------------------------------------------------------------- /filebeat/module/system/auth/config/auth.yml: -------------------------------------------------------------------------------- 1 | input_type: log 2 | paths: 3 | {{ range $i, $path := .paths }} 4 | - {{$path}} 5 | {{ end }} 6 | exclude_files: [".gz$"] 7 | multiline: 8 | pattern: "^\\s" 9 | match: after 10 | -------------------------------------------------------------------------------- /filebeat/scripts/module/fields.yml: -------------------------------------------------------------------------------- 1 | - key: {module} 2 | title: "{module}" 3 | description: > 4 | {module} Module 5 | fields: 6 | - name: {module} 7 | type: group 8 | description: > 9 | fields: 10 | -------------------------------------------------------------------------------- /metricbeat/module/couchbase/bucket/_meta/docs.asciidoc: -------------------------------------------------------------------------------- 1 | === Couchbase Bucket Metricset 2 | 3 | The Couchbase `bucket` metricset collects data from the Couchbase Buckets Rest API 4 | `http://couchbasehost:8091/pools/default/buckets`. 5 | -------------------------------------------------------------------------------- /metricbeat/module/docker/vendor/github.com/docker/docker/pkg/archive/archive_other.go: -------------------------------------------------------------------------------- 1 | // +build !linux 2 | 3 | package archive 4 | 5 | func getWhiteoutConverter(format WhiteoutFormat) tarWhiteoutConverter { 6 | return nil 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/elastic/gosigar/sys/linux/sysconf_nocgo.go: -------------------------------------------------------------------------------- 1 | // +build !cgo !linux 2 | 3 | package linux 4 | 5 | // GetClockTicks returns the number of click ticks in one jiffie. 6 | func GetClockTicks() int { 7 | return 100 8 | } 9 | -------------------------------------------------------------------------------- /.pylintrc: -------------------------------------------------------------------------------- 1 | [MESSAGES CONTROL] 2 | 3 | disable=too-many-lines,too-many-public-methods,too-many-statements 4 | 5 | 6 | [BASIC] 7 | 8 | method-rgx=[a-z_][a-z0-9_]{2,50}$ 9 | 10 | 11 | [FORMAT] 12 | 13 | max-line-length=120 14 | -------------------------------------------------------------------------------- /filebeat/module/system/syslog/config/syslog.yml: -------------------------------------------------------------------------------- 1 | input_type: log 2 | paths: 3 | {{ range $i, $path := .paths }} 4 | - {{$path}} 5 | {{ end }} 6 | exclude_files: [".gz$"] 7 | multiline: 8 | pattern: "^\\s" 9 | match: after 10 | -------------------------------------------------------------------------------- /libbeat/outputs/mode/lb/worker.go: -------------------------------------------------------------------------------- 1 | package lb 2 | 3 | type worker interface { 4 | run() 5 | } 6 | 7 | type WorkerFactory interface { 8 | count() int // return number of workers 9 | mk(ctx context) ([]worker, error) 10 | } 11 | -------------------------------------------------------------------------------- /metricbeat/scripts/module/fields.yml: -------------------------------------------------------------------------------- 1 | - key: {module} 2 | title: "{module}" 3 | description: > 4 | {module} Module 5 | fields: 6 | - name: {module} 7 | type: group 8 | description: > 9 | fields: 10 | -------------------------------------------------------------------------------- /filebeat/scripts/module/fileset/fields.yml: -------------------------------------------------------------------------------- 1 | - name: {fileset} 2 | type: group 3 | description: > 4 | {fileset} 5 | fields: 6 | - name: example 7 | type: keyword 8 | description: > 9 | Example field 10 | -------------------------------------------------------------------------------- /generator/beat/README.md: -------------------------------------------------------------------------------- 1 | # Creating your own Beat 2 | 3 | The Beat generator enables you to create your own Beat in a few steps. Follow the [developer guide](https://www.elastic.co/guide/en/beats/libbeat/current/new-beat.html) on how to do it. 4 | -------------------------------------------------------------------------------- /metricbeat/module/docker/vendor/github.com/Microsoft/go-winio/syscall.go: -------------------------------------------------------------------------------- 1 | package winio 2 | 3 | //go:generate go run $GOROOT/src/syscall/mksyscall_windows.go -output zsyscall_windows.go file.go pipe.go sd.go fileinfo.go privilege.go backup.go 4 | -------------------------------------------------------------------------------- /dev-tools/packer/docker/xgo-image/build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | docker build --rm=true -t tudorg/xgo-base base/ && \ 4 | docker build --rm=true -t tudorg/xgo-1.7.4 go-1.7.4/ && 5 | docker build --rm=true -t tudorg/beats-builder beats-builder 6 | -------------------------------------------------------------------------------- /metricbeat/module/ceph/_meta/docs.asciidoc: -------------------------------------------------------------------------------- 1 | == ceph Module 2 | 3 | beta[] 4 | 5 | This is the ceph Module. Metrics are collected submitting HTTP GET requests to ceph-rest-api. 6 | Reference: http://docs.ceph.com/docs/master/man/8/ceph-rest-api/ 7 | -------------------------------------------------------------------------------- /metricbeat/module/docker/vendor/github.com/docker/docker/pkg/archive/copy_windows.go: -------------------------------------------------------------------------------- 1 | package archive 2 | 3 | import ( 4 | "path/filepath" 5 | ) 6 | 7 | func normalizePath(path string) string { 8 | return filepath.FromSlash(path) 9 | } 10 | -------------------------------------------------------------------------------- /metricbeat/scripts/module/metricset/fields.yml: -------------------------------------------------------------------------------- 1 | - name: {metricset} 2 | type: group 3 | description: > 4 | {metricset} 5 | fields: 6 | - name: example 7 | type: keyword 8 | description: > 9 | Example field 10 | -------------------------------------------------------------------------------- /vendor/github.com/rcrowley/go-metrics/runtime_gccpufraction.go: -------------------------------------------------------------------------------- 1 | // +build go1.5 2 | 3 | package metrics 4 | 5 | import "runtime" 6 | 7 | func gcCPUFraction(memStats *runtime.MemStats) float64 { 8 | return memStats.GCCPUFraction 9 | } 10 | -------------------------------------------------------------------------------- /winlogbeat/sys/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Package sys provides common data structures and utilties functions that are 3 | used by the subpackages for interfacing with the system level APIs to collect 4 | event log records from Windows. 5 | */ 6 | package sys 7 | -------------------------------------------------------------------------------- /filebeat/tests/files/logs/json_timestamp.log: -------------------------------------------------------------------------------- 1 | {"@timestamp":"2016-04-05T18:47:18.444Z"} 2 | {"@timestamp":"invalid"} 3 | {"@timestamp":{"hello": "test"}} 4 | {"@timestamp":"2016-04-05T18:47:18.444+00:00"} 5 | {"@timestamp":"2016-04-05T18:47:18+00:00"} 6 | -------------------------------------------------------------------------------- /generator/beat/{beat}/_meta/fields.yml: -------------------------------------------------------------------------------- 1 | - key: {beat} 2 | title: {beat} 3 | description: 4 | fields: 5 | - name: counter 6 | type: long 7 | required: true 8 | description: > 9 | PLEASE UPDATE DOCUMENTATION 10 | -------------------------------------------------------------------------------- /heartbeat/monitors/active/icmp/util.go: -------------------------------------------------------------------------------- 1 | package icmp 2 | 3 | import "net" 4 | 5 | func isIPv4(ip net.IP) bool { 6 | return len(ip.To4()) == net.IPv4len 7 | } 8 | 9 | func isIPv6(ip net.IP) bool { 10 | return len(ip) == net.IPv6len 11 | } 12 | -------------------------------------------------------------------------------- /libbeat/common/endpoint.go: -------------------------------------------------------------------------------- 1 | package common 2 | 3 | // Endpoint represents an endpoint in the communication. 4 | type Endpoint struct { 5 | IP string 6 | Port uint16 7 | Name string 8 | Cmdline string 9 | Proc string 10 | } 11 | -------------------------------------------------------------------------------- /metricbeat/module/postgresql/vendor/github.com/lib/pq/ssl_renegotiation.go: -------------------------------------------------------------------------------- 1 | // +build !go1.7 2 | 3 | package pq 4 | 5 | import "crypto/tls" 6 | 7 | // Renegotiation is not supported by crypto/tls until Go 1.7. 8 | func sslRenegotiation(*tls.Config) {} 9 | -------------------------------------------------------------------------------- /metricbeat/module/redis/info/_meta/docs.asciidoc: -------------------------------------------------------------------------------- 1 | === Redis Info Metricset 2 | 3 | The Redis `info` metricset collects information and statistics from Redis by running the 4 | http://redis.io/commands/INFO[`INFO`] command and parsing the returned result. 5 | -------------------------------------------------------------------------------- /metricbeat/module/system/load/_meta/docs.asciidoc: -------------------------------------------------------------------------------- 1 | === System Load Metricset 2 | 3 | The System `load` metricset provides load statistics. 4 | 5 | This metricset is available on: 6 | 7 | - Darwin 8 | - FreeBSD 9 | - Linux 10 | - OpenBSD 11 | -------------------------------------------------------------------------------- /winlogbeat/checkpoint/file_unix.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package checkpoint 4 | 5 | import "os" 6 | 7 | func create(path string) (*os.File, error) { 8 | return os.OpenFile(path, os.O_RDWR|os.O_CREATE|os.O_TRUNC|os.O_SYNC, 0600) 9 | } 10 | -------------------------------------------------------------------------------- /filebeat/make.bat: -------------------------------------------------------------------------------- 1 | REM Batch script to build and test on Windows. You can use this in conjunction 2 | REM with the Vagrant machine. 3 | go build 4 | go test ./... 5 | go test -c -cover -covermode=count -coverpkg ./... 6 | cd tests\system 7 | nosetests 8 | -------------------------------------------------------------------------------- /libbeat/common/statuses.go: -------------------------------------------------------------------------------- 1 | package common 2 | 3 | // standardized status values 4 | const ( 5 | OK_STATUS = "OK" 6 | ERROR_STATUS = "Error" 7 | SERVER_ERROR_STATUS = "Server Error" 8 | CLIENT_ERROR_STATUS = "Client Error" 9 | ) 10 | -------------------------------------------------------------------------------- /metricbeat/module/docker/vendor/github.com/Sirupsen/logrus/terminal_appengine.go: -------------------------------------------------------------------------------- 1 | // +build appengine 2 | 3 | package logrus 4 | 5 | // IsTerminal returns true if stderr's file descriptor is a terminal. 6 | func IsTerminal() bool { 7 | return true 8 | } 9 | -------------------------------------------------------------------------------- /metricbeat/module/docker/vendor/github.com/docker/docker/pkg/plugins/discovery_windows.go: -------------------------------------------------------------------------------- 1 | package plugins 2 | 3 | import ( 4 | "os" 5 | "path/filepath" 6 | ) 7 | 8 | var specsPaths = []string{filepath.Join(os.Getenv("programdata"), "docker", "plugins")} 9 | -------------------------------------------------------------------------------- /metricbeat/module/golang/_meta/fields.yml: -------------------------------------------------------------------------------- 1 | - key: golang 2 | title: "golang" 3 | description: > 4 | golang Module 5 | short_config: false 6 | fields: 7 | - name: golang 8 | type: group 9 | description: > 10 | fields: 11 | -------------------------------------------------------------------------------- /metricbeat/module/golang/expvar/_meta/docs.asciidoc: -------------------------------------------------------------------------------- 1 | === golang expvar MetricSet 2 | 3 | This is the expvar metricset of the module golang. 4 | Golang can exposes it's variables by expvar api, with this metricset, user can collect all the expvar exposed variables. -------------------------------------------------------------------------------- /metricbeat/module/golang/expvar/_meta/fields.yml: -------------------------------------------------------------------------------- 1 | - name: expvar 2 | type: group 3 | description: > 4 | expvar 5 | fields: 6 | - name: cmdline 7 | type: keyword 8 | description: > 9 | The cmdline of this golang program start with. -------------------------------------------------------------------------------- /metricbeat/module/system/cpu/_meta/docs.asciidoc: -------------------------------------------------------------------------------- 1 | === System CPU Metricset 2 | 3 | The System `cpu` metricset provides CPU statistics. 4 | 5 | This metricset is available on: 6 | 7 | - Darwin 8 | - FreeBSD 9 | - Linux 10 | - OpenBSD 11 | - Windows 12 | -------------------------------------------------------------------------------- /metricbeat/module/windows/_meta/fields.yml: -------------------------------------------------------------------------------- 1 | - key: windows 2 | title: "Windows" 3 | description: > 4 | []beta 5 | Module for Windows 6 | fields: 7 | - name: windows 8 | type: group 9 | description: > 10 | fields: 11 | -------------------------------------------------------------------------------- /filebeat/module/apache2/_meta/fields.yml: -------------------------------------------------------------------------------- 1 | - key: apache2 2 | title: "Apache2" 3 | description: > 4 | Apache2 Module 5 | fields: 6 | - name: apache2 7 | type: group 8 | description: > 9 | Apache2 fields. 10 | fields: 11 | -------------------------------------------------------------------------------- /libbeat/plugin/load_stub.go: -------------------------------------------------------------------------------- 1 | //+build !linux !go1.8 !cgo 2 | 3 | package plugin 4 | 5 | import "errors" 6 | 7 | var errNotSupported = errors.New("plugins not supported") 8 | 9 | func loadPlugins(path string) error { 10 | return errNotSupported 11 | } 12 | -------------------------------------------------------------------------------- /metricbeat/module/docker/vendor/github.com/docker/docker/opts/hosts_windows.go: -------------------------------------------------------------------------------- 1 | // +build windows 2 | 3 | package opts 4 | 5 | // DefaultHost constant defines the default host string used by docker on Windows 6 | var DefaultHost = "npipe://" + DefaultNamedPipe 7 | -------------------------------------------------------------------------------- /dev-tools/packer/docker/xgo-image-deb6/build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | docker build --rm=true -t tudorg/xgo-deb6-base base/ && \ 4 | docker build --rm=true -t tudorg/xgo-deb6-1.7.4 go-1.7.4/ && 5 | docker build --rm=true -t tudorg/beats-builder-deb6 beats-builder 6 | -------------------------------------------------------------------------------- /filebeat/module/mysql/slowlog/config/slowlog.yml: -------------------------------------------------------------------------------- 1 | input_type: log 2 | paths: 3 | {{ range $i, $path := .paths }} 4 | - {{$path}} 5 | {{ end }} 6 | exclude_files: [".gz$"] 7 | multiline: 8 | pattern: "^# User@Host: " 9 | negate: true 10 | match: after 11 | -------------------------------------------------------------------------------- /libbeat/version/helper.go: -------------------------------------------------------------------------------- 1 | package version 2 | 3 | // GetDefaultVersion returns the current libbeat version. 4 | // This method is in a separate file as the version.go file is auto generated 5 | func GetDefaultVersion() string { 6 | return defaultBeatVersion 7 | } 8 | -------------------------------------------------------------------------------- /metricbeat/module/couchbase/node/_meta/docs.asciidoc: -------------------------------------------------------------------------------- 1 | === Couchbase Node Metricset 2 | 3 | The Couchbase `node` metricset collects data from Couchbase pools Rest API 4 | `http://couchbasehost:8091/pools/default` and creates an event for 5 | each node in the cluster. 6 | -------------------------------------------------------------------------------- /metricbeat/module/docker/vendor/github.com/docker/docker/pkg/fileutils/fileutils_windows.go: -------------------------------------------------------------------------------- 1 | package fileutils 2 | 3 | // GetTotalUsedFds Returns the number of used File Descriptors. Not supported 4 | // on Windows. 5 | func GetTotalUsedFds() int { 6 | return -1 7 | } 8 | -------------------------------------------------------------------------------- /dev-tools/packer/platforms/windows/uninstall-service.ps1.j2: -------------------------------------------------------------------------------- 1 | # delete service if it exists 2 | if (Get-Service {{.beat_name}} -ErrorAction SilentlyContinue) { 3 | $service = Get-WmiObject -Class Win32_Service -Filter "name='{{.beat_name}}'" 4 | $service.delete() 5 | } 6 | -------------------------------------------------------------------------------- /metricbeat/module/ceph/_meta/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ceph/demo:tag-build-master-jewel-centos-7 2 | 3 | ENV MON_IP 0.0.0.0 4 | ENV CEPH_PUBLIC_NETWORK 0.0.0.0/0 5 | 6 | RUN yum install -y nc && yum clean all 7 | HEALTHCHECK CMD nc -w 1 -v 127.0.0.1 5000 > /usr/local/etc/php-fpm.d/www.conf 4 | ADD ./php-fpm.conf /etc/nginx/sites-enabled 5 | 6 | HEALTHCHECK CMD curl -f http://localhost:81 7 | EXPOSE 81 8 | -------------------------------------------------------------------------------- /metricbeat/module/system/memory/_meta/docs.asciidoc: -------------------------------------------------------------------------------- 1 | === System Memory Metricset 2 | 3 | The System `memory` metricset provides memory statistics. 4 | 5 | This metricset is available on: 6 | 7 | - Darwin 8 | - FreeBSD 9 | - Linux 10 | - OpenBSD 11 | - Windows 12 | -------------------------------------------------------------------------------- /metricbeat/module/docker/vendor/github.com/opencontainers/runc/libcontainer/configs/cgroup_windows.go: -------------------------------------------------------------------------------- 1 | package configs 2 | 3 | // TODO Windows: This can ultimately be entirely factored out on Windows as 4 | // cgroups are a Unix-specific construct. 5 | type Cgroup struct { 6 | } 7 | -------------------------------------------------------------------------------- /metricbeat/module/kafka/_meta/fields.yml: -------------------------------------------------------------------------------- 1 | - key: kafka 2 | title: "kafka" 3 | description: > 4 | kafka Module 5 | 6 | beta[] 7 | short_config: false 8 | fields: 9 | - name: kafka 10 | type: group 11 | description: > 12 | fields: 13 | -------------------------------------------------------------------------------- /packetbeat/tests/system/gen/memcache/udp_counter_ops.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | import mc 4 | 5 | 6 | def run(mc): 7 | mc.set('cnt', 0) 8 | mc.incr('cnt', 2) 9 | mc.decr('cnt', 5) 10 | 11 | 12 | if __name__ == '__main__': 13 | mc.run_udp(run) 14 | -------------------------------------------------------------------------------- /packetbeat/tests/system/gen/memcache/udp_delete.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | import mc 4 | 5 | 6 | def run(mc): 7 | print('run') 8 | 9 | mc.set('key', 'abc') 10 | mc.delete('key') 11 | 12 | 13 | if __name__ == '__main__': 14 | mc.run_udp(run) 15 | -------------------------------------------------------------------------------- /testing/environments/docker/sredis/gencerts.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | mkdir -p pki/tls/certs 4 | mkdir -p pki/tls/private 5 | openssl req -subj '/CN=sredis/' -x509 -days $((100 * 365)) -batch -nodes -newkey rsa:2048 -keyout pki/tls/private/sredis.key -out pki/tls/certs/sredis.crt 6 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/variant_386.go: -------------------------------------------------------------------------------- 1 | // +build 386 2 | 3 | package ole 4 | 5 | type VARIANT struct { 6 | VT VT // 2 7 | wReserved1 uint16 // 4 8 | wReserved2 uint16 // 6 9 | wReserved3 uint16 // 8 10 | Val int64 // 16 11 | } 12 | -------------------------------------------------------------------------------- /metricbeat/module/couchbase/testing.go: -------------------------------------------------------------------------------- 1 | package couchbase 2 | 3 | import "os" 4 | 5 | func GetEnvDSN() string { 6 | dsn := os.Getenv("COUCHBASE_DSN") 7 | 8 | if len(dsn) == 0 { 9 | dsn = "http://Administrator:password@localhost:8091" 10 | } 11 | return dsn 12 | } 13 | -------------------------------------------------------------------------------- /metricbeat/module/docker/info/_meta/docs.asciidoc: -------------------------------------------------------------------------------- 1 | === Docker Info Metricset 2 | 3 | The Docker `info` metricset collects system-wide information based on the 4 | https://docs.docker.com/engine/reference/api/docker_remote_api_v1.24/#/display-system-wide-information[Docker Remote API]. -------------------------------------------------------------------------------- /metricbeat/module/system/core/_meta/docs.asciidoc: -------------------------------------------------------------------------------- 1 | === System Core Metricset 2 | 3 | The System `core` metricset provides load statistics for each CPU core. 4 | 5 | This metricset is available on: 6 | 7 | - Darwin 8 | - FreeBSD 9 | - Linux 10 | - OpenBSD 11 | - Windows 12 | -------------------------------------------------------------------------------- /testing/environments/docker/kibana/config/kibana.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # Default Kibana configuration from kibana-docker. 3 | 4 | server.name: kibana 5 | server.host: "0" 6 | elasticsearch.url: http://elasticsearch:9200 7 | elasticsearch.username: elastic 8 | elasticsearch.password: changeme 9 | -------------------------------------------------------------------------------- /testing/environments/docker/logstash/gencerts.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | mkdir -p pki/tls/certs 4 | mkdir -p pki/tls/private 5 | openssl req -subj '/CN=logstash/' -x509 -days $((100 * 365)) -batch -nodes -newkey rsa:2048 -keyout pki/tls/private/logstash.key -out pki/tls/certs/logstash.crt 6 | -------------------------------------------------------------------------------- /testing/environments/docker/sredis/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM alpine:edge 2 | 3 | RUN apk add --no-cache stunnel 4 | 5 | COPY stunnel.conf /etc/stunnel/stunnel.conf 6 | COPY pki /etc/pki 7 | 8 | HEALTHCHECK CMD nc -z localhost 6380 9 | EXPOSE 6380 10 | 11 | CMD ["stunnel"] 12 | 13 | -------------------------------------------------------------------------------- /vendor/gopkg.in/mgo.v2/saslstub.go: -------------------------------------------------------------------------------- 1 | //+build !sasl 2 | 3 | package mgo 4 | 5 | import ( 6 | "fmt" 7 | ) 8 | 9 | func saslNew(cred Credential, host string) (saslStepper, error) { 10 | return nil, fmt.Errorf("SASL support not enabled during build (-tags sasl)") 11 | } 12 | -------------------------------------------------------------------------------- /filebeat/tests/system/config/filebeat_modules.yml.j2: -------------------------------------------------------------------------------- 1 | filebeat.idle_timeout: 0.5s 2 | filebeat.registry_file: {{ beat.working_dir + '/' }}{{ registryFile|default("registry")}} 3 | 4 | output.elasticsearch.hosts: ["{{ elasticsearch_url }}"] 5 | output.elasticsearch.index: {{ index_name }} 6 | -------------------------------------------------------------------------------- /generator/Makefile: -------------------------------------------------------------------------------- 1 | 2 | # Runs test build for the count metricset 3 | .PHONY: test 4 | test: 5 | $(MAKE) -C beat test 6 | $(MAKE) -C metricbeat test 7 | 8 | # Cleans up environment 9 | .PHONY: clean 10 | clean: 11 | $(MAKE) -C beat clean 12 | $(MAKE) -C metricbeat clean 13 | -------------------------------------------------------------------------------- /generator/beat/{beat}/_meta/beat.yml: -------------------------------------------------------------------------------- 1 | ################### {Beat} Configuration Example ######################### 2 | 3 | ############################# {Beat} ###################################### 4 | 5 | {beat}: 6 | # Defines how often an event is sent to the output 7 | period: 1s 8 | -------------------------------------------------------------------------------- /metricbeat/module/docker/vendor/github.com/docker/docker/pkg/sysinfo/numcpu.go: -------------------------------------------------------------------------------- 1 | // +build !linux,!windows 2 | 3 | package sysinfo 4 | 5 | import ( 6 | "runtime" 7 | ) 8 | 9 | // NumCPU returns the number of CPUs 10 | func NumCPU() int { 11 | return runtime.NumCPU() 12 | } 13 | -------------------------------------------------------------------------------- /metricbeat/module/golang/_meta/config.yml: -------------------------------------------------------------------------------- 1 | #- module: golang 2 | # metricsets: ["expvar","heap"] 3 | # enabled: true 4 | # period: 10s 5 | # hosts: ["localhost:6060"] 6 | # heap.path: "/debug/vars" 7 | # expvar: 8 | # namespace: "example" 9 | # path: "/debug/vars" 10 | -------------------------------------------------------------------------------- /metricbeat/module/system/fsstat/_meta/docs.asciidoc: -------------------------------------------------------------------------------- 1 | === System Fsstat Metricset 2 | 3 | The System `fsstats` metricset provides overall file system statistics. 4 | 5 | This metricset is available on: 6 | 7 | - Darwin 8 | - FreeBSD 9 | - Linux 10 | - OpenBSD 11 | - Windows 12 | -------------------------------------------------------------------------------- /metricbeat/module/docker/vendor/github.com/docker/docker/pkg/sysinfo/sysinfo_windows.go: -------------------------------------------------------------------------------- 1 | // +build windows 2 | 3 | package sysinfo 4 | 5 | // New returns an empty SysInfo for windows for now. 6 | func New(quiet bool) *SysInfo { 7 | sysInfo := &SysInfo{} 8 | return sysInfo 9 | } 10 | -------------------------------------------------------------------------------- /metricbeat/module/docker/vendor/github.com/opencontainers/runc/libcontainer/system/unsupported.go: -------------------------------------------------------------------------------- 1 | // +build !linux 2 | 3 | package system 4 | 5 | // RunningInUserNS is a stub for non-Linux systems 6 | // Always returns false 7 | func RunningInUserNS() bool { 8 | return false 9 | } 10 | -------------------------------------------------------------------------------- /metricbeat/module/haproxy/_meta/fields.yml: -------------------------------------------------------------------------------- 1 | - key: haproxy 2 | title: "HAProxy" 3 | description: > 4 | HAProxy Module 5 | short_config: false 6 | fields: 7 | - name: haproxy 8 | type: group 9 | description: > 10 | HAProxy metrics. 11 | fields: 12 | -------------------------------------------------------------------------------- /vendor/github.com/tsg/gopacket/README.mkd: -------------------------------------------------------------------------------- 1 | # GoPacket 2 | 3 | This library provides packet decoding capabilities for Go. 4 | See doc.go for more details. 5 | 6 | Originally forked from the gopcap project written by Andreas 7 | Krennmair (http://github.com/akrennmair/gopcap). 8 | -------------------------------------------------------------------------------- /filebeat/module/mysql/_meta/fields.yml: -------------------------------------------------------------------------------- 1 | - key: mysql 2 | title: "MySQL" 3 | description: > 4 | Module for parsing the MySQL log files. 5 | fields: 6 | - name: mysql 7 | type: group 8 | description: > 9 | Fields from the MySQL log files. 10 | fields: 11 | -------------------------------------------------------------------------------- /filebeat/module/nginx/_meta/config.yml: -------------------------------------------------------------------------------- 1 | #- module: nginx 2 | # Ingest Node pipeline to use. Options are `with_plugins` (default) 3 | # and `no_plugins`. Use `no_plugins` if you don't have the geoip or 4 | # the user agent Node ingest plugins installed. 5 | #access.var.pipeline: with_plugins 6 | -------------------------------------------------------------------------------- /filebeat/module/nginx/_meta/fields.yml: -------------------------------------------------------------------------------- 1 | - key: nginx 2 | title: "Nginx" 3 | description: > 4 | Module for parsing the Nginx log files. 5 | fields: 6 | - name: nginx 7 | type: group 8 | description: > 9 | Fields from the Nginx log files. 10 | fields: 11 | -------------------------------------------------------------------------------- /metricbeat/module/docker/vendor/github.com/Sirupsen/logrus/terminal_bsd.go: -------------------------------------------------------------------------------- 1 | // +build darwin freebsd openbsd netbsd dragonfly 2 | // +build !appengine 3 | 4 | package logrus 5 | 6 | import "syscall" 7 | 8 | const ioctlReadTermios = syscall.TIOCGETA 9 | 10 | type Termios syscall.Termios 11 | -------------------------------------------------------------------------------- /metricbeat/module/docker/vendor/github.com/docker/docker/pkg/namesgenerator/cmd/names-generator/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | 6 | "github.com/docker/docker/pkg/namesgenerator" 7 | ) 8 | 9 | func main() { 10 | fmt.Println(namesgenerator.GetRandomName(0)) 11 | } 12 | -------------------------------------------------------------------------------- /metricbeat/module/memcached/_meta/fields.yml: -------------------------------------------------------------------------------- 1 | - key: memcached 2 | title: "memcached" 3 | description: > 4 | []beta 5 | 6 | memcached Module 7 | short_config: false 8 | fields: 9 | - name: memcached 10 | type: group 11 | description: > 12 | fields: 13 | -------------------------------------------------------------------------------- /filebeat/docs/module-development-guide.asciidoc: -------------------------------------------------------------------------------- 1 | = Filebeat Modules Developer Guide 2 | 3 | This guide describes the process of creating a new Filebeat module. 4 | 5 | == Overview 6 | 7 | A Filebeat module is typically named after the service that creates the logs it 8 | is collecting and parsing. 9 | -------------------------------------------------------------------------------- /filebeat/docs/upgrading.asciidoc: -------------------------------------------------------------------------------- 1 | [[upgrading-filebeat]] 2 | == Upgrading Filebeat 3 | 4 | For information about upgrading to a new version, see the following topics in the _Beats Platform Reference_: 5 | 6 | * {libbeat}/breaking-changes.html[Breaking Changes] 7 | * {libbeat}/upgrading.html[Upgrading] 8 | -------------------------------------------------------------------------------- /filebeat/module/system/_meta/fields.yml: -------------------------------------------------------------------------------- 1 | - key: system 2 | title: "System" 3 | description: > 4 | Module for parsing system log files. 5 | fields: 6 | - name: system 7 | type: group 8 | description: > 9 | Fields from the system log files. 10 | fields: 11 | -------------------------------------------------------------------------------- /generator/beat/{beat}/main.go.tmpl: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "os" 5 | 6 | "github.com/elastic/beats/libbeat/beat" 7 | 8 | "{beat_path}/beater" 9 | ) 10 | 11 | func main() { 12 | err := beat.Run("{beat}", "", beater.New) 13 | if err != nil { 14 | os.Exit(1) 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /libbeat/libbeat.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "os" 5 | 6 | "github.com/elastic/beats/libbeat/beat" 7 | "github.com/elastic/beats/libbeat/mock" 8 | ) 9 | 10 | func main() { 11 | if err := beat.Run(mock.Name, mock.Version, mock.New); err != nil { 12 | os.Exit(1) 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /metricbeat/module/docker/vendor/github.com/docker/docker/pkg/fileutils/fileutils_solaris.go: -------------------------------------------------------------------------------- 1 | package fileutils 2 | 3 | // GetTotalUsedFds Returns the number of used File Descriptors. 4 | // On Solaris these limits are per process and not systemwide 5 | func GetTotalUsedFds() int { 6 | return -1 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/elastic/procfs/NOTICE: -------------------------------------------------------------------------------- 1 | procfs provides functions to retrieve system, kernel and process 2 | metrics from the pseudo-filesystem proc. 3 | 4 | Copyright 2014-2015 The Prometheus Authors 5 | 6 | This product includes software developed at 7 | SoundCloud Ltd. (http://soundcloud.com/). 8 | -------------------------------------------------------------------------------- /metricbeat/docs/command-line.asciidoc: -------------------------------------------------------------------------------- 1 | [[command-line-options]] 2 | === Command Line Options 3 | 4 | The following command line options are available for Metricbeat. To use these 5 | options, you need to start Metricbeat in the foreground. 6 | 7 | include::../../libbeat/docs/shared-command-line.asciidoc[] 8 | -------------------------------------------------------------------------------- /metricbeat/docs/upgrading.asciidoc: -------------------------------------------------------------------------------- 1 | [[upgrading-metricbeat]] 2 | == Upgrading Metricbeat 3 | 4 | For information about upgrading to a new version, see the following topics in the _Beats Platform Reference_: 5 | 6 | * {libbeat}/breaking-changes.html[Breaking Changes] 7 | * {libbeat}/upgrading.html[Upgrading] 8 | -------------------------------------------------------------------------------- /metricbeat/module/docker/vendor/github.com/opencontainers/runc/libcontainer/system/sysconfig.go: -------------------------------------------------------------------------------- 1 | // +build cgo,linux cgo,freebsd 2 | 3 | package system 4 | 5 | /* 6 | #include 7 | */ 8 | import "C" 9 | 10 | func GetClockTicks() int { 11 | return int(C.sysconf(C._SC_CLK_TCK)) 12 | } 13 | -------------------------------------------------------------------------------- /metricbeat/module/nginx/_meta/config.full.yml: -------------------------------------------------------------------------------- 1 | #- module: nginx 2 | #metricsets: ["stubstatus"] 3 | #enabled: true 4 | #period: 10s 5 | 6 | # Nginx hosts 7 | #hosts: ["http://127.0.0.1"] 8 | 9 | # Path to server status. Default server-status 10 | #server_status_path: "server-status" 11 | -------------------------------------------------------------------------------- /packetbeat/docs/upgrading.asciidoc: -------------------------------------------------------------------------------- 1 | [[upgrading-packetbeat]] 2 | == Upgrading Packetbeat 3 | 4 | For information about upgrading to a new version, see the following topics in the _Beats Platform Reference_: 5 | 6 | * {libbeat}/breaking-changes.html[Breaking Changes] 7 | * {libbeat}/upgrading.html[Upgrading] 8 | -------------------------------------------------------------------------------- /packetbeat/tests/system/gen/memcache/tcp_delete.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | import mc 4 | 5 | 6 | def run(mc): 7 | print('run') 8 | 9 | mc.set('key', 'abc') 10 | mc.delete('key') 11 | print(mc.get('key')) 12 | 13 | 14 | if __name__ == '__main__': 15 | mc.run_tcp(run) 16 | -------------------------------------------------------------------------------- /packetbeat/tests/system/gen/memcache/tcp_stats.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | import mc 4 | 5 | 6 | def run(mc): 7 | print('run') 8 | mc.set('key', 'abc') 9 | print(mc.get('key')) 10 | print(mc.get_stats()) 11 | 12 | 13 | if __name__ == '__main__': 14 | mc.run_tcp(run) 15 | -------------------------------------------------------------------------------- /testing/environments/Dockerfile: -------------------------------------------------------------------------------- 1 | # Basic debian file with curl, wget and nano installed to fetch files 2 | # an update config files 3 | FROM debian:latest 4 | MAINTAINER Nicolas Ruflin 5 | 6 | RUN apt-get update && \ 7 | apt-get install -y curl nano wget zip && \ 8 | apt-get clean 9 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/ipv4/thunk_linux_386.s: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build go1.2 6 | 7 | TEXT ·socketcall(SB),4,$0-36 8 | JMP syscall·socketcall(SB) 9 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/ipv6/thunk_linux_386.s: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build go1.2 6 | 7 | TEXT ·socketcall(SB),4,$0-36 8 | JMP syscall·socketcall(SB) 9 | -------------------------------------------------------------------------------- /winlogbeat/docs/upgrading.asciidoc: -------------------------------------------------------------------------------- 1 | [[upgrading-winlogbeat]] 2 | == Upgrading Winlogbeat 3 | 4 | For information about upgrading to a new version, see the following topics in the _Beats Platform Reference_: 5 | 6 | * {libbeat}/breaking-changes.html[Breaking Changes] 7 | * {libbeat}/upgrading.html[Upgrading] 8 | -------------------------------------------------------------------------------- /libbeat/outputs/logstash/common_test.go: -------------------------------------------------------------------------------- 1 | package logstash 2 | 3 | import ( 4 | "testing" 5 | 6 | "github.com/elastic/beats/libbeat/logp" 7 | ) 8 | 9 | func enableLogging(selectors []string) { 10 | if testing.Verbose() { 11 | logp.LogInit(logp.LOG_DEBUG, "", false, true, selectors) 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /metricbeat/module/docker/vendor/github.com/docker/docker/opts/hosts_unix.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package opts 4 | 5 | import "fmt" 6 | 7 | // DefaultHost constant defines the default host string used by docker on other hosts than Windows 8 | var DefaultHost = fmt.Sprintf("unix://%s", DefaultUnixSocket) 9 | -------------------------------------------------------------------------------- /vendor/gopkg.in/mgo.v2/saslimpl.go: -------------------------------------------------------------------------------- 1 | //+build sasl 2 | 3 | package mgo 4 | 5 | import ( 6 | "gopkg.in/mgo.v2/internal/sasl" 7 | ) 8 | 9 | func saslNew(cred Credential, host string) (saslStepper, error) { 10 | return sasl.New(cred.Username, cred.Password, cred.Mechanism, cred.Service, host) 11 | } 12 | -------------------------------------------------------------------------------- /filebeat/scripts/module/fileset/ingest/pipeline.json: -------------------------------------------------------------------------------- 1 | { 2 | "description": "Pipeline for parsing {module} {fileset} logs", 3 | "processors": [ 4 | ], 5 | "on_failure" : [{ 6 | "set" : { 7 | "field" : "error", 8 | "value" : "{{ _ingest.on_failure_message }}" 9 | } 10 | }] 11 | } 12 | -------------------------------------------------------------------------------- /heartbeat/docs/page_header.html: -------------------------------------------------------------------------------- 1 | This functionality is in beta and is subject to change. The design and 2 | code is considered to be less mature than official GA features. Elastic will 3 | take a best effort approach to fix any issues, but beta features are not 4 | subject to the support SLA of official GA features. 5 | -------------------------------------------------------------------------------- /heartbeat/monitors/defaults/default.go: -------------------------------------------------------------------------------- 1 | package defaults 2 | 3 | import ( 4 | // register standard active monitors 5 | _ "github.com/elastic/beats/heartbeat/monitors/active/http" 6 | _ "github.com/elastic/beats/heartbeat/monitors/active/icmp" 7 | _ "github.com/elastic/beats/heartbeat/monitors/active/tcp" 8 | ) 9 | -------------------------------------------------------------------------------- /libbeat/outputs/console/config.go: -------------------------------------------------------------------------------- 1 | package console 2 | 3 | import ( 4 | "github.com/elastic/beats/libbeat/outputs" 5 | ) 6 | 7 | type Config struct { 8 | Codec outputs.CodecConfig `config:"codec"` 9 | 10 | // old pretty settings to use if no codec is configured 11 | Pretty bool `config:"pretty"` 12 | } 13 | -------------------------------------------------------------------------------- /metricbeat/module/apache/status/_meta/docs.asciidoc: -------------------------------------------------------------------------------- 1 | === Apache Status Metricset 2 | 3 | The Apache `status` metricset collects data from the Apache 4 | https://httpd.apache.org/docs/current/mod/mod_status.html[mod_status] module. It 5 | scrapes the server status data from the web page generated by mod_status. 6 | 7 | -------------------------------------------------------------------------------- /metricbeat/module/docker/vendor/github.com/docker/docker/pkg/sysinfo/sysinfo_unix.go: -------------------------------------------------------------------------------- 1 | // +build !linux,!solaris,!windows 2 | 3 | package sysinfo 4 | 5 | // New returns an empty SysInfo for non linux nor solaris for now. 6 | func New(quiet bool) *SysInfo { 7 | sysInfo := &SysInfo{} 8 | return sysInfo 9 | } 10 | -------------------------------------------------------------------------------- /metricbeat/module/docker/vendor/github.com/docker/docker/pkg/system/errors.go: -------------------------------------------------------------------------------- 1 | package system 2 | 3 | import ( 4 | "errors" 5 | ) 6 | 7 | var ( 8 | // ErrNotSupportedPlatform means the platform is not supported. 9 | ErrNotSupportedPlatform = errors.New("platform and architecture is not supported") 10 | ) 11 | -------------------------------------------------------------------------------- /metricbeat/module/mongodb/_meta/fields.yml: -------------------------------------------------------------------------------- 1 | - key: mongodb 2 | title: "MongoDB" 3 | description: > 4 | Metrics collected from MongoDB servers. 5 | short_config: false 6 | fields: 7 | - name: mongodb 8 | type: group 9 | description: > 10 | MongoDB metrics. 11 | fields: 12 | -------------------------------------------------------------------------------- /metricbeat/module/nginx/_meta/docs.asciidoc: -------------------------------------------------------------------------------- 1 | == Nginx Module 2 | 3 | This module periodically fetches metrics from https://nginx.org/[Nginx] servers. 4 | 5 | 6 | [float] 7 | === Compatibility 8 | 9 | The Nginx metricsets were tested with Nginx 1.9 and are expected to work with all version 10 | >= 1.9. 11 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/variant_amd64.go: -------------------------------------------------------------------------------- 1 | // +build amd64 2 | 3 | package ole 4 | 5 | type VARIANT struct { 6 | VT VT // 2 7 | wReserved1 uint16 // 4 8 | wReserved2 uint16 // 6 9 | wReserved3 uint16 // 8 10 | Val int64 // 16 11 | _ [8]byte // 24 12 | } 13 | -------------------------------------------------------------------------------- /filebeat/module/apache2/error/test/darwin-2.4.23.log: -------------------------------------------------------------------------------- 1 | [Mon Dec 26 16:15:55.103522 2016] [mpm_prefork:notice] [pid 11379] AH00163: Apache/2.4.23 (Unix) configured -- resuming normal operations 2 | [Mon Dec 26 16:15:55.103786 2016] [core:notice] [pid 11379] AH00094: Command line: '/usr/local/Cellar/httpd24/2.4.23_2/bin/httpd' 3 | -------------------------------------------------------------------------------- /metricbeat/module/docker/vendor/github.com/docker/docker/pkg/system/meminfo_unsupported.go: -------------------------------------------------------------------------------- 1 | // +build !linux,!windows,!solaris 2 | 3 | package system 4 | 5 | // ReadMemInfo is not supported on platforms other than linux and windows. 6 | func ReadMemInfo() (*MemInfo, error) { 7 | return nil, ErrNotSupportedPlatform 8 | } 9 | -------------------------------------------------------------------------------- /metricbeat/module/docker/vendor/github.com/opencontainers/runc/libcontainer/configs/hugepage_limit.go: -------------------------------------------------------------------------------- 1 | package configs 2 | 3 | type HugepageLimit struct { 4 | // which type of hugepage to limit. 5 | Pagesize string `json:"page_size"` 6 | 7 | // usage limit for hugepage. 8 | Limit uint64 `json:"limit"` 9 | } 10 | -------------------------------------------------------------------------------- /metricbeat/module/prometheus/_meta/fields.yml: -------------------------------------------------------------------------------- 1 | - key: prometheus 2 | title: "Prometheus" 3 | description: > 4 | beta[] 5 | 6 | Stats collected from Prometheus. 7 | short_config: false 8 | fields: 9 | - name: prometheus 10 | type: group 11 | description: > 12 | fields: 13 | -------------------------------------------------------------------------------- /metricbeat/module/redis/keyspace/_meta/docs.asciidoc: -------------------------------------------------------------------------------- 1 | === Redis Keyspace Metricset 2 | 3 | The Redis `keyspace` metricset collects information about the Redis keyspaces. 4 | For each keyspace, an event is sent to Elasticsearch. 5 | The keyspace information is fetched from the http://redis.io/commands/INFO[`INFO`] command. 6 | -------------------------------------------------------------------------------- /winlogbeat/eventlog/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Package eventlog provides the means for reading event logs from Windows. Windows 3 | has two different APIs for reading event logs. This package automatically 4 | chooses the appropriate API to use based on what is available in the runtime 5 | operating system. 6 | */ 7 | package eventlog 8 | -------------------------------------------------------------------------------- /metricbeat/module/jolokia/_meta/config.yml: -------------------------------------------------------------------------------- 1 | #- module: jolokia 2 | # metricsets: ["jmx"] 3 | # enabled: true 4 | # period: 10s 5 | # hosts: ["localhost"] 6 | # namespace: "metrics" 7 | # path: "/jolokia/?ignoreErrors=true&canonicalNaming=false" 8 | # jmx.mapping: 9 | # jmx.application: 10 | # jmx.instance: 11 | -------------------------------------------------------------------------------- /vendor/github.com/elastic/gosigar/sys/linux/sysconf_cgo.go: -------------------------------------------------------------------------------- 1 | // +build linux,cgo 2 | 3 | package linux 4 | 5 | /* 6 | #include 7 | */ 8 | import "C" 9 | 10 | // GetClockTicks returns the number of click ticks in one jiffie. 11 | func GetClockTicks() int { 12 | return int(C.sysconf(C._SC_CLK_TCK)) 13 | } 14 | -------------------------------------------------------------------------------- /metricbeat/module/docker/vendor/github.com/docker/docker/pkg/ioutils/temp_unix.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package ioutils 4 | 5 | import "io/ioutil" 6 | 7 | // TempDir on Unix systems is equivalent to ioutil.TempDir. 8 | func TempDir(dir, prefix string) (string, error) { 9 | return ioutil.TempDir(dir, prefix) 10 | } 11 | -------------------------------------------------------------------------------- /metricbeat/module/docker/vendor/github.com/docker/docker/pkg/plugins/plugins_linux.go: -------------------------------------------------------------------------------- 1 | package plugins 2 | 3 | // BasePath returns the path to which all paths returned by the plugin are relative to. 4 | // For v1 plugins, this always returns the host's root directory. 5 | func (p *Plugin) BasePath() string { 6 | return "/" 7 | } 8 | -------------------------------------------------------------------------------- /metricbeat/module/docker/vendor/github.com/opencontainers/runc/libcontainer/configs/namespaces_unsupported.go: -------------------------------------------------------------------------------- 1 | // +build !linux,!freebsd 2 | 3 | package configs 4 | 5 | // Namespace defines configuration for each namespace. It specifies an 6 | // alternate path that is able to be joined via setns. 7 | type Namespace struct { 8 | } 9 | -------------------------------------------------------------------------------- /metricbeat/module/haproxy/stat/_meta/docs.asciidoc: -------------------------------------------------------------------------------- 1 | === HAProxy Stat Metricset 2 | 3 | The HAProxy `stat` metricset collects 'stat' fields from HAProxy processes. 4 | 5 | See section "9.1. CSV format" of the http://www.haproxy.org/download/1.6/doc/management.txt[official HAProxy Management Guide] for a full list of 'stat' fields. 6 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/language/go1_2.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build go1.2 6 | 7 | package language 8 | 9 | import "sort" 10 | 11 | var sortStable = sort.Stable 12 | -------------------------------------------------------------------------------- /dev-tools/packer/docker/fpm-image/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:16.04 2 | 3 | MAINTAINER Tudor Golubenco 4 | 5 | # install fpm 6 | RUN \ 7 | apt-get update && \ 8 | apt-get install -y --no-install-recommends \ 9 | build-essential ruby-dev rpm zip dos2unix libgmp3-dev 10 | 11 | RUN gem install fpm 12 | -------------------------------------------------------------------------------- /dev-tools/packer/docker/go-daemon/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM tudorg/xgo-base 2 | 3 | MAINTAINER Tudor Golubenco 4 | 5 | # Inject the build script 6 | ADD build_go_daemon.sh /build_go_daemon.sh 7 | ENV BUILD_GO_DAEMON /build_go_daemon.sh 8 | RUN chmod +x $BUILD_GO_DAEMON 9 | 10 | ENTRYPOINT ["/build_go_daemon.sh"] 11 | -------------------------------------------------------------------------------- /filebeat/module/apache2/access/test/test.log: -------------------------------------------------------------------------------- 1 | ::1 - - [26/Dec/2016:16:16:29 +0200] "GET /favicon.ico HTTP/1.1" 404 209 2 | 192.168.33.1 - - [26/Dec/2016:16:22:13 +0000] "GET /hello HTTP/1.1" 404 499 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:50.0) Gecko/20100101 Firefox/50.0" 3 | ::1 - - [26/Dec/2016:16:16:48 +0200] "-" 408 - 4 | -------------------------------------------------------------------------------- /libbeat/common/file/fileinfo_windows.go: -------------------------------------------------------------------------------- 1 | package file 2 | 3 | import ( 4 | "os" 5 | ) 6 | 7 | func stat(name string, statFunc func(name string) (os.FileInfo, error)) (FileInfo, error) { 8 | info, err := statFunc(name) 9 | if err != nil { 10 | return nil, err 11 | } 12 | 13 | return fileInfo{FileInfo: info}, nil 14 | } 15 | -------------------------------------------------------------------------------- /metricbeat/module/docker/vendor/github.com/docker/docker/pkg/chrootarchive/chroot_unix.go: -------------------------------------------------------------------------------- 1 | // +build !windows,!linux 2 | 3 | package chrootarchive 4 | 5 | import "syscall" 6 | 7 | func chroot(path string) error { 8 | if err := syscall.Chroot(path); err != nil { 9 | return err 10 | } 11 | return syscall.Chdir("/") 12 | } 13 | -------------------------------------------------------------------------------- /metricbeat/module/docker/vendor/github.com/docker/docker/pkg/signal/signal_unsupported.go: -------------------------------------------------------------------------------- 1 | // +build !linux,!darwin,!freebsd,!windows,!solaris 2 | 3 | package signal 4 | 5 | import ( 6 | "syscall" 7 | ) 8 | 9 | // SignalMap is an empty map of signals for unsupported platform. 10 | var SignalMap = map[string]syscall.Signal{} 11 | -------------------------------------------------------------------------------- /metricbeat/module/postgresql/_meta/fields.yml: -------------------------------------------------------------------------------- 1 | - key: postgresql 2 | title: "PostgreSQL" 3 | description: > 4 | Metrics collected from PostgreSQL servers. 5 | short_config: false 6 | fields: 7 | - name: postgresql 8 | type: group 9 | description: > 10 | PostgreSQL metrics. 11 | fields: 12 | -------------------------------------------------------------------------------- /metricbeat/schema/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Package schema contains helper utilities to parse, convert, rename, and reorganize data 3 | from the format returned by the various monitored systems to the data model used by 4 | Metricbeat. 5 | 6 | See the docs in the mapstrstr and mapstriface sub-packages for usage examples. 7 | */ 8 | package schema 9 | -------------------------------------------------------------------------------- /packetbeat/tests/system/gen/memcache/tcp_counter_ops.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | import mc 4 | 5 | 6 | def run(mc): 7 | print('run') 8 | 9 | mc.set('cnt', 0) 10 | mc.incr('cnt', 2) 11 | mc.decr('cnt', 5) 12 | print(mc.get('cnt')) 13 | 14 | 15 | if __name__ == '__main__': 16 | mc.run_tcp(run) 17 | -------------------------------------------------------------------------------- /vendor/github.com/rcrowley/go-metrics/validate.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -e 4 | 5 | # check there are no formatting issues 6 | GOFMT_LINES=`gofmt -l . | wc -l | xargs` 7 | test $GOFMT_LINES -eq 0 || echo "gofmt needs to be run, ${GOFMT_LINES} files have issues" 8 | 9 | # run the tests for the root package 10 | go test . 11 | -------------------------------------------------------------------------------- /metricbeat/module/ceph/_meta/fields.yml: -------------------------------------------------------------------------------- 1 | - key: ceph 2 | title: "ceph" 3 | description: > 4 | beta[] 5 | 6 | ceph Module 7 | short_config: false 8 | fields: 9 | - name: ceph 10 | type: group 11 | description: > 12 | `ceph` contains the metrics that were scraped from CEPH. 13 | fields: 14 | -------------------------------------------------------------------------------- /metricbeat/module/docker/vendor/github.com/docker/docker/pkg/system/umask_windows.go: -------------------------------------------------------------------------------- 1 | // +build windows 2 | 3 | package system 4 | 5 | // Umask is not supported on the windows platform. 6 | func Umask(newmask int) (oldmask int, err error) { 7 | // should not be called on cli code path 8 | return 0, ErrNotSupportedPlatform 9 | } 10 | -------------------------------------------------------------------------------- /metricbeat/schema/errors_test.go: -------------------------------------------------------------------------------- 1 | package schema 2 | 3 | import ( 4 | "testing" 5 | 6 | "github.com/stretchr/testify/assert" 7 | ) 8 | 9 | func TestErrors(t *testing.T) { 10 | errs := NewErrors() 11 | err := NewError("test", "Hello World") 12 | errs.AddError(err) 13 | 14 | assert.True(t, errs.HasRequiredErrors()) 15 | } 16 | -------------------------------------------------------------------------------- /filebeat/harvester/source/source.go: -------------------------------------------------------------------------------- 1 | package source 2 | 3 | import ( 4 | "io" 5 | "os" 6 | ) 7 | 8 | type LogSource interface { 9 | io.ReadCloser 10 | Name() string 11 | } 12 | 13 | type FileSource interface { 14 | LogSource 15 | Stat() (os.FileInfo, error) 16 | Continuable() bool // can we continue processing after EOF? 17 | } 18 | -------------------------------------------------------------------------------- /filebeat/module/system/syslog/manifest.yml: -------------------------------------------------------------------------------- 1 | module_version: "1.0" 2 | 3 | var: 4 | - name: paths 5 | default: 6 | - /var/log/messages* 7 | - /var/log/syslog* 8 | os.darwin: 9 | - /var/log/system.log* 10 | os.windows: [] 11 | 12 | ingest_pipeline: ingest/pipeline.json 13 | prospector: config/syslog.yml 14 | -------------------------------------------------------------------------------- /metricbeat/module/docker/vendor/github.com/docker/docker/pkg/system/utimes_unsupported.go: -------------------------------------------------------------------------------- 1 | // +build !linux,!freebsd 2 | 3 | package system 4 | 5 | import "syscall" 6 | 7 | // LUtimesNano is only supported on linux and freebsd. 8 | func LUtimesNano(path string, ts []syscall.Timespec) error { 9 | return ErrNotSupportedPlatform 10 | } 11 | -------------------------------------------------------------------------------- /metricbeat/module/nginx/stubstatus/_meta/docs.asciidoc: -------------------------------------------------------------------------------- 1 | === Nginx StubStatus Metricset 2 | 3 | The Nginx `stubstatus` metricset collects data from the Nginx 4 | http://nginx.org/en/docs/http/ngx_http_stub_status_module.html[ngx_http_stub_status] module. It 5 | scrapes the server status data from the web page generated by ngx_http_stub_status. 6 | 7 | -------------------------------------------------------------------------------- /metricbeat/module/nginx/testing.go: -------------------------------------------------------------------------------- 1 | package nginx 2 | 3 | /* 4 | Helper functions for testing used in the nginx metricsets 5 | */ 6 | 7 | import ( 8 | "os" 9 | ) 10 | 11 | func GetNginxEnvHost() string { 12 | host := os.Getenv("NGINX_HOST") 13 | 14 | if len(host) == 0 { 15 | host = "127.0.0.1" 16 | } 17 | return host 18 | } 19 | -------------------------------------------------------------------------------- /metricbeat/module/system/diskio/_meta/docs.asciidoc: -------------------------------------------------------------------------------- 1 | === System Diskio Metricset 2 | 3 | The System `diskio` metricset provides disk IO metrics collected from the operating 4 | system. One event is created for each disk mounted on the system. 5 | 6 | This metricset is available on: 7 | 8 | - Linux 9 | - Windows 10 | - FreeBSD (amd64) 11 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/require/requirements.go: -------------------------------------------------------------------------------- 1 | package require 2 | 3 | // TestingT is an interface wrapper around *testing.T 4 | type TestingT interface { 5 | Errorf(format string, args ...interface{}) 6 | FailNow() 7 | } 8 | 9 | //go:generate go run ../_codegen/main.go -output-package=require -template=require.go.tmpl 10 | -------------------------------------------------------------------------------- /winlogbeat/sys/wineventlog/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Package wineventlog provides access to the Windows Event Log API used in 3 | all versions of Windows since Vista (i.e. Windows 7+ and Windows Server 2008+). 4 | This is distinct from the Event Logging API that was used in Windows XP, 5 | Windows Server 2003, and Windows 2000. 6 | */ 7 | package wineventlog 8 | -------------------------------------------------------------------------------- /filebeat/tests/files/logs/json.log: -------------------------------------------------------------------------------- 1 | {"host": "test", "timestamp": "2016-02-25 13:00:00", "module": "libbeat", "message": "hello json world"} 2 | {"host": "test", "timestamp": "2016-02-25 13:00:01", "module": "topbeat", "message": "hello topbeat"} 3 | {"host": "test", "timestamp": "2016-02-25 13:00:01", "module": "filebeat", "message": "hello filebeat"} 4 | -------------------------------------------------------------------------------- /libbeat/processors/config_test.go: -------------------------------------------------------------------------------- 1 | package processors 2 | 3 | import ( 4 | "testing" 5 | 6 | "github.com/stretchr/testify/assert" 7 | ) 8 | 9 | func TestExtractString(t *testing.T) { 10 | input := "test" 11 | 12 | v, err := extractString(input) 13 | if err != nil { 14 | t.Fatal(err) 15 | } 16 | assert.Equal(t, input, v) 17 | } 18 | -------------------------------------------------------------------------------- /metricbeat/module/jolokia/_meta/fields.yml: -------------------------------------------------------------------------------- 1 | - key: jolokia 2 | title: "Jolokia" 3 | description: > 4 | []beta 5 | 6 | Jolokia Module 7 | short_config: false 8 | fields: 9 | - name: jolokia 10 | type: group 11 | description: > 12 | jolokia contains metrics exposed via jolokia agent 13 | fields: 14 | -------------------------------------------------------------------------------- /metricbeat/module/redis/_meta/fields.yml: -------------------------------------------------------------------------------- 1 | - key: redis 2 | title: "Redis" 3 | description: > 4 | Redis metrics collected from Redis. 5 | short_config: false 6 | fields: 7 | - name: redis 8 | type: group 9 | description: > 10 | `redis` contains the information and statistics from Redis. 11 | fields: 12 | -------------------------------------------------------------------------------- /vendor/github.com/dustin/go-humanize/humanize.go: -------------------------------------------------------------------------------- 1 | /* 2 | Package humanize converts boring ugly numbers to human-friendly strings and back. 3 | 4 | Durations can be turned into strings such as "3 days ago", numbers 5 | representing sizes like 82854982 into useful strings like, "83 MB" or 6 | "79 MiB" (whichever you prefer). 7 | */ 8 | package humanize 9 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/svc/go12.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build windows 6 | // +build !go1.3 7 | 8 | package svc 9 | 10 | // from go12.c 11 | func getServiceMain(r *uintptr) 12 | -------------------------------------------------------------------------------- /filebeat/harvester/reader/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Package reader provides interface and struct to read messages and report them to a harvester 3 | 4 | The interface used is: 5 | 6 | type Reader interface { 7 | Next() (Message, error) 8 | } 9 | 10 | Each time Next is called on a reader, a Message object is returned. 11 | 12 | */ 13 | package reader 14 | -------------------------------------------------------------------------------- /libbeat/outputs/transport/wrap.go: -------------------------------------------------------------------------------- 1 | package transport 2 | 3 | import "net" 4 | 5 | func ConnWrapper(d Dialer, w func(net.Conn) net.Conn) Dialer { 6 | return DialerFunc(func(network, addr string) (net.Conn, error) { 7 | c, err := d.Dial(network, addr) 8 | if err != nil { 9 | return nil, err 10 | } 11 | return w(c), nil 12 | }) 13 | } 14 | -------------------------------------------------------------------------------- /metricbeat/module/postgresql/testing.go: -------------------------------------------------------------------------------- 1 | package postgresql 2 | 3 | import "os" 4 | 5 | func GetEnvDSN() string { 6 | return os.Getenv("POSTGRESQL_DSN") 7 | } 8 | 9 | func GetEnvUsername() string { 10 | return os.Getenv("POSTGRESQL_USERNAME") 11 | } 12 | 13 | func GetEnvPassword() string { 14 | return os.Getenv("POSTGRESQL_PASSWORD") 15 | } 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/icmp/sys_freebsd.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package icmp 6 | 7 | import "syscall" 8 | 9 | func init() { 10 | freebsdVersion, _ = syscall.SysctlUint32("kern.osreldate") 11 | } 12 | -------------------------------------------------------------------------------- /filebeat/harvester/reader/reader.go: -------------------------------------------------------------------------------- 1 | package reader 2 | 3 | // Reader is the interface that wraps the basic Next method for 4 | // getting a new message. 5 | // Next returns the message being read or and error. EOF is returned 6 | // if reader will not return any new message on subsequent calls. 7 | type Reader interface { 8 | Next() (Message, error) 9 | } 10 | -------------------------------------------------------------------------------- /metricbeat/module/system/_meta/fields.yml: -------------------------------------------------------------------------------- 1 | - key: system 2 | title: "System" 3 | description: > 4 | System status metrics, like CPU and memory usage, that are collected from the operating system. 5 | fields: 6 | - name: system 7 | type: group 8 | description: > 9 | `system` contains local system metrics. 10 | fields: 11 | -------------------------------------------------------------------------------- /filebeat/scripts/module/fileset/manifest.yml: -------------------------------------------------------------------------------- 1 | module_version: 1.0 2 | 3 | var: 4 | - name: paths 5 | default: 6 | - /example/test.log* 7 | os.darwin: 8 | - /usr/local/example/test.log* 9 | os.windows: 10 | - c:/programdata/example/logs/test.log* 11 | 12 | ingest_pipeline: ingest/pipeline.json 13 | prospector: config/{fileset}.yml 14 | -------------------------------------------------------------------------------- /metricbeat/module/kafka/_meta/Dockerfile: -------------------------------------------------------------------------------- 1 | # TODO: No tags currently exist for this image. Tags should be used whever possible 2 | # as otherwise builds are not identical over time. 3 | FROM spotify/kafka 4 | 5 | RUN apt-get update && apt-get install -y netcat 6 | HEALTHCHECK CMD nc -z localhost 9092 7 | 8 | EXPOSE 2181 9092 9 | 10 | ENV ADVERTISED_HOST kafka 11 | -------------------------------------------------------------------------------- /metricbeat/module/nginx/_meta/fields.yml: -------------------------------------------------------------------------------- 1 | - key: nginx 2 | title: "Nginx" 3 | description: > 4 | Nginx server status metrics collected from various modules. 5 | short_config: false 6 | fields: 7 | - name: nginx 8 | type: group 9 | description: > 10 | `nginx` contains the metrics that were scraped from nginx. 11 | fields: 12 | -------------------------------------------------------------------------------- /metricbeat/module/zookeeper/_meta/docs.asciidoc: -------------------------------------------------------------------------------- 1 | == ZooKeeper Module 2 | 3 | The ZooKeeper module fetches statistics from the ZooKeeper service. 4 | 5 | [float] 6 | === Compatibility 7 | 8 | The ZooKeeper metricsets were tested with ZooKeeper 3.4.8 and are expected to work with all version 9 | >= 3.4.0. Versions prior to 3.4 do not support the `mntr` command. 10 | -------------------------------------------------------------------------------- /packetbeat/tests/system/gen/memcache/udp_single_store.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | import mc 4 | 5 | 6 | def run(mc): 7 | print('run') 8 | 9 | # write 1kb entry 10 | v = 1024 * 'a' 11 | if not mc.set('test_key', v): 12 | raise RuntimeError("failed to set value") 13 | 14 | 15 | if __name__ == '__main__': 16 | mc.run_udp(run) 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/ipv4/sys_stub.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build nacl plan9 solaris 6 | 7 | package ipv4 8 | 9 | var ( 10 | ctlOpts = [ctlMax]ctlOpt{} 11 | 12 | sockOpts = [ssoMax]sockOpt{} 13 | ) 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/ipv6/sys_stub.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build nacl plan9 solaris 6 | 7 | package ipv6 8 | 9 | var ( 10 | ctlOpts = [ctlMax]ctlOpt{} 11 | 12 | sockOpts = [ssoMax]sockOpt{} 13 | ) 14 | -------------------------------------------------------------------------------- /generator/beat/{beat}/config/config.go.tmpl: -------------------------------------------------------------------------------- 1 | // Config is put into a different package to prevent cyclic imports in case 2 | // it is needed in several locations 3 | 4 | package config 5 | 6 | import "time" 7 | 8 | type Config struct { 9 | Period time.Duration `config:"period"` 10 | } 11 | 12 | var DefaultConfig = Config{ 13 | Period: 1 * time.Second, 14 | } 15 | -------------------------------------------------------------------------------- /heartbeat/docs/faq.asciidoc: -------------------------------------------------------------------------------- 1 | [[faq]] 2 | == Frequently Asked Questions 3 | 4 | This section contains frequently asked questions about Heartbeat. Also check 5 | out the 6 | https://discuss.elastic.co/c/beats/heartbeat[Heartbeat discussion forum]. 7 | 8 | include::../../libbeat/docs/faq-limit-bandwidth.asciidoc[] 9 | include::../../libbeat/docs/shared-faq.asciidoc[] 10 | -------------------------------------------------------------------------------- /metricbeat/module/docker/_meta/fields.yml: -------------------------------------------------------------------------------- 1 | - key: docker 2 | title: "Docker" 3 | description: > 4 | beta[] 5 | 6 | Docker stats collected from Docker. 7 | short_config: false 8 | fields: 9 | - name: docker 10 | type: group 11 | description: > 12 | Information and statistics about docker's running containers. 13 | fields: 14 | -------------------------------------------------------------------------------- /metricbeat/module/docker/vendor/github.com/docker/docker/pkg/system/umask.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package system 4 | 5 | import ( 6 | "syscall" 7 | ) 8 | 9 | // Umask sets current process's file mode creation mask to newmask 10 | // and returns oldmask. 11 | func Umask(newmask int) (oldmask int, err error) { 12 | return syscall.Umask(newmask), nil 13 | } 14 | -------------------------------------------------------------------------------- /metricbeat/module/docker/vendor/github.com/fsouza/go-dockerclient/DOCKER-LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | You can find the Docker license at the following link: 6 | https://raw.githubusercontent.com/docker/docker/master/LICENSE 7 | -------------------------------------------------------------------------------- /metricbeat/module/postgresql/vendor/github.com/lib/pq/ssl_windows.go: -------------------------------------------------------------------------------- 1 | // +build windows 2 | 3 | package pq 4 | 5 | // sslKeyPermissions checks the permissions on user-supplied ssl key files. 6 | // The key file should have very little access. 7 | // 8 | // libpq does not check key file permissions on Windows. 9 | func sslKeyPermissions(string) error { return nil } 10 | -------------------------------------------------------------------------------- /packetbeat/tests/system/gen/memcache/udp_multi_store.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | import mc 4 | 5 | 6 | def run(mc): 7 | print('run') 8 | 9 | res = mc.set_multi({ 10 | "k1": 100 * 'a', 11 | "k2": 20 * 'b', 12 | "k3": 10 * 'c', 13 | }) 14 | print(res) 15 | 16 | 17 | if __name__ == '__main__': 18 | mc.run_udp(run) 19 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/ipv4/sockopt_stub.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build nacl plan9 solaris 6 | 7 | package ipv4 8 | 9 | func setInt(fd int, opt *sockOpt, v int) error { 10 | return errOpNoSupport 11 | } 12 | -------------------------------------------------------------------------------- /filebeat/harvester/reader/json_config.go: -------------------------------------------------------------------------------- 1 | package reader 2 | 3 | type JSONConfig struct { 4 | MessageKey string `config:"message_key"` 5 | KeysUnderRoot bool `config:"keys_under_root"` 6 | OverwriteKeys bool `config:"overwrite_keys"` 7 | AddErrorKey bool `config:"add_error_key"` 8 | } 9 | 10 | func (c *JSONConfig) Validate() error { 11 | return nil 12 | } 13 | -------------------------------------------------------------------------------- /metricbeat/module/docker/vendor/github.com/docker/docker/pkg/reexec/README.md: -------------------------------------------------------------------------------- 1 | # reexec 2 | 3 | The `reexec` package facilitates the busybox style reexec of the docker binary that we require because 4 | of the forking limitations of using Go. Handlers can be registered with a name and the argv 0 of 5 | the exec of the binary will be used to find and execute custom init paths. 6 | -------------------------------------------------------------------------------- /metricbeat/module/docker/vendor/github.com/docker/docker/pkg/symlink/fs_unix.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package symlink 4 | 5 | import ( 6 | "path/filepath" 7 | ) 8 | 9 | func evalSymlinks(path string) (string, error) { 10 | return filepath.EvalSymlinks(path) 11 | } 12 | 13 | func isDriveOrRoot(p string) bool { 14 | return p == string(filepath.Separator) 15 | } 16 | -------------------------------------------------------------------------------- /metricbeat/module/mysql/_meta/fields.yml: -------------------------------------------------------------------------------- 1 | - key: mysql 2 | title: "MySQL" 3 | description: > 4 | MySQL server status metrics collected from MySQL. 5 | short_config: false 6 | fields: 7 | - name: mysql 8 | type: group 9 | description: > 10 | `mysql` contains the metrics that were obtained from MySQL 11 | query. 12 | fields: 13 | -------------------------------------------------------------------------------- /metricbeat/module/system/_meta/testing/burn.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import "flag" 4 | 5 | func main() { 6 | cpus := flag.Int("cpus", 1, "Number of burning goroutines to start") 7 | flag.Parse() 8 | 9 | x := 17 10 | var c chan bool 11 | for i := 0; i < *cpus; i++ { 12 | go func() { 13 | for { 14 | x = x * x 15 | } 16 | }() 17 | } 18 | <-c 19 | } 20 | -------------------------------------------------------------------------------- /metricbeat/module/system/diskio/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Package diskio fetches disk IO metrics from the OS. It is implemented for freebsd, 3 | linux, and windows. 4 | 5 | Detailed descriptions of IO stats provided by Linux can be found here: 6 | https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/plain/Documentation/iostats.txt?id=refs/tags/v4.6-rc7 7 | */ 8 | package diskio 9 | -------------------------------------------------------------------------------- /metricbeat/module/system/socket/hashset_test.go: -------------------------------------------------------------------------------- 1 | package socket 2 | 3 | import ( 4 | "testing" 5 | 6 | "github.com/stretchr/testify/assert" 7 | ) 8 | 9 | func TestHashSet(t *testing.T) { 10 | set := hashSet{} 11 | 12 | set.Add(10) 13 | assert.True(t, set.Contains(10)) 14 | assert.False(t, set.Contains(0)) 15 | 16 | set.Reset() 17 | assert.Len(t, set, 0) 18 | } 19 | -------------------------------------------------------------------------------- /testing/environments/docker/elasticsearch/config/log4j2.properties: -------------------------------------------------------------------------------- 1 | status = error 2 | 3 | appender.console.type = Console 4 | appender.console.name = console 5 | appender.console.layout.type = PatternLayout 6 | appender.console.layout.pattern = [%d{ISO8601}][%-5p][%-25c{1.}] %marker%m%n 7 | 8 | rootLogger.level = info 9 | rootLogger.appenderRef.console.ref = console 10 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/objx/security.go: -------------------------------------------------------------------------------- 1 | package objx 2 | 3 | import ( 4 | "crypto/sha1" 5 | "encoding/hex" 6 | ) 7 | 8 | // HashWithKey hashes the specified string using the security 9 | // key. 10 | func HashWithKey(data, key string) string { 11 | hash := sha1.New() 12 | hash.Write([]byte(data + ":" + key)) 13 | return hex.EncodeToString(hash.Sum(nil)) 14 | } 15 | -------------------------------------------------------------------------------- /filebeat/harvester/util.go: -------------------------------------------------------------------------------- 1 | package harvester 2 | 3 | import "github.com/elastic/beats/libbeat/common/match" 4 | 5 | // MatchAny checks if the text matches any of the regular expressions 6 | func MatchAny(matchers []match.Matcher, text string) bool { 7 | for _, m := range matchers { 8 | if m.MatchString(text) { 9 | return true 10 | } 11 | } 12 | return false 13 | } 14 | -------------------------------------------------------------------------------- /filebeat/module/nginx/error/manifest.yml: -------------------------------------------------------------------------------- 1 | module_version: "1.0" 2 | 3 | var: 4 | - name: paths 5 | default: 6 | - /var/log/nginx/error.log* 7 | os.darwin: 8 | - /usr/local/var/log/nginx/error.log* 9 | os.windows: 10 | - c:/programdata/nginx/logs/error.log* 11 | 12 | ingest_pipeline: ingest/pipeline.json 13 | prospector: config/nginx-error.yml 14 | -------------------------------------------------------------------------------- /generator/metricbeat/README.md: -------------------------------------------------------------------------------- 1 | # Creating a Beat based on Metricbeat 2 | 3 | The metricset Beat generator enables you to create a Beat that uses Metricbeat as a library and has your 4 | own metricsets. For more details on how to create your own metricbeat check out the [developer guide](https://www.elastic.co/guide/en/beats/metricbeat/current/creating-beat-from-metricbeat.html). 5 | 6 | -------------------------------------------------------------------------------- /libbeat/monitoring/report/elasticsearch/snapshot.go: -------------------------------------------------------------------------------- 1 | package elasticsearch 2 | 3 | import ( 4 | "github.com/elastic/beats/libbeat/common" 5 | "github.com/elastic/beats/libbeat/monitoring" 6 | ) 7 | 8 | func makeSnapshot(R *monitoring.Registry) common.MapStr { 9 | mode := monitoring.Full 10 | return common.MapStr(monitoring.CollectStructSnapshot(R, mode, false)) 11 | } 12 | -------------------------------------------------------------------------------- /metricbeat/module/apache/_meta/fields.yml: -------------------------------------------------------------------------------- 1 | - key: apache 2 | title: "Apache" 3 | description: > 4 | Apache HTTPD server metricsets collected from the Apache web server. 5 | short_config: false 6 | fields: 7 | - name: apache 8 | type: group 9 | description: > 10 | `apache` contains the metrics that were scraped from Apache. 11 | fields: 12 | -------------------------------------------------------------------------------- /metricbeat/module/docker/vendor/github.com/docker/docker/pkg/reexec/command_unsupported.go: -------------------------------------------------------------------------------- 1 | // +build !linux,!windows,!freebsd,!solaris,!darwin 2 | 3 | package reexec 4 | 5 | import ( 6 | "os/exec" 7 | ) 8 | 9 | // Command is unsupported on operating systems apart from Linux, Windows, Solaris and Darwin. 10 | func Command(args ...string) *exec.Cmd { 11 | return nil 12 | } 13 | -------------------------------------------------------------------------------- /libbeat/docs/visualizing-data.asciidoc: -------------------------------------------------------------------------------- 1 | [[visualizing-data]] 2 | == Visualizing Your Data in Kibana 3 | 4 | This section describes how to load the sample Beats dashboards. After loading 5 | the dashboards in Kibana, you can modify them to meet your needs. 6 | 7 | This section includes the following topics: 8 | 9 | * <> 10 | * <> 11 | -------------------------------------------------------------------------------- /metricbeat/module/docker/vendor/github.com/docker/docker/pkg/pidfile/pidfile_darwin.go: -------------------------------------------------------------------------------- 1 | // +build darwin 2 | 3 | package pidfile 4 | 5 | import ( 6 | "syscall" 7 | ) 8 | 9 | func processExists(pid int) bool { 10 | // OS X does not have a proc filesystem. 11 | // Use kill -0 pid to judge if the process exists. 12 | err := syscall.Kill(pid, 0) 13 | return err == nil 14 | } 15 | -------------------------------------------------------------------------------- /packetbeat/protos/nfs/config.go: -------------------------------------------------------------------------------- 1 | package nfs 2 | 3 | import ( 4 | "github.com/elastic/beats/packetbeat/config" 5 | "time" 6 | ) 7 | 8 | type rpcConfig struct { 9 | config.ProtocolCommon `config:",inline"` 10 | } 11 | 12 | var ( 13 | defaultConfig = rpcConfig{ 14 | ProtocolCommon: config.ProtocolCommon{ 15 | TransactionTimeout: 1 * time.Minute, 16 | }, 17 | } 18 | ) 19 | -------------------------------------------------------------------------------- /libbeat/libbeat_test.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "flag" 5 | "testing" 6 | ) 7 | 8 | var systemTest *bool 9 | 10 | func init() { 11 | systemTest = flag.Bool("systemTest", false, "Set to true when running system tests") 12 | } 13 | 14 | // Test started when the test binary is started 15 | func TestSystem(t *testing.T) { 16 | if *systemTest { 17 | main() 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /metricbeat/beater/config.go: -------------------------------------------------------------------------------- 1 | package beater 2 | 3 | import "github.com/elastic/beats/libbeat/common" 4 | 5 | // Config is the root of the Metricbeat configuration hierarchy. 6 | type Config struct { 7 | // Modules is a list of module specific configuration data. 8 | Modules []*common.Config `config:"modules"` 9 | ReloadModules *common.Config `config:"config.modules"` 10 | } 11 | -------------------------------------------------------------------------------- /metricbeat/docs/modules/golang/expvar.asciidoc: -------------------------------------------------------------------------------- 1 | //// 2 | This file is generated! See scripts/docs_collector.py 3 | //// 4 | 5 | [[metricbeat-metricset-golang-expvar]] 6 | include::../../../module/golang/expvar/_meta/docs.asciidoc[] 7 | 8 | 9 | ==== Fields 10 | 11 | For a description of each field in the metricset, see the 12 | <> section. 13 | 14 | -------------------------------------------------------------------------------- /metricbeat/module/docker/vendor/github.com/docker/docker/pkg/archive/time_unsupported.go: -------------------------------------------------------------------------------- 1 | // +build !linux 2 | 3 | package archive 4 | 5 | import ( 6 | "syscall" 7 | "time" 8 | ) 9 | 10 | func timeToTimespec(time time.Time) (ts syscall.Timespec) { 11 | nsec := int64(0) 12 | if !time.IsZero() { 13 | nsec = time.UnixNano() 14 | } 15 | return syscall.NsecToTimespec(nsec) 16 | } 17 | -------------------------------------------------------------------------------- /metricbeat/module/docker/vendor/github.com/docker/docker/pkg/mount/mounter_unsupported.go: -------------------------------------------------------------------------------- 1 | // +build !linux,!freebsd,!solaris freebsd,!cgo solaris,!cgo 2 | 3 | package mount 4 | 5 | func mount(device, target, mType string, flag uintptr, data string) error { 6 | panic("Not implemented") 7 | } 8 | 9 | func unmount(target string, flag int) error { 10 | panic("Not implemented") 11 | } 12 | -------------------------------------------------------------------------------- /metricbeat/module/docker/vendor/github.com/docker/docker/pkg/pidfile/pidfile_unix.go: -------------------------------------------------------------------------------- 1 | // +build !windows,!darwin 2 | 3 | package pidfile 4 | 5 | import ( 6 | "os" 7 | "path/filepath" 8 | "strconv" 9 | ) 10 | 11 | func processExists(pid int) bool { 12 | if _, err := os.Stat(filepath.Join("/proc", strconv.Itoa(pid))); err == nil { 13 | return true 14 | } 15 | return false 16 | } 17 | -------------------------------------------------------------------------------- /metricbeat/module/docker/vendor/github.com/docker/docker/pkg/plugins/plugins_windows.go: -------------------------------------------------------------------------------- 1 | package plugins 2 | 3 | // BasePath returns the path to which all paths returned by the plugin are relative to. 4 | // For Windows v1 plugins, this returns an empty string, since the plugin is already aware 5 | // of the absolute path of the mount. 6 | func (p *Plugin) BasePath() string { 7 | return "" 8 | } 9 | -------------------------------------------------------------------------------- /metricbeat/module/docker/vendor/github.com/docker/docker/pkg/tlsconfig/tlsconfig_clone.go: -------------------------------------------------------------------------------- 1 | // +build go1.8 2 | 3 | package tlsconfig 4 | 5 | import "crypto/tls" 6 | 7 | // Clone returns a clone of tls.Config. This function is provided for 8 | // compatibility for go1.7 that doesn't include this method in stdlib. 9 | func Clone(c *tls.Config) *tls.Config { 10 | return c.Clone() 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/elastic/go-lumber/client/v2/doc.go: -------------------------------------------------------------------------------- 1 | // Package v2 implements clients supporting lumberjack protocol version 2. 2 | // 3 | // This package provides the low level `Client` handling the wire-format only, 4 | // plus `SyncClient` and AsyncClient. SyncClient and AsyncClient do provide 5 | // protocol compliant communication and error handling with lumberjack server. 6 | package v2 7 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/iconnectionpointcontainer_func.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package ole 4 | 5 | func (v *IConnectionPointContainer) EnumConnectionPoints(points interface{}) error { 6 | return NewError(E_NOTIMPL) 7 | } 8 | 9 | func (v *IConnectionPointContainer) FindConnectionPoint(iid *GUID, point **IConnectionPoint) error { 10 | return NewError(E_NOTIMPL) 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/oleutil/connection_func.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package oleutil 4 | 5 | import ole "github.com/go-ole/go-ole" 6 | 7 | // ConnectObject creates a connection point between two services for communication. 8 | func ConnectObject(disp *ole.IDispatch, iid *ole.GUID, idisp interface{}) (uint32, error) { 9 | return 0, ole.NewError(ole.E_NOTIMPL) 10 | } 11 | -------------------------------------------------------------------------------- /libbeat/common/dtfmt/dtfmt.go: -------------------------------------------------------------------------------- 1 | package dtfmt 2 | 3 | import "time" 4 | 5 | // Format applies the format-pattern to the given timestamp. 6 | // Returns the formatted string or an error if pattern is invalid. 7 | func Format(t time.Time, pattern string) (string, error) { 8 | f, err := NewFormatter(pattern) 9 | if err != nil { 10 | return "", err 11 | } 12 | return f.Format(t) 13 | } 14 | -------------------------------------------------------------------------------- /metricbeat/module/couchbase/_meta/fields.yml: -------------------------------------------------------------------------------- 1 | - key: couchbase 2 | title: "Couchbase" 3 | description: > 4 | beta[] 5 | 6 | Metrics collected from Couchbase servers. 7 | short_config: false 8 | fields: 9 | - name: couchbase 10 | type: group 11 | description: > 12 | `couchbase` contains the metrics that were scraped from Couchbase. 13 | fields: 14 | -------------------------------------------------------------------------------- /metricbeat/module/docker/vendor/github.com/fsouza/go-dockerclient/travis-scripts/run-tests.bash: -------------------------------------------------------------------------------- 1 | #!/bin/bash -ex 2 | 3 | # Copyright 2016 go-dockerclient authors. All rights reserved. 4 | # Use of this source code is governed by a BSD-style 5 | # license that can be found in the LICENSE file. 6 | 7 | make test 8 | 9 | if [[ $TRAVIS_OS_NAME == "linux" ]]; then 10 | make integration 11 | fi 12 | -------------------------------------------------------------------------------- /testing/environments/args.yml: -------------------------------------------------------------------------------- 1 | # This file contains the build arguments which are shared between all elastic stack containers. 2 | # This allows to change the build id and download path in a single place. 3 | version: '2.1' 4 | services: 5 | args: 6 | build: 7 | args: 8 | DOWNLOAD_URL: https://snapshots.elastic.co/downloads 9 | ELASTIC_VERSION: 6.0.0-alpha1-SNAPSHOT 10 | -------------------------------------------------------------------------------- /metricbeat/module/docker/vendor/github.com/opencontainers/runc/libcontainer/configs/interface_priority_map.go: -------------------------------------------------------------------------------- 1 | package configs 2 | 3 | import ( 4 | "fmt" 5 | ) 6 | 7 | type IfPrioMap struct { 8 | Interface string `json:"interface"` 9 | Priority int64 `json:"priority"` 10 | } 11 | 12 | func (i *IfPrioMap) CgroupString() string { 13 | return fmt.Sprintf("%s %d", i.Interface, i.Priority) 14 | } 15 | -------------------------------------------------------------------------------- /metricbeat/module/docker/vendor/github.com/docker/docker/pkg/mount/mountinfo_unsupported.go: -------------------------------------------------------------------------------- 1 | // +build !windows,!linux,!freebsd,!solaris freebsd,!cgo solaris,!cgo 2 | 3 | package mount 4 | 5 | import ( 6 | "fmt" 7 | "runtime" 8 | ) 9 | 10 | func parseMountTable() ([]*Info, error) { 11 | return nil, fmt.Errorf("mount.parseMountTable is not implemented on %s/%s", runtime.GOOS, runtime.GOARCH) 12 | } 13 | -------------------------------------------------------------------------------- /metricbeat/module/docker/vendor/github.com/docker/docker/pkg/promise/promise.go: -------------------------------------------------------------------------------- 1 | package promise 2 | 3 | // Go is a basic promise implementation: it wraps calls a function in a goroutine, 4 | // and returns a channel which will later return the function's return value. 5 | func Go(f func() error) chan error { 6 | ch := make(chan error, 1) 7 | go func() { 8 | ch <- f() 9 | }() 10 | return ch 11 | } 12 | -------------------------------------------------------------------------------- /metricbeat/module/prometheus/collector/_meta/docs.asciidoc: -------------------------------------------------------------------------------- 1 | === Prometheus Collector Metricset 2 | 3 | The Prometheus `collector` metricset fetches data from https://prometheus.io/docs/instrumenting/exporters/[prometheus exporters]. 4 | 5 | All events with the same labels are grouped together as one event. The fields 6 | exported by this metricset vary depending on the Prometheus exporter that you're 7 | using. 8 | -------------------------------------------------------------------------------- /metricbeat/module/zookeeper/_meta/fields.yml: -------------------------------------------------------------------------------- 1 | - key: zookeeper 2 | title: "ZooKeeper" 3 | description: > 4 | ZooKeeper metrics collected by the four-letter monitoring commands. 5 | short_config: false 6 | fields: 7 | - name: zookeeper 8 | type: group 9 | description: > 10 | `zookeeper` contains the metrics reported by ZooKeeper 11 | commands. 12 | fields: 13 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/vendor/github.com/stretchr/objx/security.go: -------------------------------------------------------------------------------- 1 | package objx 2 | 3 | import ( 4 | "crypto/sha1" 5 | "encoding/hex" 6 | ) 7 | 8 | // HashWithKey hashes the specified string using the security 9 | // key. 10 | func HashWithKey(data, key string) string { 11 | hash := sha1.New() 12 | hash.Write([]byte(data + ":" + key)) 13 | return hex.EncodeToString(hash.Sum(nil)) 14 | } 15 | -------------------------------------------------------------------------------- /winlogbeat/README.md: -------------------------------------------------------------------------------- 1 | # Winlogbeat 2 | 3 | *You know, for windows event logs* 4 | 5 | Winlogbeat is an open-source log collector that ships Windows Event Logs to 6 | Elasticsearch or Logstash. It installs as a Windows service on all versions 7 | since Windows XP. 8 | 9 | ## Contributions 10 | 11 | We love contributions from our community! Please read the 12 | [CONTRIBUTING.md](../CONTRIBUTING.md) file. 13 | -------------------------------------------------------------------------------- /heartbeat/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "os" 5 | 6 | "github.com/elastic/beats/libbeat/beat" 7 | 8 | "github.com/elastic/beats/heartbeat/beater" 9 | 10 | // register default heartbeat monitors 11 | _ "github.com/elastic/beats/heartbeat/monitors/defaults" 12 | ) 13 | 14 | func main() { 15 | err := beat.Run("heartbeat", "", beater.New) 16 | if err != nil { 17 | os.Exit(1) 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /libbeat/common/droppriv/droppriv_windows.go: -------------------------------------------------------------------------------- 1 | package droppriv 2 | 3 | import "errors" 4 | 5 | type RunOptions struct { 6 | Uid *int 7 | Gid *int 8 | } 9 | 10 | func DropPrivileges(config RunOptions) error { 11 | 12 | if config.Uid == nil { 13 | // not found, no dropping privileges but no err 14 | return nil 15 | } 16 | 17 | return errors.New("Dropping privileges is not supported on Windows") 18 | } 19 | -------------------------------------------------------------------------------- /metricbeat/module/docker/vendor/github.com/Sirupsen/logrus/terminal_solaris.go: -------------------------------------------------------------------------------- 1 | // +build solaris,!appengine 2 | 3 | package logrus 4 | 5 | import ( 6 | "os" 7 | 8 | "golang.org/x/sys/unix" 9 | ) 10 | 11 | // IsTerminal returns true if the given file descriptor is a terminal. 12 | func IsTerminal() bool { 13 | _, err := unix.IoctlGetTermios(int(os.Stdout.Fd()), unix.TCGETA) 14 | return err == nil 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/assert/errors.go: -------------------------------------------------------------------------------- 1 | package assert 2 | 3 | import ( 4 | "errors" 5 | ) 6 | 7 | // AnError is an error instance useful for testing. If the code does not care 8 | // about error specifics, and only needs to return the error for example, this 9 | // error should be used to make the test code more readable. 10 | var AnError = errors.New("assert.AnError general error for testing") 11 | -------------------------------------------------------------------------------- /filebeat/module/system/_meta/config.full.yml: -------------------------------------------------------------------------------- 1 | #- module: system 2 | # Syslog 3 | #syslog: 4 | #enabled: true 5 | 6 | # Set custom paths for the log files. If left empty, 7 | # Filebeat will choose the paths depending on your OS. 8 | #var.paths: 9 | 10 | # Prospector configuration (advanced). Any prospector configuration option 11 | # can be added under this section. 12 | #prospector: 13 | -------------------------------------------------------------------------------- /libbeat/tests/system/base.py: -------------------------------------------------------------------------------- 1 | import os 2 | from beat.beat import TestCase 3 | 4 | 5 | class BaseTest(TestCase): 6 | 7 | @classmethod 8 | def setUpClass(self): 9 | self.beat_name = "mockbeat" 10 | self.beat_path = os.path.abspath(os.path.join(os.path.dirname(__file__), "../../")) 11 | self.test_binary = self.beat_path + "/libbeat.test" 12 | super(BaseTest, self).setUpClass() 13 | -------------------------------------------------------------------------------- /metricbeat/module/docker/vendor/github.com/docker/docker/pkg/archive/time_linux.go: -------------------------------------------------------------------------------- 1 | package archive 2 | 3 | import ( 4 | "syscall" 5 | "time" 6 | ) 7 | 8 | func timeToTimespec(time time.Time) (ts syscall.Timespec) { 9 | if time.IsZero() { 10 | // Return UTIME_OMIT special value 11 | ts.Sec = 0 12 | ts.Nsec = ((1 << 30) - 2) 13 | return 14 | } 15 | return syscall.NsecToTimespec(time.UnixNano()) 16 | } 17 | -------------------------------------------------------------------------------- /metricbeat/module/mysql/_meta/config.yml: -------------------------------------------------------------------------------- 1 | - module: mysql 2 | metricsets: ["status"] 3 | enabled: true 4 | period: 10s 5 | 6 | # Host DSN should be defined as "user:pass@tcp(127.0.0.1:3306)/" 7 | # The username and password can either be set in the DSN or using the username 8 | # and password config options. Those specified in the DSN take precedence. 9 | hosts: ["root:secret@tcp(127.0.0.1:3306)/"] 10 | -------------------------------------------------------------------------------- /metricbeat/module/mysql/mysql_integration_test.go: -------------------------------------------------------------------------------- 1 | // +build integration 2 | 3 | package mysql 4 | 5 | import ( 6 | "testing" 7 | 8 | "github.com/stretchr/testify/assert" 9 | 10 | _ "github.com/elastic/beats/metricbeat/mb/testing" 11 | ) 12 | 13 | func TestNewDB(t *testing.T) { 14 | db, err := NewDB(GetMySQLEnvDSN()) 15 | assert.NoError(t, err) 16 | 17 | err = db.Ping() 18 | assert.NoError(t, err) 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/ienumvariant.go: -------------------------------------------------------------------------------- 1 | package ole 2 | 3 | import "unsafe" 4 | 5 | type IEnumVARIANT struct { 6 | IUnknown 7 | } 8 | 9 | type IEnumVARIANTVtbl struct { 10 | IUnknownVtbl 11 | Next uintptr 12 | Skip uintptr 13 | Reset uintptr 14 | Clone uintptr 15 | } 16 | 17 | func (v *IEnumVARIANT) VTable() *IEnumVARIANTVtbl { 18 | return (*IEnumVARIANTVtbl)(unsafe.Pointer(v.RawVTable)) 19 | } 20 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/ipv6/sockopt_stub.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build nacl plan9 solaris 6 | 7 | package ipv6 8 | 9 | import "net" 10 | 11 | func getMTUInfo(fd int, opt *sockOpt) (*net.Interface, int, error) { 12 | return nil, 0, errOpNoSupport 13 | } 14 | -------------------------------------------------------------------------------- /heartbeat/docs/how-heartbeat-works.asciidoc: -------------------------------------------------------------------------------- 1 | [[how-heartbeat-works]] 2 | == How Heartbeat Works 3 | 4 | In this topic, you learn about the key building blocks of Heartbeat and how 5 | they work together. Understanding these concepts will help you make informed 6 | decisions about configuring Heartbeat for specific use cases. 7 | 8 | //TODO: Add details to this topic when the architecture is more stable. 9 | 10 | 11 | -------------------------------------------------------------------------------- /heartbeat/tests/system/heartbeat.py: -------------------------------------------------------------------------------- 1 | import sys 2 | 3 | sys.path.append(os.path.join(os.path.dirname(__file__), '../../../libbeat/tests/system')) 4 | 5 | from beat.beat import TestCase 6 | 7 | 8 | class BaseTest(TestCase): 9 | 10 | @classmethod 11 | def setUpClass(self): 12 | self.beat_name = "heartbeat" 13 | self.beat_path = os.path.abspath(os.path.join(os.path.dirname(__file__), "../../")) 14 | -------------------------------------------------------------------------------- /metricbeat/module/docker/vendor/github.com/docker/docker/pkg/system/chtimes_unix.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package system 4 | 5 | import ( 6 | "time" 7 | ) 8 | 9 | //setCTime will set the create time on a file. On Unix, the create 10 | //time is updated as a side effect of setting the modified time, so 11 | //no action is required. 12 | func setCTime(path string, ctime time.Time) error { 13 | return nil 14 | } 15 | -------------------------------------------------------------------------------- /metricbeat/module/php_fpm/_meta/fields.yml: -------------------------------------------------------------------------------- 1 | - key: php_fpm 2 | title: "php_fpm" 3 | description: > 4 | beta[] 5 | 6 | PHP-FPM server status metrics collected from PHP-FPM. 7 | short_config: false 8 | fields: 9 | - name: php_fpm 10 | type: group 11 | description: > 12 | `php_fpm` contains the metrics that were obtained from PHP-FPM status 13 | page call. 14 | fields: 15 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/objx/constants.go: -------------------------------------------------------------------------------- 1 | package objx 2 | 3 | const ( 4 | // PathSeparator is the character used to separate the elements 5 | // of the keypath. 6 | // 7 | // For example, `location.address.city` 8 | PathSeparator string = "." 9 | 10 | // SignatureSeparator is the character that is used to 11 | // separate the Base64 string from the security signature. 12 | SignatureSeparator = "_" 13 | ) 14 | -------------------------------------------------------------------------------- /dev-tools/vendor/github.com/blakesmith/ar/README.md: -------------------------------------------------------------------------------- 1 | # Golang ar (archive) file reader 2 | 3 | This is a simple library for reading and writing [ar](http://en.wikipedia.org/wiki/Ar_(Unix)) files in common format. It is influenced heavily in style and interface from the golang [tar](http://golang.org/pkg/archive/tar/) package. 4 | 5 | ## Author 6 | 7 | Written by Blake Smith 8 | 9 | Licensed under the MIT license. -------------------------------------------------------------------------------- /filebeat/module/apache2/error/test/test.log: -------------------------------------------------------------------------------- 1 | [Mon Dec 26 16:22:08 2016] [error] [client 192.168.33.1] File does not exist: /var/www/favicon.ico 2 | [Mon Dec 26 16:15:55.103786 2016] [core:notice] [pid 11379] AH00094: Command line: '/usr/local/Cellar/httpd24/2.4.23_2/bin/httpd' 3 | [Fri Sep 09 10:42:29.902022 2011] [core:error] [pid 35708:tid 4328636416] [client 72.15.99.187] File does not exist: /usr/local/apache2/htdocs/favicon.ico 4 | -------------------------------------------------------------------------------- /libbeat/monitoring/mode_string.go: -------------------------------------------------------------------------------- 1 | // Code generated by "stringer -type=Mode"; DO NOT EDIT 2 | 3 | package monitoring 4 | 5 | import "fmt" 6 | 7 | const _Mode_name = "ReportedFull" 8 | 9 | var _Mode_index = [...]uint8{0, 8, 12} 10 | 11 | func (i Mode) String() string { 12 | if i >= Mode(len(_Mode_index)-1) { 13 | return fmt.Sprintf("Mode(%d)", i) 14 | } 15 | return _Mode_name[_Mode_index[i]:_Mode_index[i+1]] 16 | } 17 | -------------------------------------------------------------------------------- /metricbeat/module/docker/vendor/github.com/docker/docker/api/types/time/duration_convert.go: -------------------------------------------------------------------------------- 1 | package time 2 | 3 | import ( 4 | "strconv" 5 | "time" 6 | ) 7 | 8 | // DurationToSecondsString converts the specified duration to the number 9 | // seconds it represents, formatted as a string. 10 | func DurationToSecondsString(duration time.Duration) string { 11 | return strconv.FormatFloat(duration.Seconds(), 'f', 0, 64) 12 | } 13 | -------------------------------------------------------------------------------- /metricbeat/module/docker/vendor/github.com/docker/docker/pkg/homedir/homedir_others.go: -------------------------------------------------------------------------------- 1 | // +build !linux 2 | 3 | package homedir 4 | 5 | import ( 6 | "errors" 7 | ) 8 | 9 | // GetStatic is not needed for non-linux systems. 10 | // (Precisely, it is needed only for glibc-based linux systems.) 11 | func GetStatic() (string, error) { 12 | return "", errors.New("homedir.GetStatic() is not supported on this system") 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/vendor/github.com/stretchr/objx/value.go: -------------------------------------------------------------------------------- 1 | package objx 2 | 3 | // Value provides methods for extracting interface{} data in various 4 | // types. 5 | type Value struct { 6 | // data contains the raw data being managed by this Value 7 | data interface{} 8 | } 9 | 10 | // Data returns the raw data contained by this Value 11 | func (v *Value) Data() interface{} { 12 | return v.data 13 | } 14 | -------------------------------------------------------------------------------- /filebeat/harvester/stdin.go: -------------------------------------------------------------------------------- 1 | package harvester 2 | 3 | import ( 4 | "os" 5 | 6 | "github.com/elastic/beats/filebeat/harvester/source" 7 | ) 8 | 9 | // Stdin reads all incoming traffic from stdin and sends it directly to the output 10 | 11 | func (h *Harvester) openStdin() error { 12 | h.file = source.Pipe{File: os.Stdin} 13 | 14 | var err error 15 | h.encoding, err = h.encodingFactory(h.file) 16 | 17 | return err 18 | } 19 | -------------------------------------------------------------------------------- /filebeat/module/system/auth/manifest.yml: -------------------------------------------------------------------------------- 1 | module_version: 1.0 2 | 3 | var: 4 | - name: paths 5 | default: 6 | - /var/log/auth.log* 7 | - /var/log/secure* 8 | os.darwin: 9 | # this works in OS X < 10.8. Newer darwin versions don't write 10 | # ssh logs to files 11 | - /var/log/secure.log* 12 | os.windows: [] 13 | 14 | ingest_pipeline: ingest/pipeline.json 15 | prospector: config/auth.yml 16 | -------------------------------------------------------------------------------- /metricbeat/module/docker/vendor/github.com/docker/docker/pkg/system/mknod_windows.go: -------------------------------------------------------------------------------- 1 | // +build windows 2 | 3 | package system 4 | 5 | // Mknod is not implemented on Windows. 6 | func Mknod(path string, mode uint32, dev int) error { 7 | return ErrNotSupportedPlatform 8 | } 9 | 10 | // Mkdev is not implemented on Windows. 11 | func Mkdev(major int64, minor int64) uint32 { 12 | panic("Mkdev not implemented on Windows.") 13 | } 14 | -------------------------------------------------------------------------------- /metricbeat/module/docker/vendor/github.com/docker/docker/pkg/system/stat_openbsd.go: -------------------------------------------------------------------------------- 1 | package system 2 | 3 | import ( 4 | "syscall" 5 | ) 6 | 7 | // fromStatT creates a system.StatT type from a syscall.Stat_t type 8 | func fromStatT(s *syscall.Stat_t) (*StatT, error) { 9 | return &StatT{size: s.Size, 10 | mode: uint32(s.Mode), 11 | uid: s.Uid, 12 | gid: s.Gid, 13 | rdev: uint64(s.Rdev), 14 | mtim: s.Mtim}, nil 15 | } 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/env_unset.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build windows 6 | // +build go1.4 7 | 8 | package windows 9 | 10 | import "syscall" 11 | 12 | func Unsetenv(key string) error { 13 | // This was added in Go 1.4. 14 | return syscall.Unsetenv(key) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/encoding/japanese/all.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package japanese 6 | 7 | import ( 8 | "golang.org/x/text/encoding" 9 | ) 10 | 11 | // All is a list of all defined encodings in this package. 12 | var All = []encoding.Encoding{EUCJP, ISO2022JP, ShiftJIS} 13 | -------------------------------------------------------------------------------- /winlogbeat/sys/errors.go: -------------------------------------------------------------------------------- 1 | package sys 2 | 3 | // InsufficientBufferError indicates the buffer passed to a system call is too 4 | // small. 5 | type InsufficientBufferError struct { 6 | Cause error 7 | RequiredSize int // Size of the buffer that is required. 8 | } 9 | 10 | // Error returns the cause of the insufficient buffer error. 11 | func (e InsufficientBufferError) Error() string { 12 | return e.Cause.Error() 13 | } 14 | -------------------------------------------------------------------------------- /dev-tools/packer/platforms/centos/beatname.sh.j2: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Script to run {.beat_name} in foreground with the same path settings that 4 | # the init script / systemd unit file would do. 5 | 6 | /usr/share/{{.beat_name}}/bin/{{.beat_name}} \ 7 | -path.home /usr/share/{{.beat_name}} \ 8 | -path.config /etc/{{.beat_name}} \ 9 | -path.data /var/lib/{{.beat_name}} \ 10 | -path.logs /var/log/{{.beat_name}} \ 11 | $@ 12 | -------------------------------------------------------------------------------- /dev-tools/packer/platforms/debian/beatname.sh.j2: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Script to run {{.beat_name}} in foreground with the same path settings that 4 | # the init script / systemd unit file would do. 5 | 6 | /usr/share/{{.beat_name}}/bin/{{.beat_name}} \ 7 | -path.home /usr/share/{{.beat_name}} \ 8 | -path.config /etc/{{.beat_name}} \ 9 | -path.data /var/lib/{{.beat_name}} \ 10 | -path.logs /var/log/{{.beat_name}} \ 11 | $@ 12 | -------------------------------------------------------------------------------- /libbeat/Makefile: -------------------------------------------------------------------------------- 1 | 2 | BEAT_NAME=libbeat 3 | TEST_ENVIRONMENT=true 4 | SYSTEM_TESTS=true 5 | 6 | include scripts/Makefile 7 | 8 | # Collects all fields from processors 9 | .PHONY: fields 10 | fields: 11 | cat _meta/fields.common.yml > _meta/fields.generated.yml 12 | cat processors/*/_meta/fields.yml >> _meta/fields.generated.yml 13 | 14 | # Collects all dependencies and then calls update 15 | .PHONY: collect 16 | collect: fields 17 | -------------------------------------------------------------------------------- /metricbeat/module/docker/vendor/github.com/docker/docker/pkg/devicemapper/log.go: -------------------------------------------------------------------------------- 1 | package devicemapper 2 | 3 | // definitions from lvm2 lib/log/log.h 4 | const ( 5 | LogLevelFatal = 2 + iota // _LOG_FATAL 6 | LogLevelErr // _LOG_ERR 7 | LogLevelWarn // _LOG_WARN 8 | LogLevelNotice // _LOG_NOTICE 9 | LogLevelInfo // _LOG_INFO 10 | LogLevelDebug // _LOG_DEBUG 11 | ) 12 | -------------------------------------------------------------------------------- /vendor/github.com/elastic/gosigar/sigar_util.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 VMware, Inc. 2 | 3 | package gosigar 4 | 5 | import ( 6 | "unsafe" 7 | ) 8 | 9 | func bytePtrToString(ptr *int8) string { 10 | bytes := (*[10000]byte)(unsafe.Pointer(ptr)) 11 | 12 | n := 0 13 | for bytes[n] != 0 { 14 | n++ 15 | } 16 | 17 | return string(bytes[0:n]) 18 | } 19 | 20 | func chop(buf []byte) []byte { 21 | return buf[0 : len(buf)-1] 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/iinspectable_func.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package ole 4 | 5 | func (v *IInspectable) GetIids() ([]*GUID, error) { 6 | return []*GUID{}, NewError(E_NOTIMPL) 7 | } 8 | 9 | func (v *IInspectable) GetRuntimeClassName() (string, error) { 10 | return "", NewError(E_NOTIMPL) 11 | } 12 | 13 | func (v *IInspectable) GetTrustLevel() (uint32, error) { 14 | return uint32(0), NewError(E_NOTIMPL) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/pierrre/gotestcover/Makefile: -------------------------------------------------------------------------------- 1 | #/bin/bash 2 | 3 | setup: 4 | go get -u -v github.com/golang/lint/golint 5 | go get -v -t ./... 6 | 7 | check: 8 | gofmt -d . 9 | go tool vet . 10 | golint 11 | 12 | coverage: 13 | gotestcover -coverprofile=coverage.txt github.com/pierrre/gotestcover 14 | go tool cover -html=coverage.txt -o=coverage.html 15 | 16 | clean: 17 | -rm coverage.txt 18 | -rm coverage.html 19 | gofmt -w . -------------------------------------------------------------------------------- /dev-tools/vendor/github.com/cavaliercoder/go-rpm/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | A native implementation of the RPM file specification in Go. 3 | 4 | package main 5 | 6 | import ( 7 | "fmt" 8 | "github.com/cavaliercoder/go-rpm" 9 | ) 10 | 11 | func main() { 12 | p, err := rpm.OpenPackageFile("my-package.rpm") 13 | if err != nil { 14 | panic(err) 15 | } 16 | 17 | fmt.Printf("Loaded package: %v", p) 18 | } 19 | 20 | */ 21 | package rpm 22 | --------------------------------------------------------------------------------