Hot answers tagged

27

This is a funny trick for it with the basic grep command. It consists in using two filters: the one you want to apply and a dummy one that matches all the lines but produces no highlight. This dummy match can be either ^ (beginning of line) or $ (end of line). grep "^\|text" --color='always' file or grep -E "^|text" --color='always' file See an example: ...


8

Relatively good Splunk replacement: logstash with kibana. Obviously, setting it up is way more complicated than setting up Splunk, but it offers similar - but not as complete - feature set. First, your requirements: Easy installation: fail. Installing logstash and kibana requires multiple steps. No official rpm packages are available. I recently evaluated ...


7

Since you haven't specified that you want a premium or freeware(now discontinued), I would assume that you are open to both, so you can try Unlimited Call Log By Soft Relay. Features Saves and shows all call logs, not just the last 500 Saves and shows all SMS logs Store both Call and Text Message logs on any Android device Ultra-fast custom storage, ...


7

There's quite a useful/fun one for Apache called Logstalgia, it's an Apache access log visualization programme. It's not too feature-rich, but rather useful. Have a look here: https://github.com/acaudwell/Logstalgia and here: http://code.google.com/p/logstalgia/ Also, there's a tutorial by *NixCraft here: http://www.cyberciti.biz/open-source/use-logstalgia-...


7

I suggest GPS Logger for Android (on Google Play). It is free and open source. It can be set to log to a custom URL. This can be set to your own server, and can contain parameters for latitude/longitude, altitude, speed, accuracy etc. It can also contain a unique serial number for each Android device, so you can tell which phone is which. It also supports ...


6

You are looking for a pastebin web application. Most of them offer the same features: paste some content, select syntax highlighting (if any), select if it should be private/public, and when it should be deleted automatically (if at all). A popular service is pastebin.com, which, according to Wikipedia, exists since 2002. While there naturally can be no ...


5

The timeline project works pretty well for this - Its got an easy UI for creating events (I've shown the options that would work best for your needs already selected- add more events makes sense when you want to input more than one event at once), you can colour code them by setting categories. You can also add freeform data under descriptions, and these are ...


5

I made this C# Windows Form yesterday. It uses a SQLite data source. The app is not finished because the export function is not there, however if you desire to see if you can use it, you can use it with http://sqliteadmin.orbmu2k.de/ to export the data. The SQLite DB file is called test.s3db located in the release.zip file. When you extract the zip files, ...


5

You can use Portmon: free Windows Sysinternals quality monitors and displays all serial and parallel port activity on a system filtering and search capabilities


5

You can use Eltima RS232 Data Logger: free Windows logs data from any serial port (virtual or real one)


5

You could use the grep -C flag which gives n lines of context, e.g. grep -C 3 will print the 3 lines before and after the match. There are also -B and -A for before and after. If you are looking to highlight given strings regularly, e.g. specific log formats it might be worth using python pygmentize with a custom lexer, since it is regex based you will be ...


4

I have not used it myself (I've not that many calls making it worth looking for such an app), but it looks like Spy Call Logs is exactly what you're looking for. It works locally on the device (so no "backup to PC/cloud"), ans seems to have no limit concerning number of records. From its description: It is very useful application when you want to record ...


4

I've written a little script that will color whatever string you give it: #!/usr/bin/env perl use Getopt::Std; use strict; use Term::ANSIColor; my %opts; getopts('hic:l:',\%opts); if ($opts{h}){ print<<EoF; Use -l to specify the pattern(s) to highlight. To specify more than one pattern use commas. -l : A Perl regular expression to be ...


4

I'm a fan of hhighlighter by Paolo Antinori. https://github.com/paoloantinori/hhighlighter A plus side to this command is that it can highlight up to 10 words with unique colors. Simply pipe the output of a command to h with the words to highlight. E.g. tail -f /var/log/somelog.log | h "ERROR" will produce: Some examples from his site:


4

You might be able to use: https://www.digitalocean.com/community/tutorials/how-to-install-elasticsearch-logstash-and-kibana-elk-stack-on-ubuntu-14-04 Logstash forwards the logs to the central logging server. Also, rsyslog can be configured to forward to a central store, and cache logs locally with the following config setting: $WorkDirectory /rsyslog/work ...


4

You might want to log to SQLite databases instead of plain text files for the following reasons: SQLite is part of the python standard runtime library. Thus, databases can be created, filled and maintained very easily binary distribution consists of a single (scriptable) commandline executable, the sqlite shell, which can be used to easily query the logs ...


3

You can put the chat-log in /tmp/chat.log and parse it with sed on the bash console: COLOR=32 COLOR2=31 cat /tmp/chat.log \ | sed 's/ \([[:alpha:][:digit:][:space:]@\.]*\)\!/ \x1b['${COLOR}'m\1\x1b[0m!~/1' \ | sed 's/!~.*: /\x1b['${COLOR2}'m: \x1b[0m/' Source for colorisazion: colourize the first part of each line


3

I use ccze to colorize my logs, not chatlogs though. I'm uncertain if there is a plugin for chats already present (counldn't find one at first search) but you can write your own, which shouldn't be too hard. ccze is used together with other tools on the commandline, e.G. cat like this: cat myLogFromYesterday | ccze -A It will print out a colorized log on ...


3

I wrote a little script to make live logs (heroku logs -t) sorted. http://pastebin.com/8Lby3bMg You can run with: heroku logs -t | python delayed_sort.py If you want to keep the coloring: script -q -c "heroku logs -t" -a /dev/null | python delayed_sort.py The script simply holds a buffer of the last 100 log lines. When the buffer gets full the line ...


3

You could try this: heroku logs > heroku.txt sort -n -t\ -k1 heroku.txt The -n is sorting numbers in order, -t\ bit is using a space as a separator, -k1 is using column one (the timestamp). Without putting the logs in a separate file I assume you could use: heroku logs | sort -n -t\ -k1 Similarly, to sort in reverse order (-nr): heroku logs | sort ...


3

Process Lasso has options to log processes that have been launched, and statistics on process duration and average CPU use when they exit, but it doesn't have ability to email the log or log the memory consumption. You could share the log folder over dropbox so you would have access to log.


3

I wrote a program to do this some time ago. I call it cgrep (for color grep). You can download it by copying the code section from here into an empty file: http://wiki.tcl.tk/38096 Then make the file executable and copy it to one of your regular bin directories. It's written in tcl so you need tcl installed (8.5 and above). But most linux distros would ...


3

The easiest way looks like this, I think: tail -f logfile.log | grep -e 'error' -e '**' No need to install anything.


3

Windows Sysinternals provides a tool called Process Monitor. The name is unfortunate because it is often confused with "Process Explorer". However, it has the features you've requested including filtering and logging.


3

Open Source Alternatives Graylog2 Logstash Kibana Do update the question with comments as to which one you end up using and your personal comments Following two articles discusses the same question http://www.infoworld.com/article/2610524/log-analysis/splunk-feels-the-heat-from-stronger--cheaper-open-source-rivals.html http://www.slant.co/topics/326/~...


3

Here are a few options for you to consider. I can't really vouch for them myself because what I use is not header-only (i.e. I haven't used them): EasyLogging: "Single header only, extremely light-weight high performance logging library for C++11 (or higher) applications." Earlier versions support C++98. Proggit: "A simple, header-only, MIT-licensed, C++ ...


3

Mousotron (free) might be suitable: Mousotron is a mouse and keyboard activity monitor and keeps statistics of your mileage. It's like an odometer or tripometer for your mouse cursor. It calculates just how far your mouse cursor has traveled on your screen and how many times the mouse buttons were clicked. Also the number of keystrokes on your keyboard ...


3

Though the output is not exactly as tail -f, the multitail command, available in the package of the same name in several distributions, does quite well. The example multitail --retry -i abc.log -q 5 'mydir/*.log' will retry an open on the first file, and every 5 seconds will test for new files matching the glob pattern, and tail -f them, showing each ...


3

I'm very excited about TimescaleDB, which is an extension to Postgres that creates hyper tables that handle all the time series partitioning magic and supposedly bring huge scale to write throughput. We're going to try a POC with this: https://www.timescale.com Here are some relevant links to frame the discussion of "Can relational databases be used for ...


Only top voted, non community-wiki answers of a minimum length are eligible