Finding RSS Subscriber Counts Through Apache Logs Ieškoti RSS abonento Grafų Per Apache Įrašai
If you've declined to use a service like FeedBurner to handle your RSS feeds, you might wonder how many subscribers you actually have. Jei Jūs atsisakė naudoti kaip FeedBurner tarnyba tvarkyti RSS kanalus, galbūt įdomu, kiek prenumeratorių jūs iš tikrųjų turi. 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. Tai taip pat gerai dirba ieškant abonentų skaičių konkrečių kategorijų ar komentarą pranešimų jūsų svetainę, kuri jums paprastai nebūtų paleisti per 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. Paaiškėjo, kad dauguma daugiau informacijos santraukų skaitymo programų kaip "Google Reader ir Netvibes bus iš tikrųjų parodys skaičius per savo pašarų prašymu. All you have to do is take a peek inside your access log files. Viskas, ką jums reikia padaryti, tai priimti žvilgčioti į jūsų ryšys failus.
First you'll need to locate your apache logfile, which is normally called access_log or access.log. Pirmiausia jums reikės rasti savo Apache LOGFILE, kuris paprastai vadinamas access_ arba access.log. The location for this file will vary greatly based on distribution and your hosting provider. Šio failo vietą bus labai skiriasi remiantis paskirstymo ir jūsų paslaugų teikėju. Here's a couple of places to start, but you might have to look around. Štai pora vietų paleisti, tačiau jums gali tekti pažvelgti aplink.
Ubuntu default: Ubuntu pagal nutylėjimą:
/var/log/apache2/access.log / var/log/apache2/access.log
MediaTemple DV default: MediaTemple DV nutylėjimą:
/var/www/vhosts/<hostname>/statistics/logs/access_log / var / www / vhosts / <nazwa_hosta> / Statistika / logs / access_
Dreamhost default: Dreamhost nutylėjimą:
~/logs/<hostname>/http/access.log ~ / logs / <nazwa_hosta> / 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. Dabar, kai pastebėjome, LOGFILE, tai paprastas dalykas, ir ji veikia per grep už žodį "abonentus", kurie didžiąją dalį informacijos santraukų skaitymo programų naudojimas rodo, kad abonentas skaičių. You could just use the simplest command: Galima tiesiog naudoti paprasčiausias komandą:
grep -i subscribers access_log grep-i Prisijungę access_
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. Arba, jei norite rasti tam tikrą pašarų prenumeratoriai, galima paleisti per antrąjį grep riboti tik, kad į RSS kanalą.
grep -i subscribers access_log | grep -i '/howtogeek/feed/' grep-i Prisijungę access_ | grep-i "/ howtogeek / feed /"
Here's an example of what that brings back on Štai ką atneša atgal pavyzdys my personal blog Mano asmeninis dienoraštis (which I should really update more) (kurios aš tikrai turėtų atnaujinti daugiau)
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 prenumeratoriai, 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 prenumeratoriai)
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 prenumeratoriai)
Note the bolded text that shows I have all of 56 subscribers from those three online feed readers. Pastaba: paryškinti tekstą, kuris parodo, turiu visus 56 prenumeratoriai iš šių trijų internete informacijos santraukų skaitymo programų. Mysticgeek Mysticgeek has a lot more from Google alone: yra daug daugiau iš "Google" ramybėje
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 prenumeratoriai, 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. Galbūt aš turėtų Cue nuo jo ir pradėti atnaujinti savo asmeninį dienoraštį ... bet tuomet aš turiu mažiau laiko rašyti straipsnius.

Daily Email Updates Dienos paštas Atnaujinimai
You can get our how-to articles in your inbox each day for free. Galite gauti mūsų kaip prie straipsnių į Jūsų pašto dėžutę kasdien nemokamai. Just enter your name and email below: Tiesiog įveskite vardą ir elektroninio pašto adresą žemiau:



Nice tip! Nice tip! I found a command line to Radau komandų eilutę print nicely how many users are subscribing with Google Reader Spausdinti gražiai, kiek daug vartotojų yra pasirašo su Google Reader (in Portuguese). (portugalų kalba). I wrote a more generic script: Aš parašė bendresnio pobūdžio scenarijų:
awk '/subscriber/ {print $12,$14,$7}' my_log | \ awk '/ abonentas / (print $ 12, $ 14, $ 7)' my_log | \
sort -nr | uniq | \ sort-nr | Uniq | \
cut -c 2- | tr ' ' '\t' cut-C 2 - | TR "" "\ t '
That's an awesome script… really nice tool. That's awesome scenarijus ... tikrai gražus įrankis.
How i could do this if don't have shell access to my domain? Kaip aš galėčiau tai padaryti, jei neturite shell prieigą prie mano domeno?
@Leonardo @ Leonardo
Great script! Puikus scenarijų!
A better way to do this is FeedBurner. Geriausias būdas tai padaryti yra FeedBurner. But if you are using the feedburner service, you will not be able to do get the data from the server log. Bet jei jūs naudojate FeedBurner tarnyba, jūs negalėsite to padaryti gauti iš serverio žurnalo duomenis.
@Barbara: I don't have shell access either. @ Barbara: I don't have priėjimą prie shell arba. From time to time, I download the log file and run the script on my own machine. Laikas nuo laiko, atsisiųsti failą ir paleisti scenarijų į savo mašiną.
Terrific post. Siaubingas paštu. Do you have a particular web log analyzer that you like to use, one that will specifically allow this type of search? Ar turite ypatingą Web Log Analyzer kad norite naudoti vieną, kuris sudarytų sąlygas būtent šio tipo paieškos? Thanks for any help you can provide. Thanks for any help galite suteikti.