38
szerkesztés
Módosítások
→Federation usage statistics
{{TODO_EN|I am a stub, please fix me!}}
Federation visualization project- discountinued.
* source (ruby on rails) https://repo.niif.hu/gitweb/gitweb.cgi?p=federation-stats.git;a=summary
* live demo https://papigw.aai.niif.hu/fedstats
== Running the sample project ==
== Running the log statistics collector ==
This following script can be used the collect statistics from the idp audit logs of Shibboleth 2 IdPgenerated on the day before running. It is based on Peter Schober's audit_r7.py, and good for run from daily cronjob:
<source lang="bash">
#!/bin/bash
ENTITYID="idp-entity-id"
APIKEY="aaa....."AUDITLOCATION2PUT="https:/path/tofedstats.example.org/audit_r7.pyimport_stats"
FILES="idp-audit-*.log"
#Should not edit below this
cd $SOURCEDIR
for f in $FILES
do
APIKEY $APIKEY
DATE $DATE
STAT USER_COUNT
$USERSUNIQUE_LOGINS
STAT SSO_TO_SERVICE
$SERVICES
" > $TARGETDIR/$FILENAMETARGETFILE
wget -q --no-check-certificate --post-file=$TARGETDIR/$TARGETFILE $LOCATION2PUT -O /dev/null rm $TARGETDIR/$TARGETFILE fidone #for files
</source>
== Creating IdPs ==
$ RAILS_ENV=production script/console >> Entity.create :name => 'foo', :entity_type = API keys > 'idp' ===Every IdP record in the database will contain a > #<Entity id: 1, name: "foo", entity_type: "idp", created_at: "2010-11-29 14:55:40", updated_at: "2010-11-29 14:55:40 character length API key.", api_key: "da9l233a45698fa5c4a252e301e3da2sf5ece24e">
[[Category:Csonkok]]