This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"100" : { | |
"required" : true, | |
"description" : "Main Author", | |
"indicators" : [ ["#", " ", "1"], ["#"] ], | |
"subfields" : { | |
"required" : ["a"], | |
"optional" : ["b"] | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# pip install --user apachelogs | |
# ./logparse.py [logfile] [json|db] [output file name] | |
# JSON output is assumed; if output filename is omitted | |
# output.[json|db] will be generated | |
import apachelogs | |
import os |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"001": { | |
"repeatable": false, | |
"subfields": {}, | |
"description": "The control number assigned by the organization creating, using, or distributing the record. The MARC code for the organization is contained in field 003 (Control Number Identifier)." | |
}, | |
"003": { | |
"repeatable": false, | |
"subfields": {}, | |
"description": "The MARC code for the organization whose control number is contained in field 001 (Control Number)." |
NewerOlder