151k views
2 votes
Which of the following are valid monitor input stanzas?

1) [monitor://var/log/secure]
2) [monitor:///var/log/secure]
3) [monitor://C: logs ]
4) [monitor:///C: logs ]
5) [monitor://C:/logs/]

1 Answer

5 votes

Final Answer:

The valid monitor input stanzas among the options are:

  • 2) [monitor:/// var/log/secure]
  • 3. [monitor://C:\logs\]

Step-by-step explanation:

In monitor input stanzas for data ingestion, correct formatting is crucial. Option 2 ([monitor:/// var/log/secure]) is accurate for Unix-like systems as it uses the triple forward slash to indicate the file path. Option 3 ([monitor://C:\logs]) is suitable for Windows systems, specifying the file path using the correct syntax.

In detail, option 1 ([monitor:// var/log/secure]) lacks the initial slash after the 'monitor://' and thus doesn't denote an absolute path. Option 4 ([monitor:///C:\logs]) combines Unix and Windows conventions incorrectly by having both triple forward slashes and a drive letter, causing an invalid format. Option 5 ([monitor://C:/logs/]) tries to emulate the Windows path but uses a mix of forward and backward slashes, making it incorrect.

Correct Answers: Option 2 ([monitor:/// var/log/secure]) and Option 3 ([monitor://C:\logs]).

User Matteo Steccolini
by
8.0k points