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

Problems with fallback and JSON #2080

Closed
mikelaz opened this issue Jun 22, 2023 · 4 comments
Closed

Problems with fallback and JSON #2080

mikelaz opened this issue Jun 22, 2023 · 4 comments
Assignees
Labels
Application core dependency in sc4s

Comments

@mikelaz
Copy link

mikelaz commented Jun 22, 2023

Hi Team,

We have recently had several problems with the integration of a new source that send us JSON events into a SYSLOG messages.

We created an specific configuration file for this source but we detected that the configuration was not being applied correctly.
After some troubleshooting and investigation we discovered that the problem came from the fallback file for the JSON format.

In the package/etc/conf.d/conflib/fallback/app-fallback-json.conf file we had to change following lines from:

application app-fallback-json[sc4s-syslog] {
	filter {
        "${PROGRAM}" eq ""
        and message('{' type(string) flags(prefix));
    };	
    parser { app-fallback-json(); };
};

To:

application app-fallback-json[fallback] {
	filter {
        "${PROGRAM}" eq ""
        and message('{' type(string) flags(prefix));
    };	
    parser { app-fallback-json(); };
};

Changing [sc4s-syslog] to [fallback] to avoid the app-fallback-json.conf file coming into play after our dedicated [sc4s-syslog] configuration.

We think that the code of the app-fallback-json.conf should point to [fallback] instead of [sc4s-syslog], but just in case there is something that we are not seeing, we ask for your oppinion.

Thanks for your help.

Best regards

@rjha-splunk
Copy link
Collaborator

Thanks for pointing out , we will check this.

@rjha-splunk rjha-splunk self-assigned this Jun 22, 2023
@rjha-splunk rjha-splunk added the Application core dependency in sc4s label Jun 22, 2023
@rjha-splunk
Copy link
Collaborator

Can you share a sample message and what is your syslog local configuration, changing topic can have unnecessary side effects, we wanted to look into this use case in details before changing the main code.

@chipzzz
Copy link

chipzzz commented Oct 10, 2023

Is there anyway to ingest json logs? They seemed to always be dropped by sc4s.

@mstopa-splunk
Copy link
Contributor

Closing this issue due to the lack of a sample message. Please feel free to open a new one if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Application core dependency in sc4s
Projects
None yet
Development

No branches or pull requests

4 participants