Subscribe to How-To Geek Mag-subscribe sa Paano-Upang Geek

Important! This is an automatic machine translated page. If you can read english, you should Click Here to read the original English version of the article.

Finding RSS Subscriber Counts Through Apache Logs Paghahanap ng RSS Subscriber Ibinibilang pamamagitan ng 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. Kung ikaw ay tinanggihan na gumamit ng serbisyo tulad ng FeedBurner upang hawakan ang iyong mga RSS feed, maaari kang magtaka kung gaano karaming mga tagasuskribi ang tunay na mayroon. 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. Ito rin gumagana nang maayos para sa paghahanap ng bilang ng suskritor sa mga tiyak na kategorya o mga puna posts sa iyong site, na kung saan kayo kadalasan ay hindi tatakbo sa pamamagitan ng 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. Ito ay lumiliko out na ang karamihan ng mga mambabasa na mas malaki na feed na tulad ng Google Reader at Netvibes ay talagang ipakita sa iyo ang bilang ng oras ng kahilingan para sa iyong mga feed. All you have to do is take a peek inside your access log files. Lahat ng kailangan mong gawin ay kumuha ng isang silip sa loob ng iyong mga file access log.

First you'll need to locate your apache logfile, which is normally called access_log or access.log. Una kailangan mong hanapin ang Apache logfile, na kung saan ay karaniwang tinatawag na access_log o access.log. The location for this file will vary greatly based on distribution and your hosting provider. Ang lokasyon para sa file na ito ay lubhang nag-iiba batay sa pamamahagi at sa iyong hosting provider. Here's a couple of places to start, but you might have to look around. Narito ang isang pares ng mga lugar sa umpisa, ngunit maaari mong magtingin-tingin.

Ubuntu default: Ubuntu default na:

/var/log/apache2/access.log / var/log/apache2/access.log

MediaTemple DV default: MediaTemple DV default na:

/var/www/vhosts/<hostname>/statistics/logs/access_log / var / www / vhosts / <hostname> / statistics / log / access_log

Dreamhost default: Dreamhost default na:

~/logs/<hostname>/http/access.log ~ / 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. Ngayon na natagpuan ang logfile, ito ay isang simpleng bagay na tumatakbo ng mga ito sa pamamagitan ng grep para sa keyword na "mga tagasuskribi", na kung saan halos lahat ng mga mambabasa ng feed gamitin upang ipakita ang subscriber count. You could just use the simplest command: Maaari mo lamang gamitin ang pinakasimpleng utos:

grep -i subscribers access_log grep-i mga tagasuskribi 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. O, kung ikaw ay wanted upang mahanap ang mga tagasuskribi para sa isang partikular feed, maaari mong patakbuhin ito sa pamamagitan ng isang ikalawang grep upang rendahan sa makatarungan na ang rss feed.

grep -i subscribers access_log | grep -i '/howtogeek/feed/' grep-i mga tagasuskribi access_log | grep-i '/ howtogeek / feed /'

Here's an example of what that brings back on Narito ang isang halimbawa ng kung ano na ang magbibigay sa likod my personal blog ang aking personal na blog (which I should really update more) (na dapat ko talagang i-update ang 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 / feed / HTTP/1.1" 302 572 "-" "Feedfetcher-Google; (+ http://www.google .com / feedfetcher.html; 52 mga tagasuskribi; 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 / feed / HTTP/1.0" 302 535 "-" "Netvibes (http://www.netvibes.com/; 2 mga tagasuskribi) "
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 / feed / HTTP/1.1" 302 535 "-" "NewsGatorOnline/2.0 (http://www.newsgator.com ; 2 mga tagasuskribi) "

Note the bolded text that shows I have all of 56 subscribers from those three online feed readers. Tandaan ang mga bolded text na nagpapakita na ang lahat ng 56 mga tagasuskribi mula sa mga mambabasa ng tatlong online feed. Mysticgeek Mysticgeek has a lot more from Google alone: ay may isang pulutong more mula sa Google na nag-iisa:

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 / feed / HTTP/1.1" 302 568 "-" "Feedfetcher-Google; (+ http://www.google .com / feedfetcher.html; 111 mga tagasuskribi; 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. Siguro kailangan kong kumuha ng hudyat mula sa kanya at simulan ang pag-update ng aking personal blog ... ngunit pagkatapos Gusto ko magkaroon ng mas kaunting oras para sa pagsulat ng mga artikulo.

This article was originally written on 08/29/07 Tagged with: Ang artikulong ito ay orihinal na isinulat sa 08/29/07 Tagged with: Linux Linux

Daily Email Updates Araw-araw na Updates Email

You can get our how-to articles in your inbox each day for free. Maaari kang makakuha ng aming kung-paano na mga artikulo sa iyong inbox sa bawat araw para sa libre. Just enter your name and email below: Ilagay lamang ang inyong pangalan at email sa ibaba:


Name: Pangalan:
Email: Email:

Comments (6) Comments (6)

  1. Leonardo Fontenelle Leonardo Fontenelle

    Nice tip! Nice tip! I found a command line to Natagpuan ko ang isang command na linya sa print nicely how many users are subscribing with Google Reader i-print ng mabuti kung gaano karami ang mga user ay subscribe sa Google Reader (in Portuguese). (sa Portuges). I wrote a more generic script: Ako wrote sa isang mas pangkaraniwang script:

    awk '/subscriber/ {print $12,$14,$7}' my_log | \ awk '/ subscriber / (print $ 12, $ 14, $ 7)' my_log | \
    sort -nr | uniq | \ sort-nr | uniq | \
    cut -c 2- | tr ' ' '\t' hiwa-c 2 - | tr '' '\ t'

  2. The Geek Ang Geek

    That's an awesome script… really nice tool. Iyan ay isang awesome script ... talagang nice kasangkapan.

  3. Bárbara Barbara

    How i could do this if don't have shell access to my domain? Paano ako maaaring gawin ito kung hindi ay may shell ng access sa aking domain?

  4. Binny VA Binny VA

    @Leonardo @ Leonardo
    Great script! Great script!

    A better way to do this is FeedBurner. Ang isang mas mahusay na paraan upang gawin ito ay ang FeedBurner. But if you are using the feedburner service, you will not be able to do get the data from the server log. Subalit kung ikaw ay gumagamit ng mga serbisyo ng FeedBurner, hindi mo magagawang nakuha ang mga data mula sa mga mag-log server.

  5. Leonardo Fontenelle Leonardo Fontenelle

    @Barbara: I don't have shell access either. @ Barbara: wala akong shell access alinman. From time to time, I download the log file and run the script on my own machine. Mula sa oras-oras, ako i-download ang log file at patakbuhin ang script sa aking sariling mga makina.

  6. Barbara Weibel Barbara Weibel

    Terrific post. Napakalakas post. Do you have a particular web log analyzer that you like to use, one that will specifically allow this type of search? Mayroon ka ng isang partikular na web log analyzer na gusto mong gamitin, ang isa na ito ay partikular na payagan ang ganitong uri ng paghahanap? Thanks for any help you can provide. Salamat para sa anumang tulong maaari kang magbigay.


Our Friends Ang aming mga Friends
Getting Started Pagsisimula


About How-To Geek Tungkol sa Paano-Upang Geek
What Is That Process? Ano ba ang Proseso Iyon?
svchost.exe svchost.exe
jusched.exe jusched.exe
dwm.exe dwm.exe
ctfmon.exe ctfmon.exe
wmpnetwk.exe wmpnetwk.exe
wmpnscfg.exe wmpnscfg.exe
rundll32.exe rundll32.exe
wfcrun32.exe wfcrun32.exe
Ipoint.exe Ipoint.exe
Itype.exe Itype.exe
Wfica32.exe Wfica32.exe
Mobsync.exe Mobsync.exe
conhost.exe conhost.exe
Dpupdchk.exe Dpupdchk.exe Adobe_Updater.exe Adobe_Updater.exe

Copyright © 2006-2009 HowToGeek.com. Copyright © 2006-2009 HowToGeek.com. All Rights Reserved. All Rights Reserved.