Tagged Questions

The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
2answers
90 views

Having difficulty getting multi-line Powershell regex to work - no matches

I referred to several examples I was able to search, which seemed highly pertinent, but am still unable to get this to work. My input looks like this, from a dhcp server stats command, and I've ...
3
votes
3answers
248 views

How do I grep through binary files that look like text?

I have binary files that should be text (they're exported logs), but I can't open it with less (it looks ugly - it looks like a binary file). I found that I could open it with vi and I can cat it ...
0
votes
1answer
136 views

Bash getops: allow, but not require arg

I'm writing a bash script, parsing options with getopts like this: #!/bin/bash while getopts ab: ; do case $opt in a) AOPT=1 ;; b) BOPT=$OPTARG ...
0
votes
0answers
33 views

Obtain Bacula status in parseable format

Is it possible to obtain the status of Bacula Director in some parseable format? It looks like the human-readable representation (one you can see when using bacula-console) is formed on the director ...
2
votes
5answers
205 views

Check availability of my websites

How can I check the availability of websites from hosted by company? Ping the server and checking if the services for IIS or Apache/Tomcat is not enough. I want to see if the sites are responsive, if ...
3
votes
2answers
453 views

Ways to parse NCSA combined based log files

I've done a bit of site: searching with Google on Server Fault, Super User and Stack Overflow. I also checked non site specific results and and didn't really see a question like this, so here goes... ...
1
vote
1answer
242 views

Potential issues with tab delimited Logformat for apache 2.2x?

My employer has a CustomLog piped handler that reduces and preps the static web content machine access logs into a format that is kosher for being dumped into hadoop/hive. Unfortunately it hinges on ...
1
vote
2answers
905 views

Parse/Edit Apache conf files with Ruby?

I need to write some scripts to make changes to Apache conf files, namely to add/update VirtualHosts. I plan on doing this in Ruby. before I write my own, are there any scripts/rubygems which allow ...
4
votes
1answer
515 views

Parsing iometer results

How do your visualise your iometer results?
2
votes
4answers
936 views

Get list of user-agents from nginx log

I have nginx log file, and I want to find out market share for each major version of browsers. I am not interested in minor versions and operating systems. I would like to get something like this: ...
0
votes
2answers
254 views

Possible interface types that may show up in “ip addr show”?

Consider the output of a typical ip addr show on Linux: # ip addr show 1: lo: <LOOPBACK,UP,10000> mtu 16436 qdisc noqueue link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet ...
22
votes
10answers
15k views

Do you have any useful awk and grep scripts for parsing apache logs?

I can use log analyzers, but often I need to parse recent web logs to see what's happening at the moment. I sometimes do things like to figure out top 10 ips that request a certain file cat foo.log ...