🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
10 messages
10 total messages Started by Damir Jurica Wed, 17 Jan 2001 11:54
logging postings
#49915
Author: Damir Jurica
Date: Wed, 17 Jan 2001 11:54
7 lines
1027 bytes
Im setting up news server with inn 2.3.0 and everything works ok so far.
Now I want to log all posts going from my server to outside world.
How can I do that?

TIA
Damir Jurica
Re: logging postings
#49922
Author: Russ Allbery
Date: Wed, 17 Jan 2001 12:59
12 lines
1229 bytes
Damir Jurica <djurica@damir.globalnet.hr> writes:

> Im setting up news server with inn 2.3.0 and everything works ok so far.
> Now I want to log all posts going from my server to outside world.  How
> can I do that?

Are you sure that ~news/log/news doesn't already contain all the
information that you need?  What do you mean by log?

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
Re: logging postings
#49919
Author: Damir Jurica
Date: Wed, 17 Jan 2001 13:56
17 lines
1645 bytes
In article <yly9waqqpn.fsf@windlord.stanford.edu>, Russ Allbery wrote:
>Damir Jurica <djurica@damir.globalnet.hr> writes:
>
>> Im setting up news server with inn 2.3.0 and everything works ok so far.
>> Now I want to log all posts going from my server to outside world.  How
>> can I do that?
>
>Are you sure that ~news/log/news doesn't already contain all the
>information that you need?  What do you mean by log?
>
>-- 
>Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

I mean that i want to log contents of articles posted from my host.

Damir
Re: logging postings
#49920
Author: Frank Slootweg
Date: Wed, 17 Jan 2001 14:04
32 lines
1830 bytes
  There are probably several methods, but this is what I do:

  I have a 'dummy' entry in newsfeeds:

check_on_remote/my.peer.com\
	:!*,alt.*,comp.*,news.*,rec.*\
	/!local\
	:Tf,Wfb:check_on_remote

  Where the list of newsgroup patterns is the same as for my regular
feed (my.peer.com).
  
  The real work is done by a (crontab(1) invoked) script which processes
out.going/check_on_remote. out.going/check_on_remote contains lines like

/usr/spool/news/rec/travel/australia+nz/17905 1026

i.e. the full pathnames and sizes of 'my' outgoing articles. The script
can do anything with this information, i.e. it can for example log the
articles to a file, which is what (I think) you want.

  I hope this helps.

Damir Jurica <djurica@damir.globalnet.hr> wrote:
> Im setting up news server with inn 2.3.0 and everything works ok so far.
> Now I want to log all posts going from my server to outside world.
> How can I do that?
> 
> TIA
> Damir Jurica
Re: logging postings
#49923
Author: Frank Slootweg
Date: Wed, 17 Jan 2001 14:26
46 lines
2762 bytes
  OOPS. I forgot. After you processed the out.going/... file, you need
to remove the processed entries, but at the same time new entries may be
coming in. For this, I use a script called makebatch, but I do not know
where that script originates from. It does not seem to be part of the
normal INN distribution. makebatch uses shlock(1) and "ctlinnd -s -t30
flush ${SITE}" to do its thing. It also uses batcher(8), but I do not
think that is really relevant.

  A quick inspection shows that makebatch is similar to (but not the same
as) [samples/]sendbatch, which *is* part of the INN distribution, at
least the 1.7.2 one. So if you are not really into this locking stuff,
you can probably take a copy of sendbatch and strip that down.

I wrote:
> 
>   There are probably several methods, but this is what I do:
> 
>   I have a 'dummy' entry in newsfeeds:
> 
> check_on_remote/my.peer.com\
> 	:!*,alt.*,comp.*,news.*,rec.*\
> 	/!local\
> 	:Tf,Wfb:check_on_remote
> 
>   Where the list of newsgroup patterns is the same as for my regular
> feed (my.peer.com).
>   
>   The real work is done by a (crontab(1) invoked) script which processes
> out.going/check_on_remote. out.going/check_on_remote contains lines like
> 
> /usr/spool/news/rec/travel/australia+nz/17905 1026
> 
> i.e. the full pathnames and sizes of 'my' outgoing articles. The script
> can do anything with this information, i.e. it can for example log the
> articles to a file, which is what (I think) you want.
> 
>   I hope this helps.
> 
> Damir Jurica <djurica@damir.globalnet.hr> wrote:
>> Im setting up news server with inn 2.3.0 and everything works ok so far.
>> Now I want to log all posts going from my server to outside world.
>> How can I do that?
>> 
>> TIA
>> Damir Jurica
Re: logging postings
#49927
Author: Russ Allbery
Date: Wed, 17 Jan 2001 15:38
21 lines
1948 bytes
Damir Jurica <djurica@damir.globalnet.hr> writes:

> I mean that i want to log contents of articles posted from my host.

Ahh.

There's currently no good way of doing this for all articles including
those posted to moderated newsgroups (since the quick method of using a
Perl filter that returns SPOOL for every post and then moves all the
articles up a level for rnews to pick up doesn't work for posts to
moderated groups since rnews doesn't know how to mail messages to a
moderator).  Unfortunately, the tracking stuff also doesn't work for posts
to moderated groups; that's really a bug that should be fixed.

You can get all posts to unmoderated groups by using the tracking code in
nnrpd.  See nnrpd.track(5) for some details.  Basically, set readertrack
to true in inn.conf and then create an nnrpd.track file per the man page.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
Re: logging postings
#49930
Author: Russ Allbery
Date: Wed, 17 Jan 2001 15:43
33 lines
2043 bytes
Frank Slootweg <franks@neth.hp.com> writes:

> There are probably several methods, but this is what I do:

> I have a 'dummy' entry in newsfeeds:

> check_on_remote/my.peer.com\
>       :!*,alt.*,comp.*,news.*,rec.*\
> 	/!local\
>       :Tf,Wfb:check_on_remote

> Where the list of newsgroup patterns is the same as for my regular feed
> (my.peer.com).

Unfortunately, this doesn't work for moderated groups either.  (BTW, you
can use the O flag in newsfeeds to more easily restrict this to just local
postings.)

> The real work is done by a (crontab(1) invoked) script which processes
> out.going/check_on_remote. out.going/check_on_remote contains lines like

> /usr/spool/news/rec/travel/australia+nz/17905 1026

> i.e. the full pathnames and sizes of 'my' outgoing articles. The script
> can do anything with this information, i.e. it can for example log the
> articles to a file, which is what (I think) you want.

Note that for current versions of INN you'll get a storage API token
rather than a path and will need to use sm to retrieve the actual article.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
Re: logging postings
#49989
Author: Frank Slootweg
Date: Fri, 19 Jan 2001 09:41
21 lines
1908 bytes
  Another thread somewhere lust made me remember a quite different
issue which might be important:

  Depending on your country, local laws and your specific use of the
logged information, make sure that what you do is *legal*. I.e. for
example in our country (The Netherlands ("Holland")) and probably in
some other European countries, it is illegal for *humans* to look at
this logged information. Yes, also for a system/News Administrator. Only
when there is *justified* suspicion of a *certain* individual,
(non-technical) 'management' can look at the information of *that*
individual, *not* at that of others.

  Let's not discuss these issues here, nor take my information for
granted, but seek legal counsel.

Damir Jurica <djurica@damir.globalnet.hr> wrote:
[deleted]
> I mean that i want to log contents of articles posted from my host.
> 
> Damir
Re: logging postings
#50003
Author: Rich Skrenta
Date: Fri, 19 Jan 2001 20:03
9 lines
1188 bytes
Russ Allbery <rra@stanford.edu> writes:
> Note that for current versions of INN you'll get a storage API token
> rather than a path and will need to use sm to retrieve the actual article.

How about using newsfeeds to send locally-posted articles to the archive
program?  archive has a number of options to govern how to store the
posts sent to it, takes care of the storage manager stuff, and is a good
place to start hacking if it doesn't do quite what you need.
Re: logging postings
#50877
Author: admin
Date: Wed, 28 Feb 2001 00:46
35 lines
2575 bytes
In article <slrn96b1qh.l3u.djurica@damir.globalnet.hr>, Damir Jurica
<djurica@damir.globalnet.hr> writes:
>Im setting up news server with inn 2.3.0 and everything works ok so far.
>Now I want to log all posts going from my server to outside world.
>How can I do that?

I've read the rest of this thread and I must be missing something.

My interpretation of your question is that you want to log posts
made at your local server.

The solutions I've read seem over the top for this, which is why
I guess I'm missing something. I do this, with a simple newsfeeds
entry like so:

postlogger!/newsfeed.cwix.com:*,!control.*:Tf,WOn:/var/log/post.log

This sends overview data for every post that did not come from my feeder
to a log file, where it was then a trivial matter to adapt my web-news
gateway software to use the resulting text log to display the articles.

You could easily change this into a channel or program feed that would
then go and copy the article wherever and however you wanted:

logme!/news.yourfeed.com:*:Tp,WOn:/usr/local/bin/copy_article

Is this all you wanted to do?

-Cengiz

 -----  Posted via NewsOne.Net: Free (anonymous) Usenet News via the Web  -----
  http://newsone.net/ -- Free reading and anonymous posting to 60,000+ groups
   NewsOne.Net prohibits users from posting spam.  If this or other posts
made through NewsOne.Net violate posting guidelines, email abuse@newsone.net
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads