Finding RSS Subscriber Counts Through Apache Logs Пошук RSS Абонент графів через Apache Logs
If you've declined to use a service like FeedBurner to handle your RSS feeds, you might wonder how many subscribers you actually have. Якщо ви відмовилися використовувати сервіс FeedBurner, як обробляти ваш RSS-канали, можна задатися питанням, скільки абонентів у вас дійсно є. This also works well for finding subscriber counts to specific categories or comment posts on your site, which you typically wouldn't run through FeedBurner. Це також добре працює для знаходження абонент розраховує на конкретні категорії посад чи коментар на вашому сайті, які ви зазвичай не буде проходити через FeedBurner.
It turns out that most of the bigger feed readers like Google Reader and Netvibes will actually show you the count during the request for your feed. Виявляється, що більшість з великих годувати читачів, як Google Reader та Netvibes дійсно показати вам кол-во час запиту на ваш канал. All you have to do is take a peek inside your access log files. Все, що вам потрібно зробити, це заглянути всередину ваш доступ до файлів журналу.
First you'll need to locate your apache logfile, which is normally called access_log or access.log. Спочатку вам потрібно знайти вашу Apache лог, який зазвичай називається access_log або access.log. The location for this file will vary greatly based on distribution and your hosting provider. Місце для цього файлу буде сильно розрізняються на основі розподілу і ваш хостинг-провайдера. Here's a couple of places to start, but you might have to look around. Ось декілька місць, для початку, але вам доведеться озирнутися.
Ubuntu default: Ubuntu за замовчуванням:
/var/log/apache2/access.log / Var/log/apache2/access.log
MediaTemple DV default: MediaTemple Д.В. за замовчуванням:
/var/www/vhosts/<hostname>/statistics/logs/access_log / VAR / WWW / Vhosts / <hostname> / Статистика / Журнали / access_log
Dreamhost default: Dreamhost за замовчуванням:
~/logs/<hostname>/http/access.log ~ / Журнали / <hostname> / HTTP / access.log
Now that you've found the logfile, it's a simple matter of running it through grep for the keyword “subscribers”, which most of the feed readers use to show the subscriber count. Тепер, коли ви знайшли логи, це просто питання керувати ним через Grep по ключовому слову "Абоненти", який більшість з каналу читачам використовувати, щоб показати кількість абонентів. You could just use the simplest command: Ви можете просто використовувати прості команди:
grep -i subscribers access_log Grep-я абонентам access_log
Or, if you wanted to find the subscribers for a particular feed, you could run it through a second grep to restrict to just that rss feed. Або, якщо ви хочете знайти передплатників на певний канал, ви можете запустити його через другу Grep обмежитися тільки що RSS-каналу.
grep -i subscribers access_log | grep -i '/howtogeek/feed/' Grep-я абонентам access_log | Grep-я '/ howtogeek / корми /'
Here's an example of what that brings back on Ось приклад того, що приносить тому на my personal blog мій особистий блог (which I should really update more) (які я повинна дійсно більш оновлена)
209.85.238.9 – - [28/Aug/2007:06:08:23 -0700] “GET /howtogeek/feed/ HTTP/1.1″ 302 572 “-” “Feedfetcher-Google; (+http://www.google.com/feedfetcher.html; 52 subscribers ; feed-id=13671896334760112923)” 209.85.238.9 - - [28/Aug/2007: 06:08:23 -0700] "GET / howtogeek / корми / HTTP/1.1" 302 572 "-" "Feedfetcher-Google; (+ http://www.google . com / feedfetcher.html; 52 абонентів; Feed-ID = 13671896334760112923) "
193.189.143.237 – - [28/Aug/2007:06:12:32 -0700] “GET /howtogeek/feed/ HTTP/1.0″ 302 535 “-” “Netvibes (http://www.netvibes.com/; 2 subscribers )” 193.189.143.237 - - [28/Aug/2007: 06:12:32 -0700] "GET / howtogeek / корми / HTTP/1.0" 302 535 "-" "Netvibes (http://www.netvibes.com/; 2 абонентів) "
64.78.155.100 – - [28/Aug/2007:06:14:40 -0700] “GET /howtogeek/feed/ HTTP/1.1″ 302 535 “-” “NewsGatorOnline/2.0 (http://www.newsgator.com; 2 subscribers )” 64.78.155.100 - - [28/Aug/2007: 06:14:40 -0700] "GET / howtogeek / корми / HTTP/1.1" 302 535 "-" "NewsGatorOnline/2.0 (http://www.newsgator.com ; 2 абонентів) "
Note the bolded text that shows I have all of 56 subscribers from those three online feed readers. Зверніть увагу на текст жирним, що показує, що я все з 56 абонентів з цих трьох читачів онлайн канал. Mysticgeek Mysticgeek has a lot more from Google alone: має набагато більше від Google поодинці:
209.85.238.9 – - [28/Aug/2007:05:57:25 -0700] “GET /mysticgeek/feed/ HTTP/1.1″ 302 568 “-” “Feedfetcher-Google; (+http://www.google.com/feedfetcher.html; 111 subscribers ; feed-id=5433036316661303107)” 209.85.238.9 - - [28/Aug/2007: 05:57:25 -0700] "GET / mysticgeek / корми / HTTP/1.1" 302 568 "-" "Feedfetcher-Google; (+ http://www.google . com / feedfetcher.html; 111 абонентів; Feed-ID = 5433036316661303107) "
Perhaps I should take a cue from him and start updating my personal blog… but then I would have less time for writing articles. Можливо, мені варто взяти приклад з нього і почати оновлення моєму особистому блозі ... але тоді я б менше часу для написання статей.

Daily Email Updates Email Щоденні оновлення
You can get our how-to articles in your inbox each day for free. Ви можете отримати наші довідкові статті у Вашу поштову скриньку щодня безкоштовно. Just enter your name and email below: Просто введіть ваші ім'я та адресу електронної пошти нижче:



Nice tip! Nice чайові! I found a command line to Я знайшов командного рядка print nicely how many users are subscribing with Google Reader друк красиво, скільки користувачів передплатою з Google Reader (in Portuguese). (португальською). I wrote a more generic script: Я написав більш загальний сценарій:
awk '/subscriber/ {print $12,$14,$7}' my_log | \ AWK '/ абонент / (PRINT $ 12, $ 14, $ 7)' my_log | \
sort -nr | uniq | \ Сортувати-Nr | Uniq | \
cut -c 2- | tr ' ' '\t' Cut-C 2 - | TR'' '\ T'
That's an awesome script… really nice tool. Це Awesome сценарію ... дійсно гарний інструмент.
How i could do this if don't have shell access to my domain? Як я міг це зробити, якщо не мають доступ до оболонки на мій домен?
@Leonardo @ Леонардо
Great script! Великий сценарій!
A better way to do this is FeedBurner. Кращий спосіб зробити це полягає у FeedBurner. But if you are using the feedburner service, you will not be able to do get the data from the server log. Але якщо ви використовуєте FeedBurner послугу, ви не зможете зробити отримати дані з сервера журналу.
@Barbara: I don't have shell access either. @ Barbara: я не маю доступ до оболонки небудь. From time to time, I download the log file and run the script on my own machine. Час від часу я завантажити лог-файл і запустити скрипт на моєму власному комп'ютері.
Terrific post. Потрясающе пост. Do you have a particular web log analyzer that you like to use, one that will specifically allow this type of search? У вас є аналізатор веб-лог, що ви хочете використовувати, яка буде спеціально дозволити цього виду пошуку? Thanks for any help you can provide. Спасибо за будь-яку допомогу ви можете надати.