5b8bd78a1b
The Beats are lightweight processes, written in Go, that you install on your servers to capture all sorts of operational data like logs, operating system metrics or network packet data, and to send it to Elasticsearch, either directly or via Logstash, so it can be visualized with Kibana.
83 lines
4.4 KiB
XML
83 lines
4.4 KiB
XML
<?xml version='1.0'?>
|
|
<!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'>
|
|
<service_bundle type='manifest' name='export'>
|
|
<service name='@SMF_PREFIX@/@SMF_NAME@' type='service' version='1'>
|
|
<dependency name='fs-local' grouping='require_all' restart_on='none' type='service'>
|
|
<service_fmri value='svc:/system/filesystem/local'/>
|
|
</dependency>
|
|
<dependency name='network-service' grouping='require_all' restart_on='none' type='service'>
|
|
<service_fmri value='svc:/network/service'/>
|
|
</dependency>
|
|
<dependency name='name-services' grouping='require_all' restart_on='refresh' type='service'>
|
|
<service_fmri value='svc:/milestone/name-services'/>
|
|
</dependency>
|
|
<dependency name='system-log' grouping='optional_all' restart_on='none' type='service'>
|
|
<service_fmri value='svc:/system/system-log'/>
|
|
</dependency>
|
|
<method_context working_directory='@BEATS_DIR@' />
|
|
<property_group name='startd' type='framework'>
|
|
<propval name='ignore_error' type='astring' value='core,signal'/>
|
|
<propval name='duration' type='astring' value='child' />
|
|
</property_group>
|
|
<instance name='filebeat' enabled='false'>
|
|
<dependency name='config-file' grouping='require_all' restart_on='refresh' type='path'>
|
|
<service_fmri value='file://localhost@PKG_SYSCONFDIR@/filebeat.yml'/>
|
|
</dependency>
|
|
<exec_method name='start' type='method' exec='@PREFIX@/bin/filebeat -path.config @PKG_SYSCONFDIR@ -path.data @BEATS_DIR@ -path.logs @BEATS_LOGDIR@' timeout_seconds='60'/>
|
|
<exec_method name='stop' type='method' exec=':kill' timeout_seconds='60'/>
|
|
<template>
|
|
<common_name>
|
|
<loctext xml:lang='C'>Beats: filebeat data shipper</loctext>
|
|
</common_name>
|
|
<documentation>
|
|
<doc_link name='elastic.co' uri='https://www.elastic.co/guide/en/beats/filebeat/current/index.html' />
|
|
</documentation>
|
|
</template>
|
|
</instance>
|
|
<instance name='heartbeat' enabled='false'>
|
|
<dependency name='config-file' grouping='require_all' restart_on='refresh' type='path'>
|
|
<service_fmri value='file://localhost@PKG_SYSCONFDIR@/heartbeat.yml'/>
|
|
</dependency>
|
|
<exec_method name='start' type='method' exec='@PREFIX@/bin/heartbeat -path.config @PKG_SYSCONFDIR@ -path.data @BEATS_DIR@ -path.logs @BEATS_LOGDIR@' timeout_seconds='60'/>
|
|
<exec_method name='stop' type='method' exec=':kill' timeout_seconds='60'/>
|
|
<template>
|
|
<common_name>
|
|
<loctext xml:lang='C'>Beats: heartbeat data shipper</loctext>
|
|
</common_name>
|
|
<documentation>
|
|
<doc_link name='elastic.co' uri='https://www.elastic.co/guide/en/beats/heartbeat/current/index.html' />
|
|
</documentation>
|
|
</template>
|
|
</instance>
|
|
<instance name='metricbeat' enabled='false'>
|
|
<dependency name='config-file' grouping='require_all' restart_on='refresh' type='path'>
|
|
<service_fmri value='file://localhost@PKG_SYSCONFDIR@/metricbeat.yml'/>
|
|
</dependency>
|
|
<exec_method name='start' type='method' exec='@PREFIX@/bin/metricbeat -path.config @PKG_SYSCONFDIR@ -path.data @BEATS_DIR@ -path.logs @BEATS_LOGDIR@' timeout_seconds='60'/>
|
|
<exec_method name='stop' type='method' exec=':kill' timeout_seconds='60'/>
|
|
<template>
|
|
<common_name>
|
|
<loctext xml:lang='C'>Beats: metricbeat data shipper</loctext>
|
|
</common_name>
|
|
<documentation>
|
|
<doc_link name='elastic.co' uri='https://www.elastic.co/guide/en/beats/metricbeat/current/index.html' />
|
|
</documentation>
|
|
</template>
|
|
</instance>
|
|
<instance name='packetbeat' enabled='false'>
|
|
<dependency name='config-file' grouping='require_all' restart_on='refresh' type='path'>
|
|
<service_fmri value='file://localhost@PKG_SYSCONFDIR@/packetbeat.yml'/>
|
|
</dependency>
|
|
<exec_method name='start' type='method' exec='@PREFIX@/bin/packetbeat -path.config @PKG_SYSCONFDIR@ -path.data @BEATS_DIR@ -path.logs @BEATS_LOGDIR@' timeout_seconds='60'/>
|
|
<exec_method name='stop' type='method' exec=':kill' timeout_seconds='60'/>
|
|
<template>
|
|
<common_name>
|
|
<loctext xml:lang='C'>Beats: packetbeat data shipper</loctext>
|
|
</common_name>
|
|
<documentation>
|
|
<doc_link name='elastic.co' uri='https://www.elastic.co/guide/en/beats/packetbeat/current/index.html' />
|
|
</documentation>
|
|
</template>
|
|
</instance>
|
|
</service>
|
|
</service_bundle>
|