Slashdot Mirror


Secure Syslog Replacement Proposed

LinuxScribe writes with this bit from IT World: "In an effort to foil crackers' attempts to cover their tracks by altering text-based syslogs, and improve the syslog process as a whole, developers Lennart Poettering and Kay Sievers are proposing a new tool called The Journal. Using key/value pairs in a binary format, The Journal is already stirring up a lot of objections." Log entries are "cryptographically hashed along with the hash of the previous entry in the file" resulting in a verifiable chain of entries. This is being done as an extension to systemd (git branch). The design doesn't just make logging more secure, but introduces a number of overdue improvements to the logging process. It's even compatible with the standard syslog interface allowing it to either coexist with or replace the usual syslog daemon with minimal disruption.

64 of 248 comments (clear)

  1. I don't know... by ksd1337 · · Score: 4, Informative

    Text is damn convenient to use. How are you gonna grep a binary file?

    1. Re:I don't know... by Anonymous Coward · · Score: 5, Informative

      journalgrep -e "Nov 0[1234]-[0-9][0-9]-2011" | less

    2. Re:I don't know... by iluvcapra · · Score: 5, Insightful

      Witness the deeply-ingrained UNIX Philosophy thing where if you can't use grep(1), it naturally follows that the thing is impossible to search.

      You can't grep a Berkeley DB, yet for some reason you can find stuff in it, too.

      --
      Don't blame me, I voted for Baltar.
    3. Re:I don't know... by Anonymous Coward · · Score: 4, Funny
      You can't grep a Berkeley DB, yet for some reason you can find stuff in it, too.

      strings berkeley.db | grep "data"

      Enjoy,

    4. Re:I don't know... by quanticle · · Score: 5, Insightful

      The problem isn't searching in the ordinary case. The problem is searching in the failure case. I can grep a truncated, mangled text file. If I truncate and mangle your BerkeleyDB can you still search it?

      --
      We all know what to do, but we don't know how to get re-elected once we have done it
    5. Re:I don't know... by TheRaven64 · · Score: 5, Insightful

      Grep is just one example. Grep lets me search any text file. Tail -f lets me watch anything that's added to it. Wc -l lets me enumerate the entries in it. Awk lets me extract elements from it. There are lots of other standard UNIX utilities for manipulating text files. If you are replacing a text file with a binary file then you need to provide equivalent functionality to all of these. If this file is one that is important for system recovery, then you need to put all of these in the root partition, without significantly increasing its size. These are not insurmountable problems, but they are problems.

      --
      I am TheRaven on Soylent News
    6. Re:I don't know... by Jack9 · · Score: 2

      What makes you think you can't use text in parallel? The idea is to have a more secure audit-log, not to replace it and leave a gaping usability hole.

      --

      Often wrong but never in doubt.
      I am Jack9.
      Everyone knows me.
    7. Re:I don't know... by jedidiah · · Score: 2

      Surely it is.

      With things like Unity and Wayland and Upstart, we really shouldn't expect anything else.

      --
      A Pirate and a Puritan look the same on a balance sheet.
    8. Re:I don't know... by Superken7 · · Score: 2

      This is the first thing I thought too. But if I'm going to have many piped commands, why not add one more that cats the thing in text format? I can't think of a reason to why that would be inconvenient. My rotated syslog is gzipped and I can just zcat it, or even cat | gunzip - | whatever it. So the slight inconvenience *might* well be outweighed by the new benefits.

    9. Re:I don't know... by Unknown+Lamer · · Score: 2

      My argument in that case is that grep is insufficiently expressive for the modern world.

      The UNIX "everything is a file, and those files are all ^J delimited records" is a hack for a world when record based file systems were seen as overcomplicated (because, well, MULTICS style files were overcomplicated). It's time to move up.

      --

      HAL 7000, fewer features than the HAL 9000, but just as homicidal!
    10. Re:I don't know... by madbavarian · · Score: 2

      Not being able to grep the logs would suck. It would break every hack script I have for checking things in the logs.

      Furthermore, I'm not sure what problem the binary file with crypto signing would solve vs. just also logging to a secure log machine. Syslog already allows one to duplicate the logging to any number of off-machine syslog daemons.

      For figuring out how a breaking was done woudln't it be better to just log all IP traffic (say with "tcpdump -w ...") on a dedicated logging machine and perhaps have a pruning mechanism that trims any TCP stream to a few megabytes. That way large file transfers wouldn't fill up the logging disk unnecessarily. Add to that some off-machine logging built into sshd or perhaps the pty driver and one can get a pretty good picture of how any breakin was done.

    11. Re:I don't know... by pclminion · · Score: 5, Interesting

      If you are replacing a text file with a binary file then you need to provide equivalent functionality to all of these.

      No, I just need to provide a bin2txt program. The UNIX philosophy, I think you missed it. It's based on simple, self-contained, modular components, not some "everything is just text!" fantasy.

    12. Re:I don't know... by hedwards · · Score: 5, Insightful

      I disagree, the fact that such a model still works so well decades later is definitely evidence that they were doing something right. When it comes down to it, if you make everything a file then you don't have to worry about envisioning niche uses as most of them can be accomplished by chaining together several commands. The ones that don't are still not impossible as you can just throw together a Perl script or similar to manage them.

    13. Re:I don't know... by msclrhd · · Score: 3, Insightful

      With binary data, you have potential issues with the binary parser (e.g. has a hacker corrupted the log to trigger a buffer exploit in the binary-to-text program). Also, binary data is open to endian issues and integer/pointer size issues. Not to mention versioning (trying to read logs written using a different version of journald that write an incompatible journal file). Likewise if you only have access to fragments of the log.

    14. Re:I don't know... by hedwards · · Score: 2

      Yes, but the reason we wouldn't do that is because if most things are human readable you can just manually do the edits your self if you need to. Otherwise it requires some sort of justification as other formats have been constantly changed over the decades to keep up with advancements.

      It's a distortion to suggest that the model doesn't work when clearly it does. The formats of some types of files and devices have changed, but the way they interact hasn't. Most of the time I spend fixing Windows is because MS thought itself clever enough to beat generations of programmers.

    15. Re:I don't know... by maxwell+demon · · Score: 4, Insightful

      Also, binary data is open to endian issues and integer/pointer size issues.

      You seem to mix up binary data with ad-hoc binary files. Any reasonable binary format has a well-defined and well-specified encoding, which includes sizes and endianness of numeric data. Just fwriting from your program variables directly into the file is not defining a proper binary format. Also note that pointers have no place in binary files at all.

      --
      The Tao of math: The numbers you can count are not the real numbers.
    16. Re:I don't know... by Anonymous Coward · · Score: 3, Insightful

      The more secure thing to do with logs is ship them to another host. This idea of signing log messages is ridiculous, because you will just have intruders signing their messages with the keys you thoughtfully provided.

      I suspect this is really just the preference of the systemd dudes.

    17. Re:I don't know... by MichaelSmith · · Score: 3, Insightful

      text can be altered - so can a binary file

      The articles points out that log records will be chained with hashes (like changesets in git and mercurial) so you can't just rewrite part of a log file. You would have to replace the whole chain, and an externally held checksum would pick that up.

    18. Re:I don't know... by Issarlk · · Score: 2

      What prevents the hacker from recreating the log file by replaying all of the log lines minus the one he wants to remove? Leaving a nice coherent log file on the disk with all of the entries chained to the next.

    19. Re:I don't know... by TheRaven64 · · Score: 2

      Your root partition maybe. What about the 16MB of flash on your router?

      --
      I am TheRaven on Soylent News
    20. Re:I don't know... by bjourne · · Score: 2

      It's a distortion to suggest that the model doesn't work when clearly it does. It sort of works (see all the issues mentoined already) -- that doesn't mean that it can't be improved upon, nor that this partiuclar idea is a bad one.

      It sort of does not work. All the greybeards tool stop working, or require arcane workarounds, as soon as you have a single fucking whitespace in the filename. The only reason why people does not find it excruciatingly annoying to write shell scripts is because such issues are ignored and only show up in subtle bugs years down the road when the original programmers already left.

    21. Re:I don't know... by makomk · · Score: 2

      Don't worry - soon Lennart's going to kill off the ability to have seperate root and /usr partitions anyway. After all, who really needs it?

    22. Re:I don't know... by makomk · · Score: 2

      From the official FAQ linked in the summary:

      My application needs traditional text log files on disk, can I configure journald to generate those?
      No, you can’t. If you need this, just run the journal side-by-side with a traditional syslog implementation like rsyslog which can generate this file for you.
      Why doesn’t the journal generate traditional log files?
      Well, for starters, traditional log files are not indexed, and many key operations very slow with a complexity of O(n). The native journal file format allows O(log(n)) complexity or better for all important operations. For more reasons, refer to the sections above.

      So yes, the idea is to totally replace plain-text logging and leave a gaping usability hole. The suggested workaround will only work until software starts using The Journal directly without going through syslog, which is I think the end plan since syslog presumably can't support all the neat extra functionality.

    23. Re:I don't know... by jnik · · Score: 3, Funny

      Hi kids!

  2. Unnecessary by Anonymous Coward · · Score: 2, Interesting

    The binary format part of this is unnecessary, at least as far as I (with limited low level programming experience) can tell. Other people have been suggesting methods which would mean you just need a cryptographic hash in each otherwise plain text line, in a standard manner. Still at least it has got a discussion started.

  3. Pointless -- there is already a secure solution by whoever57 · · Score: 5, Informative

    Set your machine to also log over a secure channel to another machine. Perhaps one that only accepts the syslog entries and no other connections. Problem solved.

    --
    The real "Libtards" are the Libertarians!
    1. Re:Pointless -- there is already a secure solution by Fallen+Kell · · Score: 3, Insightful

      How does that help a single stand-alone system that someone came in and rooted and then covered up their tracks? The purpose of these changes is to fix all the cases. Sure there are work arounds for some of the flaws, but that is just it, they are work arounds. This is a true fix.

      --
      We were all warned a long time ago that MS products sucked, remember the Magic 8 Ball said, "Outlook not so good"
    2. Re:Pointless -- there is already a secure solution by whoever57 · · Score: 5, Insightful

      How does that help a single stand-alone system that someone came in and rooted and then covered up their tracks?

      Does anyone really care about forensic analysis of single stand-alone systems? Do you think that the FBI will go after whoever broke into your home system? Just rebuild the OS and move on.


      This is a fix which breaks lots of other stuff. Today, I can open up my logfiles (even the compressed ones) with "vim -R ". The convenience of that will be lost and my analysis will be limited by the tools available to analyze the undocumented, binary logs. What about old log files after the binary format changes? There are so many issues with the proposal and precious few advantages.

      --
      The real "Libtards" are the Libertarians!
    3. Re:Pointless -- there is already a secure solution by TheRaven64 · · Score: 5, Insightful

      The way we used to solve that was to have the syslog output write to a dot-matrix (or other) line printer. Every line in the security logs is written to paper immediately. You can substitute anything that can record things written to RS-232 (cue the arduino fanboys) for the line printer.

      This doesn't seem to actually solve the problem - if the person can modify the file, they can modify the file. If the lines are hashed, they just get the plaintext ones, delete the last ones, modify them, and then replay the fake ones and generate a new sequence of hashes. This just means that you need more tools in your recovery filesystem for fault diagnosis.

      --
      I am TheRaven on Soylent News
    4. Re:Pointless -- there is already a secure solution by Vairon · · Score: 3, Insightful

      In your stand-alone system scenario what keeps a hacker from deleting those logs entirely or reading all the logs, removing the entries they don't want preserved, then writing them all back out, with a new hash-chain history?

    5. Re:Pointless -- there is already a secure solution by silas_moeckel · · Score: 4, Informative

      If you have rooted the system you can parse the file remove what ya want and resign/hash everything. If you want a standalone system to have secure logging you use something that's write once, Crypto signing adds nothing unless that signing is coming from a separate system and including an external variable like a use counter so you can detect the jump. This is a solution looking for a problem. When you have a syslog box accepting udp syslog as the only open port, you can find an exploit or flood out the port.

      You should be running something like splunk or octopussy to parse your syslog in real time generate alerts etc.

      --
      No sir I dont like it.
    6. Re:Pointless -- there is already a secure solution by rev0lt · · Score: 5, Informative

      That's why in BSD systems, you can mark a file as append-only, and with securelevel >=1 not even root can remove the flag

    7. Re:Pointless -- there is already a secure solution by alcourt · · Score: 2

      PCI not only accepts, but mandates central log storage. Recommendation is to do it using real time log transmission. Log tampering detection is expected on even the central system, where you use syslog to receive, and then store the central copy in something a bit fancier than a text file, often a database of some kind.

      Local to a system, there is no such thing as acceptable tamper resistant unless it is a write once/read many drive that is physically that way.

      Centralize the logs, and stop messing with my syslog. (This means you Red Hat)

      --
      "I may disagree with what you say, but I will defend unto the death your right to say it." -- Voltaire
    8. Re:Pointless -- there is already a secure solution by alcourt · · Score: 5, Informative

      In a well designed network, a compromise of a target system does not give one increased ability to compromise the log system, because there is no trust relationship, and the central log host does not even have the same user accounts. No user who has an account on the production system is permitted to have an account on the log system.

      This topic is basic PCI stuff, and common also for SOX compliance. The problems are far from complex.

      The so called solution does not provide sufficient security based on description to eliminate the requirement for central log storage, especially since that is an explicit requirement of PCI. Some may have that as an explicit SOX control as well. The obvious problem with the tool is it is only tamper detection, not tamper protection. Any fool with root can erase the evidence that they were the one logged in. It may be a tad harder to hide the fact that the logs were modified, but even that could be bypassed with the above description by simple virtue of rotating the log post-compromise and "losing" the entries in question.

      --
      "I may disagree with what you say, but I will defend unto the death your right to say it." -- Voltaire
    9. Re:Pointless -- there is already a secure solution by goarilla · · Score: 2

      What about log rotating ?

    10. Re:Pointless -- there is already a secure solution by whoever57 · · Score: 2

      I take it you don't gzip any of your logs.. That would make them binary logs, after all..

      So you don't see any difference between a well understood and well-supported format and an undocumented format that is subject to change?

      But, the root question with the new concept is: what's the benefit? I don't believe the logs can be made tamperproof against someone with root access, unless data is sent to another machine, or perhaps the data is stored through a pipe that is controlled by something like SELinux, which I don't see in the proposal.

      --
      The real "Libtards" are the Libertarians!
    11. Re:Pointless -- there is already a secure solution by rev0lt · · Score: 2

      How will you corrupt a file that can be only appended to? Even if you append garbage, you cannot change what has been commited already.

    12. Re:Pointless -- there is already a secure solution by rev0lt · · Score: 2

      That's why you have securelevels in BSD. Securelevels can limit some operations done by root. It is possible to configure your server in such a way that decreasing securelevels will require access to the machine (physical or kvm).Place the kernel with an immutable flag, and with the appropriate securelevel not even root can remove it.
      Of course there are ways around that, and there are ways to harden the system against the ways around that, but it is a nice feature to have - specially in the cases where you have all your services running inside jails, and not on the main host. If using ZFS (UFSv2 will allow you to do the same, but with a 32 snapshot limit or something like that) you can even schedule a periodic filesystem snapshot, that the root user inside the jail won't even be aware of, and have copies of the evolution of your logfiles.

  4. Overcomplicated by pclminion · · Score: 5, Funny

    Back in the late 90's when I first started connecting my home Linux systems to the Internet 24/7, I logged everything imaginable. To prevent tampering/falsification of the logs, I simply printed the log on a continuous-sheet dot matrix printer. Good luck tampering with the printout in my office.

    After a while I got to be able to recognize certain types of activity, such as a web user browsing to /index.html, based on the sounds the printer made.

    1. Re:Overcomplicated by Anonymous Coward · · Score: 5, Funny

      Did you ever get that OCD treated, or are you still suffering?

    2. Re:Overcomplicated by dickens · · Score: 4, Funny

      Yeah done that.. paper jams were a bitch, though.

      I remember even going to the trouble of cutting one of the leads in the RS-232 cable to make the logging printer a true write-only device.

    3. Re:Overcomplicated by pclminion · · Score: 4, Funny

      Did you ever get that OCD treated, or are you still suffering?

      That's right, every night I'd get into some cozy pajamas, maybe make a fire, cuppa tea, and sit back in a recliner for a stint of light reading. I tell you, last night's series of 404s by the guy who kept mistyping the URL to my "About Me" page were especially riveting.

    4. Re:Overcomplicated by davester666 · · Score: 2

      Really? You had a dot-matrix printer that was capable of reading what it had printed?

      --
      Sleep your way to a whiter smile...date a dentist!
    5. Re:Overcomplicated by Thing+1 · · Score: 5, Funny

      Yeah, and after a while you're like, "blonde, brunette, redhead"...

      --
      I feel fantastic, and I'm still alive.
  5. How? by Bert64 · · Score: 5, Insightful

    Log entries are "cryptographically hashed along with the hash of the previous entry in the file" resulting in a verifiable chain of entries.

    So this means that in order for someone malicious to modify a log entry, all they really need to do is then re-hash all subsequent entries?

    --
    http://spamdecoy.net - free throwaway anonymous email - avoid spam!
  6. Send your logs to a remote/central server by Nos. · · Score: 3, Insightful

    There is no real problem this solves. You are far better off logging remotely. This does not stop an attacker from hiding his tracks, you'll just know the logs were altered, but you won't know what was removed, or likely if/when you can start trusting them again. Log remotely, use encryption, and use TCP. You're central/remote logger is your trusted source for logs. You close everything except incoming logs. Parse and alert on the logs from there. Its simple to do, its real time, and solves a lot more issues than this type of solution ever will.

  7. Very simple text-based implementation by digitalderbs · · Score: 2
    Signing log messages does not need to be complicated or incompatible with current text-based logging. Hashing messages is incredibly easy to do, and there's really no reason not to do it. I just implemented this in python in less than two minutes.

    >>> from hashlib import md5
    >>> log = lambda last_message, message: "{}: {}".format( md5(last_message).hexdigest(), message)

    The output hashes the last message with the current message:

    8a023b9cbebe055e4b080585ccba3246: [ 19.609619] userif-2: sent link up event.
    649a2719064f7f276462464527b48a69: [ 29.680009] eth0: no IPv6 routers present

    No binaries, still grepable, single host and most importantly, there is now a trail that can be verified.

  8. Serious issues with this by anarcat · · Score: 5, Insightful

    Now, without getting into how much i dislike Pulseaudio (maybe because i'm an old UNIX fart, thank you very much), I think there are really serious issues with "The Journal", which I can summarize as such:

    1. the problem it's trying to fix is already fixed
    2. the problem isn't fixed by the solution
    2. it makes everything more opaque
    3. it makes the problem worse

    The first issue is that it is trying to fix a problem that is already easily solved with existing tools: just send your darn logs to an external machine already. Syslog has supported networked logging forever.

    Second, if you log on a machine and that machine gets compromised, I don't see how having checksums and a chained log will keep anyone from just running trashing the whole 'journal'.

    rm -rf /var/log

    What am i missing here?

    Third, this implements yet another obscure and opaque system that keeps the users away from how their system works, making everything available only through a special tool (the journal), which depends on another special tool (systemd), both of which are already controversial. I like grepping my logs. I understand http://logcheck.org and similar tools are not working very well, but that's because there isn't a common format for logging, which makes parsing hard and application dependent. From what I understand, this is not something The Journal is trying to address either. To take an example from their document:

    MESSAGE=User harald logged in
    MESSAGE_ID=422bc3d271414bc8bc9570f222f24a9
    _EXE=/lib/systemd/systemd-logind
    [... 14 lines of more stuff snipped]

    (Nevermind for a second the fact that to carry the same amount of information, syslog only needs one line (not 14), which makes things actually readable by humans.)

    The actual important bit here is "User harald logged in". But the thing we want to know is: is that a good thing or a bad thing? If it was "User harald login failed", would it be flagged as such? It's not in the current objectives, it seems, to improve the system in that direction. I would rather see a common agreement on syntax and keywords to use, and respect for the syslog levels (e.g. EMERG, ALERT, ..., INFO, DEBUG), than reinventing the wheel like this.

    Fourth, what happens when our happy cracker destroys those tools? This is a big problem for what they are actually trying to solve, especially since they do not intend to make the format standard, according to the design document (published on you-know-who, unfortunately). So you could end up in a situation where you can't parse those logs because the machine that generated them is gone, and you would need to track down exactly which version of the software generated it. Good luck with that.

    I'll pass. Again.

    --
    Semantics is the gravity of abstraction
    1. Re:Serious issues with this by jbov · · Score: 4, Informative
      I can mostly agree with you. There is one thing you might be missing.

      Second, if you log on a machine and that machine gets compromised, I don't see how having checksums and a chained log will keep anyone from just running trashing the whole 'journal'.
      rm -rf /var/log
      What am i missing here?

      Fourth, what happens when our happy cracker destroys those tools?

      I think what you are missing is this replacement is intended to prevent "undetected" tampering with the logs. Currently, a cracker can delete the log entries that would identify his or her activities on the machine, thereby going unnoticed. Deleting the log files or destroying the tools, as you suggested, would certainly be a detectable sign that the machine was compromised.

    2. Re:Serious issues with this by AmbushBug · · Score: 2

      First issue: This is great if you have an external system to log to - if not, you're boned. This new logging system seems to cover both cases.

      Second issue: One of the big reasons for doing this is to be able to detect when the log has been altered to cover a crackers tracks. Obviously, a deleted log file is easily detected and a big indicator that your system has been compromised, so I'm not seeing your point here.

      Third issue: As has been stated above, you can log to both the Journal and good old text based log files. That way you can still use your existing tools on the text file while still being notified of log file alteration. I agree that a common format for log entries would be nice but may not be possible since not every application logs the same kind of data. Note also that this proposal allows for arbitrary key/value pairs so some standard conventions will probably come about after its been used for a while.

      Fourth issue: Not sure I understand what you are talking about here... Obviously, backward compatibility will have to be taken into account by the devs. You should be able to read the files on other machines if you backed up your encryption keys, etc. (you do backup that stuff right?). By reading the articles, it sounds like the devs have thought about these issues and/or they have already been raised by others. They seem to be fairly easy to deal with.

      I'm not necessarily on board with this proposed system either, but your issues seem like they've already been covered by the proposed design.

    3. Re:Serious issues with this by rnturn · · Score: 3, Insightful

      ``This is great if you have an external system to log to - if not, you're boned.''

      Seriously, how hard it is to set one of these up? Not very. How expensive is to do this? Not very. Are we going to toss out the current method of logging because of the folks who only have Linux running on a laptop and have that as their only computer?

      You certainly would not need a tremendously powerful PC to sit out on your network and do nothing but accept syslog messages from other systems.

      ``you can log to both the Journal and good old text based log files. That way you can still use your existing tools on the text file while still being notified of log file alteration''

      My understanding (someone correct me if I'm wrong on this) is that there will be only a single logging system, not one doing this Journal format and another for text logs. The text available from the Journal would have to come from a tool that uses certain new library calls to extract information from the Journal. Users would have to pipe the output of that, one supposes, into tools to search for error messages of interest. It's not terribly hard to use but...

      ``backward compatibility will have to be taken into account by the devs''

      Not necessarily. Several of the summaries I've read about this new logging system indicate the the format hasn't been agreed on and may change from time to time. And... there is no guarantee when they'll get around to documenting the format. Good grief! First we have to change all of our log file search scripts to use the new Journal dumping tool. Then the format changes so we have to modify our scripts again. And again, perhaps, whenever it suits Lennart. How nice!

      --
      CUR ALLOC 20195.....5804M
    4. Re:Serious issues with this by anarcat · · Score: 3, Insightful

      First issue: This is great if you have an external system to log to - if not, you're boned. This new logging system seems to cover both cases.

      No, it doesn't: it does not protect you if you do not log to a another server or at least backup the hashes somewhere else. You still need a secondary server.

      Second issue: One of the big reasons for doing this is to be able to detect when the log has been altered to cover a crackers tracks. Obviously, a deleted log file is easily detected and a big indicator that your system has been compromised, so I'm not seeing your point here.

      Well, I was making a rather broad stroke on that one. As I explained earlier, just like with git rebase you can certainly tamper with the logs without being detected, if you are root, so this doesn't cover that case unless (again) you use a secondary server.

      Third issue: As has been stated above, you can log to both the Journal and good old text based log files. That way you can still use your existing tools on the text file while still being notified of log file alteration. I agree that a common format for log entries would be nice but may not be possible since not every application logs the same kind of data. Note also that this proposal allows for arbitrary key/value pairs so some standard conventions will probably come about after its been used for a while.

      Somebody else answered to this, but yeah: if you're going to file to logfiles anyways, why bother with the journal?

      Fourth issue: Not sure I understand what you are talking about here... Obviously, backward compatibility will have to be taken into account by the devs. You should be able to read the files on other machines if you backed up your encryption keys, etc. (you do backup that stuff right?). By reading the articles, it sounds like the devs have thought about these issues and/or they have already been raised by others. They seem to be fairly easy to deal with.

      Backward compatibility doesn't seem to have been taken into account by the devs. It's in the FAQ:

      Will the journal file format be standardized? Where can I find an explanation of the on-disk data structures?
      At this point we have no intention to standardize the format and we take the liberty to alter it as we see fit. We might document the on-disk format eventually, but at this point we don’t want any other software to read, write or manipulate our journal files directly. The access is granted by a shared library and a command line tool. (But then again, it’s Free Software, so you can always read the source code!)

      I'm not necessarily on board with this proposed system either, but your issues seem like they've already been covered by the proposed design.

      I disagree with this analysis. :)

      --
      Semantics is the gravity of abstraction
    5. Re:Serious issues with this by harald · · Score: 2

      Wait a minute. I didn't log on to that system!

  9. I do (was: I don't know...) by Zero__Kelvin · · Score: 4, Insightful

    "It's even compatible with the standard syslog interface allowing it to either coexist with or replace the usual syslog daemon with minimal disruption.

    Your answer is right in the summary. I can use standard syslog in conjunction with it, and then have a process running in the background that notifies me if the integrity of the text file is violated, thereby getting the best of both worlds.

    --
    Guns don't kill people; Physics kills people! - John Lithgow as Dick Solomon on Third Rock From The Sun
  10. Absurd by Anonymous Coward · · Score: 5, Insightful

    From the FAQ:

    we have no intention to standardize the format and we take the liberty to alter it as we see fit. We might document the on-disk format eventually, but at this point we don’t want any other software to read, write or manipulate our journal files directly.

    Not only does it generate logfiles that are not human-readable, they're also in a format that in two years not even their own tool will be able to read. If it is still around in two years, which I doubt.

  11. Re:Half-Measure by marcosdumay · · Score: 2

    You can. If you rooted the machine, you have all the data that this daemon has. You can calculate anything it does, including enough hashs to falsify the logs.

  12. Re:Syslog on Windows by jbov · · Score: 2

    Oh you mean the terribly slow to open, slow to run, tree view application that must be loaded through the GUI? The one where you have to click on each event to view the details? What happens if you can't run this application? How do you access these logs from the Windows recovery console?

  13. Re:See: Integrity by ultramkancool · · Score: 2, Informative

    Your hashes don't have to match anything. This does not apply. You can just recreate the entire syslog database.

  14. GNOME 3 crack by David+Gerard · · Score: 4, Insightful

    This is on the same crack as the rest of GNOME 3. They've invented the Windows event log, well done! Now I hand you a trashed system, but you can read the disk. You look into /var/log/syslog ... no, you don't. "We might document the on-disk format eventually, but at this point we don’t want any other software to read, write or manipulate our journal files directly. The access is granted by a shared library and a command line tool."

    Speaking as a sysadmin, I shudder at this incredibly stupid idea. Are they even thinking of how to get something actually readable in disaster?

    --
    http://rocknerd.co.uk
  15. Serioulsy? by cdukes · · Score: 5, Insightful

    Is this a joke? Or is it someone just trying to push their ideology of what they think should be done to the rest of the world to make their idea a standard?

    Doing something like this would be a sure way for Linux to shoot itself in the foot. For evidence, one only needs to look as far as Microsoft who insists on doing it their special way and expecting everyone else to do what they deem as "good". The concept of syslog messages are that they are meant to be 'open' so disparate systems can read the data. How to you propose to integrate with large syslog reporting/analysis tools like LogZilla (http://www.logzilla.pro)?

    The authors are correct that a format needs to be written so that parsing is easier. But how is their solution any "easier"? Instead, there is a much more effective solution available known as CEE (http://cee.mitre.org/) that proposes to include fields in the text.

    > Syslog data is not authenticated.
    If you need that, then use TLS/certificates. when logging to a centralized host.

    >Syslog is only one of many logging systems on a Linux machine.
    Surely you're aware of syslog-ng and rsyslog.

    Access control to the syslogs is non-existent.
    > To locally stored logs? Maybe (if you don't chown them to root?)
    > But, if you are using syslog-ng or rsyslog and sending to a centralized host., then what is "local" to the system becomes irrelevant.

    Disk usage limits are only applied at fixed intervals, leaving systems vulnerable to DDoS attacks.
    > Again, a moot point if admins are doing it correctly by centralizing with tools like syslog-ng, rsyslog and LogZilla.

    >"For example, the recent, much discussed kernel.org intrusion involved log file manipulation which was only detected by chance."
    Oh, you mean they weren't managing their syslog properly so they got screwed and blamed their lack of management on the protocol itself. Ok, yeah, that makes sense.

    They also noted in their paper that " In a later version we plan to extend the journal minimally to support live remote logging, in both PUSH and PULL modes always using a local journal as buffer for a store-and-forward logic"
    I can't understand how this would be an afterthought. They are clearly thinking "locally" rather than globally. Plus, if it is to eventually be able to send, what format will it use? Text? Ok, now they are back to their original complaint.

    All of this really just makes me cringe. If RH/Fedora do this, there is no way for people that manage large system infrastructures to include those systems in their management. I am responsible for managing over 8,000 Cisco devices on top of several hundred linux systems. Am I supposed to log on to each linux server to get log information?

  16. jobs. by mevets · · Score: 5, Funny

    Attitudes like yours cost the industry jobs. It is best for if we store data away into increasingly inappropriate places so that lusers have to pay us to get their own data.

    Hell, going back to standard data formats and reusable tools would be the death of a thousand increasingly bizarre specialty languages alone.

    As a penance, you should rewrite diff in python to work on sqlite databases. That should set the industry back another few years.

  17. If only his had been done before... Oh, it has. by tlambert · · Score: 2

    If only his had been done before... Oh, it has. It's called "asl".

    http://opensource.apple.com/source/syslog/syslog-132/

    -- Terry

  18. Re:See: Integrity by alcourt · · Score: 2

    Expected rate of log messages from systems I monitor is low enough that ten seconds downtime of syslog wouldn't be noticed except for a few misbehaved systems. Temporary network disconnects, nothing interesting going on, etc. all makes logging faster than that cause an unacceptable volume of traffic. Yes, I could log all those hashes to a table with a mere two week retention instead of the full year required by PCI, but I don't think it would fly the way you intend.

    --
    "I may disagree with what you say, but I will defend unto the death your right to say it." -- Voltaire
  19. Dubious project... by Junta · · Score: 3, Insightful

    If we were to accept a binary format, then at least it shouldn't be from a group that says up front:

    At this point we have no intention to standardize the format and we take the liberty to alter it as we see fit. We might document the on-disk format eventually, but at this point we don’t want any other software to read, write or manipulate our journal files directly. ... we don’t want any other software to read, write or manipulate our journal files directly

    This is absolutely unacceptable for projects in *nix land intending to serve such a central role as logging.

    Reading the actual original document, I don't think it focuses so much on security. But to the extent it does, it's pretty pointless. They make noise about an authenticated chain of entries so you can't just modify the middle, *but* that provides no benefit as the attacker can then just rebuild the chain from that point forward. Their answer is to send it to some place that cannot be modified once transmitted. This is exactly the same as remote syslog policies, no additional security, but added complexity for no gain.

    Additionally, they *could* have a system with plaintext and a binary format in place and I recommend they change their minds to do so. The binary blob can contain offsets into a corresponding text file. Thus the good old unix way (which the systemd people seem intent on destroying) is preserved while at the same time get their enhancements.

    They *do* have some valid points. Syslog can't cope with binary data, it doesn't provide a good per-user logging facility, large text files are hard to search, and syslog has insufficient service/event type facilities making complex analysis a requirement in some scenarios. Even in a simplistic case, I have been left at a loss for 'what string *should* I grep for?' Many services ignore syslog because of it's limitations as pointed out in the artcile, making things that much more complicated.

    But at the exact same time they bemoan so many services doing different logging, they propose making yet another facility and recommend keeping rsyslog running because they aren't going to handle syslog messages. They tell people 'tough you have to use systemd' and 'tough you must use our logging'.

    They dismiss java-style namespace management due to variable width, which I think is just going *too* far to acheive theoretical performance gains. They get *very* defensive about UUIDs, and I accept when managed correctly they are unique, *but* it adds a layer of obfuscation unless you have a central coordinating master map of UUID to actual usable names. Uniqueness is an insufficient criteria. Have both worlds. An application submits a message with both a human-readable namespace *and* a UUID. If your logging facility already has the UUID, ignore the namespace. If your hash table does not have that UUID, store a mapping between the UUID and namespace. Then your tool has the added bonus of having a way to dump a quick list of currently observed message types to search by.

    --
    XML is like violence. If it doesn't solve the problem, use more.