From 506328719645b8f6493a450f5aa0a1e7537c1244 Mon Sep 17 00:00:00 2001 From: Daniel Poelzleithner Date: Tue, 5 Nov 2019 18:44:39 +0100 Subject: [PATCH] fix beats logging and storage-ng --- hosts/storage-ng/hardware-configuration.nix | 6 +++--- lib/logging.nix | 6 ++++++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/hosts/storage-ng/hardware-configuration.nix b/hosts/storage-ng/hardware-configuration.nix index 6ed6e0b6..efaee99a 100644 --- a/hosts/storage-ng/hardware-configuration.nix +++ b/hosts/storage-ng/hardware-configuration.nix @@ -13,17 +13,17 @@ boot.extraModulePackages = [ ]; fileSystems."/" = - { device = "/dev/disk/by-uuid/dcaea9ca-4aeb-441f-a0d6-7f31c8f16a2a"; + { device = "/dev/vda1"; fsType = "ext4"; }; fileSystems."/boot" = - { device = "/dev/disk/by-uuid/5C15-758A"; + { device = "/dev/vda3"; fsType = "vfat"; }; swapDevices = - [ { device = "/dev/disk/by-uuid/68aade1c-47b6-403e-8f2f-21909d55044a"; } + [ { device = "/dev/vda2"; } ]; nix.maxJobs = lib.mkDefault 4; diff --git a/lib/logging.nix b/lib/logging.nix index 43790230..8a3c29ca 100644 --- a/lib/logging.nix +++ b/lib/logging.nix @@ -29,6 +29,12 @@ in services.journalbeat = { enable = true; extraConfig = '' + journalbeat.inputs: + # Paths that should be crawled and fetched. Possible values files and directories. + # When setting a directory, all journals under it are merged. + # When empty starts to read from local journal. + - paths: [] + journalbeat: seek_position: cursor cursor_seek_fallback: tail