Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Requesting a new filter for lantronix appliance #2631

Open
aalisher-tmx opened this issue Oct 29, 2024 · 1 comment
Open

Requesting a new filter for lantronix appliance #2631

aalisher-tmx opened this issue Oct 29, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@aalisher-tmx
Copy link

Note: If your issue is not a bug or a feature request, please raise a support ticket through our support portal (Splunk.com > Support > Support Portal). This will help us resolve your issue more efficiently and provide you with better assistance. For more information on how to work with the Splunk Support, please refer to this guide.

What is the sc4s version?
v3.32
Is there a pcap available? If so, would you prefer to attach it to this issue or send it to Splunk support?
Yes, attached pcap and raw events to splunk support case# 3604963
What the vendor name?
Lantronix
What's the product name?
ConsoleFlow
If you're requesting support for a new vendor, do you have any preferences regarding the default index and sourcetype for their events?

Do you have syslog documentation or a manual for that device??

Feature Request description:

Do you want to have it for local usage or prepare a github PR?

@cwadhwani-splunk cwadhwani-splunk self-assigned this Oct 30, 2024
@cwadhwani-splunk cwadhwani-splunk added the enhancement New feature or request label Oct 30, 2024
@cwadhwani-splunk
Copy link
Collaborator

Hello @aalisher-tmx ,

After analyzing the pcap logs, we found that the "program" field consistently has a prefix of "SLC-SLB" across all logs (e.g., "SLC-SLB/xcflow," "SLC-SLB/xld," "SLC-SLB/xasd"). Using this prefix, we’ve developed a parser to filter logs with "SLC-SLB" in the program field. For these logs, we’ve set the metadata as follows: source is "Lantronix:ConsoleFlow," sourcetype is "Lantronix:ConsoleFlow:syslog," and index is "netops."

Pleas modify any of these values if required in your local env.

To add the parser to your local environment:

  • Navigate to: /opt/sc4s/local/config/app_parsers
  • Create a new file named: app-syslog-lantronix_consoleflow.conf
  • Save the file and restart SC4S.
block parser app-syslog-lantronix_consoleflow() {
    channel {
        rewrite {
            r_set_splunk_dest_default(
                index('netops')
                source('Lantronix:ConsoleFlow')
                sourcetype('Lantronix:ConsoleFlow:syslog')
                vendor('Lantronix')
                product('ConsoleFlow')
            );
        };
    };
};

application app-syslog-lantronix_consoleflow[sc4s-syslog-pgm] {
    filter {
        program('SLC-SLB' type(string) flags(prefix))
    };
    parser { app-syslog-lantronix_consoleflow(); };
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants