You may be looking for court recorder.
A court record was a record of legal proceedings. They could be invaluable sources of information when performing genealogical research. While researching her ancestor Shannon O'Donnell, Kathryn Janeway preferred such "raw material" sources to various histories of 21st century Earth, as she found them to all be biased. (VOY: "11:59")