Skip to content

Commit

Permalink
dest
Browse files Browse the repository at this point in the history
  • Loading branch information
einokupias committed Sep 19, 2018
1 parent c461c32 commit 52a6c55
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 4 deletions.
4 changes: 2 additions & 2 deletions etc/kibana/kibana.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ server.port: 5601
# Specifies the address to which the Kibana server will bind. IP addresses and host names are both valid values.
# The default is 'localhost', which usually means remote machines will not be able to connect.
# To allow connections from remote users, set this parameter to a non-loopback address.
server.host: "172.28.171.25"
server.host: "172.28.175.21"

# Enables you to specify a path to mount Kibana at if you are running behind a proxy.
# Use the `server.rewriteBasePath` setting to tell Kibana if it should remove the basePath
Expand All @@ -25,7 +25,7 @@ server.host: "172.28.171.25"
server.name: "logmaster"

# The URL of the Elasticsearch instance to use for all your queries.
elasticsearch.url: "http://172.28.171.25:9200"
elasticsearch.url: "http://172.28.175.21:9200"

# When this setting's value is true Kibana uses the hostname specified in the server.host
# setting. When the value of this setting is false, Kibana uses the hostname of the host
Expand Down
2 changes: 1 addition & 1 deletion etc/rsyslog.d/50-default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# For more information see rsyslog.conf(5) and /etc/rsyslog.conf

*.* @172.28.171.25:514;elasticsearch.conf
*.* @172.28.175.21:514;elasticsearch.conf

#
# First some standard log files. Log by facility.
Expand Down
49 changes: 49 additions & 0 deletions etc/rsyslog.d/50-default.conf.save
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Default rules for rsyslog.
#
# For more information see rsyslog.conf(5) and /etc/rsyslog.conf

*.* @:514;elasticsearch.conf

#
# First some standard log files. Log by facility.
#
auth,authpriv.* /var/log/auth.log
*.*;auth,authpriv.none -/var/log/syslog
#cron.* /var/log/cron.log
#daemon.* -/var/log/daemon.log
kern.* -/var/log/kern.log
#lpr.* -/var/log/lpr.log
mail.* -/var/log/mail.log
#user.* -/var/log/user.log

#
# Logging for the mail system. Split it up so that
# it is easy to write scripts to parse these files.
#
#mail.info -/var/log/mail.info
#mail.warn -/var/log/mail.warn
mail.err /var/log/mail.err

#
# Logging for INN news system.
#
news.crit /var/log/news/news.crit
news.err /var/log/news/news.err
news.notice -/var/log/news/news.notice

#
# Some "catch-all" log files.
#
#*.=debug;\
# auth,authpriv.none;\
# news.none;mail.none -/var/log/debug
#*.=info;*.=notice;*.=warn;\
# auth,authpriv.none;\
# cron,daemon.none;\
# mail,news.none -/var/log/messages

#
# Emergencies are sent to everybody logged in.
#
*.emerg :omusrmsg:*

2 changes: 1 addition & 1 deletion etc/rsyslog.d/elasticsearch.conf
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ template(name="plain-syslog"
}

action(type="omelasticsearch"
server="{{ 172.28.171.25 }}"
server="{{ 172.28.175.21 }}"
serverport="9200"
template="plain-syslog" # use the template defined earlier
searchIndex="logstash-index"
Expand Down

0 comments on commit 52a6c55

Please sign in to comment.