Skip to content

Commit b6ac1f1

Browse files
committed
simplified the default configuration file
1 parent e0c1303 commit b6ac1f1

File tree

1 file changed

+14
-23
lines changed

1 file changed

+14
-23
lines changed

packetbeat.conf

Lines changed: 14 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,27 @@
44
### PacketBeat is a protocol monitoring service that
55
### works by sniffing the network traffic between your application
66
### components. It dumps the results into elasticsearch.
7-
### Go to http://packetbeat.com for more details.
7+
###
8+
### Go to http://packetbeat.com/gettingstarted for more details.
89
###
910

1011
[interfaces]
1112
# Select on which network interfaces to sniff. You can use the "any"
1213
# keyword to sniff on all connected interfaces.
13-
device = "en0"
14+
device = "any"
15+
16+
[elasticsearch]
17+
# Set the host and port where to find ElasticSearch. Most likely you
18+
# need to change the port.
19+
host = "localhost"
20+
port = 9200
1421

1522
# Configure which protocols to monitor and on which ports are they
1623
# running. You can disable a given protocol by commenting out its
1724
# configuration.
1825
[protocols]
1926
[protocols.http]
20-
ports = [80, 8081, 5000, 8002]
27+
ports = [80, 8080, 8081, 5000, 8002]
2128

2229
[protocols.mysql]
2330
ports = [3306]
@@ -28,39 +35,22 @@ device = "en0"
2835
[procs]
2936
# Uncomment the following line to disable reading the processes from
3037
# the proc file system.
31-
dont_read_from_proc = true
32-
33-
# Max frequency, in milliseconds, for reading from the proc file system.
34-
# Default is 10 milliseconds.
35-
max_proc_read_freq = 10
38+
# dont_read_from_proc = true
3639

3740
# Which processes to monitor and how to find them. The processes can
3841
# be found by searching their command line by a given string.
3942
[procs.monitored.mysqld]
4043
cmdline_grep = "mysqld"
4144

42-
[procs.monitored.minitwit]
43-
cmdline_grep = "minitwit"
44-
45-
# Refresh pids frequency. How often to look for PID changes among the
46-
# monitored processes, in milliseconds. The default is one second.
47-
refresh_pids_freq = 1000
45+
[procs.monitored.nginx]
46+
cmdline_grep = "nginx"
4847

4948
[agent]
5049
# The name of the agent as it will show up in the web interface. If not
5150
# defined, we will just use the hostname.
5251
#
5352
#name=
5453

55-
# Refresh topology map frequency. How often to read the topology from ElasticSearch
56-
# and to update its local topology map, in seconds. The default is 10 seconds.
57-
refresh_topology_freq = 10
58-
59-
[elasticsearch]
60-
# Set the host and port where to find ElasticSearch.
61-
host = "localhost"
62-
port = 9200
63-
6454
[runoptions]
6555
# The PacketBeats agent can drop privileges after creating the sniffing
6656
# socket. Root access is required for opening the socket but everything
@@ -74,6 +64,7 @@ port = 9200
7464
#gid=501
7565

7666
[logging]
67+
# These are debug helpers to control the verbosity of logging.
7768
selectors = ["pinger"]
7869

7970
# vim: set ft=toml:

0 commit comments

Comments
 (0)