Edit YML Files

When editing YML files:

  • If you make any changes to ServerMonitoring.yml , or to any other YML file, make sure that the modified file meets standard YML syntax rules. Follow these important YML good practices:
    • Do not include any tab characters. Use whitespace characters only to indent fields.
    • Use the exact same number of whitespace characters to indent entries that are on the same level.
    • Use a plain-text editor, not a WYSIWIG editor, to edit the file. Use a monowidth/monospaced font to view the contents.
    • Always save using UTF-8 encoding.
    • Test and verify the edited file using an online YML syntax tester.
  • The safest way to edit a setting in a YML file is to:
    • Copy the line you want to edit, and paste the copy into a new line. Make sure that you select, copy, and paste the entire line.
    • Comment out the original line and edit the copy, as desired.
  • To add or edit a regular expression in this file, you should test and verify the regular expression using an online regex tester.
  • Before you make any changes to this file, review the option descriptions on this page, and the comments in the file, carefully before you change a setting.
  • The Agent updates dynamically in response to Agent configuration property changes, so you do not need to restart the Agent after you update this file.