Skip to Content.
Sympa Menu

perfsonar-user - Re: [perfsonar-user] perfsonar config file format rant

Subject: perfSONAR User Q&A and Other Discussion

List archive

Re: [perfsonar-user] perfsonar config file format rant


Chronological Thread 
  • From: Mark Feit <>
  • To: SCHAER Frederic <>, "" <>
  • Subject: Re: [perfsonar-user] perfsonar config file format rant
  • Date: Thu, 17 Mar 2016 13:18:53 +0000
  • Accept-language: en-US
  • Authentication-results: cea.fr; dkim=none (message not signed) header.d=none;cea.fr; dmarc=none action=none header.from=internet2.edu;

SCHAER Frederic writes:


OK Thanks for the information. Ahhh perl… ;)

I’ll see if I can run some perl one-liners to work with this file then.


There’s a Python module that can parse it if you’d prefer that over Perl.

It wouldn’t be much effort at all to write a filter to translate between the Apache format and something else that has better inline editing tools available (JSON, XML, YAML).  If you went with JSON, combining the filters with jq (https://stedolan.github.io/jq) would give you the ability to do quick transforms as pipelines:

< infile apache2json | jq … | json2apache > outfile

 

—Mark




Archive powered by MHonArc 2.6.16.

Top of Page