Capturing MSN bot entries from Apache Web log file

Q

How to capture the MSN (Microsoft Network) bot entries from Web log file?

Here are some Web log file entries:

✍: Guest

A

MSN Bot is a web crawler from Microsoft that obtains content for the Bing Search engine. MSN Bot uses the following user agent string:

msnbot-media/1.1 (+http://search.msn.com/msnbot.htm)

The regular expression to capture MSN Bot entries from Apache Web log file can be written as: with the multiple lines modifier "m" specified:

Click the button to test this regular expression here online:

2013-02-04, 0👍, 0💬