summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/logging/central-logging-server.nix
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2017-02-05 22:34:16 +0100
committermakefu <github@syntax-fehler.de>2017-02-05 22:34:16 +0100
commitbd90a14732f418f5d77ad2e925fe728940268f3e (patch)
treed0fe85ec584dd9ee16d8894efadea9a3b375cb7b /makefu/2configs/logging/central-logging-server.nix
parentd242cd51498258a66ff910d7c80b3a1fa722f554 (diff)
m central-logging: init
Diffstat (limited to 'makefu/2configs/logging/central-logging-server.nix')
-rw-r--r--makefu/2configs/logging/central-logging-server.nix23
1 files changed, 23 insertions, 0 deletions
diff --git a/makefu/2configs/logging/central-logging-server.nix b/makefu/2configs/logging/central-logging-server.nix
new file mode 100644
index 000000000..e2cfe6948
--- /dev/null
+++ b/makefu/2configs/logging/central-logging-server.nix
@@ -0,0 +1,23 @@
+{pkgs, config, ...}:
+
+with import <stockholm/lib>;
+let
+ es-port = 9200;
+ kibana-port = 5601;
+in {
+ services.elasticsearch = {
+ enable = true;
+ listenAddress = "0.0.0.0";
+ port = es-port;
+ };
+ services.kibana = {
+ enable = true;
+ listenAddress = "0.0.0.0";
+ port = kibana-port;
+ };
+
+ networking.firewall.extraCommands = ''
+ iptables -A INPUT -i retiolum -p tcp --dport ${toString es-port} -j ACCEPT
+ iptables -A INPUT -i retiolum -p tcp --dport ${toString es-port} -j ACCEPT
+ '';
+}