couzin2000 Posted November 18, 2023 Share Posted November 18, 2023 I kept searching for a few days but I can't seem to find the topic correctly. Currently using Unraid 6.11.5. Running smoothly but I still want to monitor the system log from time to time. However there is very little recorded onto my syslog, as it is only in RAM. I'd like to add a separate USB thumbdrive and point the syslog to record logs to it. I think my main issue here is that I can't create a Pool device out of that thumbdrive and then hotswap it whenever I need to read its contents. Because it's a pool, I keep thinking it will not be readable from my main Win10 workstation. So how do I send the syslog to the USB key so that I can remove it whenever I want and hard-read it from a different PC? I need configuration how-to steps, if they're available. Thank you! Quote Link to comment
JorgeB Posted November 19, 2023 Share Posted November 19, 2023 You can use the syslog server to send it to a share or another server. Quote Link to comment
Frank1940 Posted November 19, 2023 Share Posted November 19, 2023 (edited) @bonienl, is this something that could be added to the Syslog Server? Or do you have a thought about mounting a USB flash drive as a Pool? Edited November 19, 2023 by Frank1940 Quote Link to comment
Kilrah Posted November 19, 2023 Share Posted November 19, 2023 You should be able to mount as UD, but things will probably break when mounting/unmounting it in OP's scenario. Why not just write to a share and access it via the network? Quote Link to comment
Frank1940 Posted November 19, 2023 Share Posted November 19, 2023 6 minutes ago, Kilrah said: You should be able to mount as UD, but things will probably break when mounting/unmounting it in OP's scenario. Why not just write to a share and access it via the network? The big disadvantage to writing it a share is the possible delay in waiting to spin up a HD and the problem with the data being caught in the write cache if the condition you are trying to catch is a lock-up or something similar. That was the reason for suggesting using a SSD cache drive when the FAQ was written back in 2019. Quote Link to comment
Kilrah Posted November 19, 2023 Share Posted November 19, 2023 4 hours ago, Frank1940 said: The big disadvantage to writing it a share is the possible delay in waiting to spin up a HD Never said you'd set syslog to write to an HDD-backed share, that's the last thing you'd want... cache-only/prefer share of course. Quote Link to comment
Frank1940 Posted November 19, 2023 Share Posted November 19, 2023 Request from OP: 23 hours ago, couzin2000 said: So how do I send the syslog to the USB key so that I can remove it whenever I want and hard-read it from a different PC? Comment In Thread: 1 hour ago, Kilrah said: 6 hours ago, Frank1940 said: The big disadvantage to writing it a share is the possible delay in waiting to spin up a HD Never said you'd set syslog to write to an HDD-backed share, that's the last thing you'd want... cache-only/prefer share of course. @couzin2000, if you do as suggested (Even if you have to make a cache only share for the syslog) and export that share, you would be able to read it anytime when the server is running. (The syslog server opens and closes that file for each write.) The only time when it would not be available is if the server crashed. You have not indicated that you needed to be able to address that particular issue. By the way, I am assuming that you know that when the system restarts, the syslog server will be appending any new writes onto that file. So you do have to monitor it as it will continue to grow. (You don't want it get so large that finding something in it becomes a real issue in its self.) Quote Link to comment
Hoopster Posted November 20, 2023 Share Posted November 20, 2023 (edited) On 11/18/2023 at 4:24 PM, couzin2000 said: So how do I send the syslog to the USB key so that I can remove it whenever I want and hard-read it from a different PC? I followed this procedure to send the syslog to a USB flash drive mounted as an unassigned device. Edited November 22, 2023 by Hoopster 1 Quote Link to comment
couzin2000 Posted November 21, 2023 Author Share Posted November 21, 2023 On 11/19/2023 at 6:37 PM, Frank1940 said: Request from OP: Comment In Thread: @couzin2000, if you do as suggested (Even if you have to make a cache only share for the syslog) and export that share, you would be able to read it anytime when the server is running. (The syslog server opens and closes that file for each write.) The only time when it would not be available is if the server crashed. You have not indicated that you needed to be able to address that particular issue. By the way, I am assuming that you know that when the system restarts, the syslog server will be appending any new writes onto that file. So you do have to monitor it as it will continue to grow. (You don't want it get so large that finding something in it becomes a real issue in its self.) The only disadvantage I can see is not being able to boot after a critical failure, therefore having to use the backup from the boot device without seeing what can be at fault in the log. This is why I'd rather have the log be removeable and readable elsewhere. Quote Link to comment
Frank1940 Posted November 21, 2023 Share Posted November 21, 2023 (edited) On 11/19/2023 at 11:58 PM, Hoopster said: I do this to send the syslog to a USB flash drive mounted as an unassigned device. this = https://forums.unraid.net/topic/104938-syslog-to-ntfs-kingston-card-reader-unassigned-device/ @couzin2000, did you try the method suggested by @Hoopster. It seems to meet all of your requirements... Edited November 21, 2023 by Frank1940 Quote Link to comment
Hoopster Posted November 22, 2023 Share Posted November 22, 2023 21 hours ago, Frank1940 said: this = https://forums.unraid.net/topic/104938-syslog-to-ntfs-kingston-card-reader-unassigned-device/ @couzin2000, did you try the method suggested by @Hoopster. It seems to meet all of your requirements... I updated the post a bit to hopefully make it more clear there was a link in it. I can see how that would be missed. 1 1 Quote Link to comment
couzin2000 Posted November 22, 2023 Author Share Posted November 22, 2023 44 minutes ago, Hoopster said: I updated the post a bit to hopefully make it more clear there was a link in it. I can see how that would be missed. I just had a chance to skim the surface of your post, but it looks like it would work for sure. I'll test this later today and report back. Thank you!! Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.