Logmanager documentation
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

AI parser generator

The AI parser generator creates a parsing rule from samples of your logs. It runs on the Logmanager partner portal. You open it from the parser editor, generate the parser in a popup window, and send the result back to the editor, where you review, test and save it as any other parser.

Example: Your firewall sends logs in a format that no built-in parser covers. Instead of building the parser block by block, you upload a few anonymized log lines to the generator and import the parser it creates.

Before you start

To use the generator, you need the following:

  • An administrator turned on the AI parser generator switch in Feature flags.
  • Write access to the Parsers permission. For more information, see System groups.
  • A custom parser. The editor doesn’t show the button for built-in parsers.
  • Internet access from your browser to portal.logmanager.com.
  • A partner portal account. See Getting a partner portal account.

Getting a partner portal account

The Parser Generator runs on the Logmanager partner portal at https://portal.logmanager.com/. The portal runs on HubSpot, so you sign in to it with a partner portal account in HubSpot, not with your Logmanager user account.

To get an account, register on the portal. Only active Logmanager partners get access to the Parser Generator. If you don’t have access to it after you register, contact sales@logmanager.com.

In the parser editor, the How To Get Partner Portal Access link opens this section. The link is in the Popup blocked or trouble logging into the partner portal? panel, which appears below the toolbar after you click Generate with AI. Click the panel title to expand it.

Generating a parser

  1. Go to Processing > Parsers and click Create new, or click Edit in the row of a custom parser.

  2. In the toolbar of the editor, click Generate with AI.

    Generate with AI button in the parser editor

    Generate with AI button in the parser editor

  3. The first time you click the button, Logmanager shows the Before you upload your log samples dialog. Read it and click I understand. If you select Don’t show me this message again, Logmanager won’t show the dialog to you again.

    Before you upload your log samples dialog

    Before you upload your log samples dialog

  4. The Parser Generator opens in a popup window. If you aren’t signed in to the partner portal, the portal asks you to sign in first.

  5. In the popup, upload your log samples and generate the parser.

  6. Click Send. The button shows the address of the Logmanager the parser goes to. Check that it is the Logmanager you opened the popup from.

    Send button in the Parser Generator popup

    Send button in the Parser Generator popup

  7. In the Replace the current parser? dialog, click Replace. The generated parser replaces every block in the editor. To keep the current blocks, click Cancel.

    Replace the current parser dialog

    Replace the current parser dialog

  8. Review the blocks and check the result with a test message.

  9. Click Save. Logmanager doesn’t store the generated parser until you save it.

Before you upload samples, remove or replace personal and sensitive data, such as usernames, IP addresses, hostnames, passwords and customer identifiers. Replace them with placeholders of the same format, for example user01, 192.0.2.10 or host-a.example.com, so the generated parser still works on your real logs.

If you click Generate with AI while the popup is open, Logmanager brings the popup to the front instead of opening a new one, so you don’t lose your work in it.

If you close the popup without clicking Send, nothing changes in the editor.

If the generated XML isn’t valid, Logmanager shows an error and keeps the blocks in the editor unchanged.

When the browser blocks the popup

Some browsers block popup windows. When you click Generate with AI, the editor also shows the Popup blocked or trouble logging into the partner portal? panel below the toolbar. Use it when the popup doesn’t open:

  1. Click Popup blocked or trouble logging into the partner portal? to expand the panel.
  2. Click Open Parser Generator. The generator opens in a new browser tab.
  3. In the new tab, generate the parser and copy its XML.
  4. In the editor, click the XML tab, replace its content with the copied XML, and click the Blockly tab to check the blocks.
  5. Click Save.
Panel for importing the parser XML manually

Panel for importing the parser XML manually

If you can’t sign in to the partner portal, click How To Get Partner Portal Access in the panel.

To use the popup next time, allow popup windows for your Logmanager address in your browser settings.