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 Iskanje RSS Subscriber grofov Through Apache Dnevniki

If you've declined to use a service like FeedBurner to handle your RSS feeds, you might wonder how many subscribers you actually have. Če ste se zmanjšala za uporabo storitev, kot FeedBurner za obdelavo vaše RSS, boste morda sprašujem, koliko članov ste dejansko imajo. 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. To prav tako deluje tudi za iskanje naročnika šteje za posebne kategorije ali komentar objav na vaši strani, ki jih po navadi ne bi potekal prek 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. Izkazalo se je, da bo večina večjih bralcev krme, kot so Google Reader in Netvibes dejansko prikaže štetje v zahtevi za vaš vir. All you have to do is take a peek inside your access log files. Vse kar morate storiti je, si oglejte v vašem dostop do log datotek.

First you'll need to locate your apache logfile, which is normally called access_log or access.log. Najprej morate najti vaš apache logfile, ki se običajno imenuje access_log ali access.log. The location for this file will vary greatly based on distribution and your hosting provider. Mesto za te datoteke bo zelo razlikujejo in se nanašajo na distribucijo vašega ponudnika gostovanja. Here's a couple of places to start, but you might have to look around. Tukaj je nekaj krajev, za začetek, vendar boste morda morali pogledati naokoli.

Ubuntu default: Ubuntu default:

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

MediaTemple DV default: MediaTemple DV default:

/var/www/vhosts/<hostname>/statistics/logs/access_log / var / www / vhosts / <hostname> / statistika / dnevniki / access_log

Dreamhost default: Dreamhost default:

~/logs/<hostname>/http/access.log ~ / zapor / <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. Zdaj, ko sem ugotovila, logfile, to je preprosto stvar poteka prek grep za ključno besedo "naročniki", ki je večina bralcev krme uporabljajo za pokazati število naročnikov. You could just use the simplest command: Lahko bi šele raba najenostavnejši ukaz:

grep -i subscribers access_log grep-i naročnikov 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. Ali pa, če si hotel, da bi našli naročnikov za posebno krmo, lahko zaženete prek drugega grep, da omeji le na to rss feed.

grep -i subscribers access_log | grep -i '/howtogeek/feed/' grep-i naročnikom access_log | grep-i '/ howtogeek / krme / "

Here's an example of what that brings back on Tukaj je primer, kaj to prinaša nazaj my personal blog moj osebni blog (which I should really update more) (ki naj bi res update več)

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 / krma / HTTP/1.1" 302 572 "-" "Feedfetcher-Google; (+ http://www.google .com / feedfetcher.html, 52 članov, 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 / krma / HTTP/1.0" 302 535 "-" "Netvibes (http://www.netvibes.com/; 2 naročnikov) "
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 / krma / HTTP/1.1" 302 535 "-" "NewsGatorOnline/2.0 (http://www.newsgator.com ; 2 naročnikov) "

Note the bolded text that shows I have all of 56 subscribers from those three online feed readers. Opomba krepko besedilo, ki kaže, imam vseh 56 naročnikov iz teh treh bralcev online krmo. Mysticgeek Mysticgeek has a lot more from Google alone: je veliko več od Googla samega:

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 / krma / HTTP/1.1" 302 568 "-" "Feedfetcher-Google; (+ http://www.google .com / feedfetcher.html, 111 članov, 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. Morda bi vzamem palico od njega in začeti posodabljanje moji osebni blog ... ampak potem bi imeli manj časa za pisanje člankov.

This article was originally written on 08/29/07 Tagged with: Ta članek je bil prvotno napisan na 08/29/07 Tagged with: Linux Linux

Daily Email Updates Dnevni Email Updates

You can get our how-to articles in your inbox each day for free. Lahko dobite našo kako do člankov v vašo mapo »Prejeto vsak dan brezplačno. Just enter your name and email below: Preprosto vpišite vaše ime in e-pošto spodaj:


Name: Ime:
Email: E-pošta:

Comments (6) Komentarji (6)

  1. Leonardo Fontenelle Leonardo Fontenelle

    Nice tip! Nice tip! I found a command line to Našel sem ukazne vrstice print nicely how many users are subscribing with Google Reader print lepo, koliko uporabnikov prijavili v Google Reader (in Portuguese). (v portugalščini). I wrote a more generic script: Napisal sem več generičnih scenarij:

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

  2. The Geek Geek

    That's an awesome script… really nice tool. To je super scenarij ... res lepo orodje.

  3. Bárbara Bárbara

    How i could do this if don't have shell access to my domain? Kako bi jaz to narediti, če nimajo dostopa do lupine moji domeni?

  4. Binny VA Binny VA

    @Leonardo @ Leonardo
    Great script! Great scenarij!

    A better way to do this is FeedBurner. Boljši način za to je FeedBurner. But if you are using the feedburner service, you will not be able to do get the data from the server log. Toda, če uporabljate feedburner storitve, ne boste mogli storiti dobili podatke iz strežnika dnevnik.

  5. Leonardo Fontenelle Leonardo Fontenelle

    @Barbara: I don't have shell access either. @ Barbara: Nimam dostopa niti lupine. From time to time, I download the log file and run the script on my own machine. Od časa do časa, sem prenesete log datoteko in zaženete skript na lastno stroj.

  6. Barbara Weibel Barbara Weibel

    Terrific post. Odlično post. Do you have a particular web log analyzer that you like to use, one that will specifically allow this type of search? Ali imate posebno spletni dnevnik analizator, ki ga želite uporabljati, bo eden, ki bi omogočali to vrsto iskanja? Thanks for any help you can provide. Hvala za kakršno koli pomoč lahko zagotovijo.


Our Friends Naši prijatelji
Getting Started Getting Started


About How-To Geek O Kako naj Geek
What Is That Process? Kaj je to proces?
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.