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

Rsyslog imfile + omkafka truncating events, $MaxMessageSize not tanking effect #4214

Open
ESMaletMa opened this issue Mar 10, 2020 · 3 comments

Comments

@ESMaletMa
Copy link

ESMaletMa commented Mar 10, 2020

Hi All,

I'm tried using: rsyslogd 8.1911.0 (aka 2019.11) and 8.32.0

We have truncated events in the destination (maximum event I have is 5.6K), the end of the event is truncated. The destination is Azure Event Hubs (Kafka). Destination confirmed that events are already arriving truncated... I have:

#Set default maximum message size
$MaxMessageSize 512k

My config:

input(
type="imfile"
File="/datadisk/disk1/incapsula/mega_big26gb.raw"
Tag="akamai"
ruleset="publish_eh_akamai"
)

ruleset(name="publish_eh_akamai"){
action(
name="socdap-incapsula-4p-5m-rsyslog"
partitions.auto="on"
action.resumeRetryCount="-1"
action.resumeInterval="2"
broker=["dev-01.servicebus.windows.net:9093"]
type="omkafka"
template="rawmessage"
confParam=["linger.ms=500", "security.protocol=SASL_SSL", "sasl.mechanisms=PLAIN", "sasl.username=$ConnectionString", "sasl.password=Endpoint=.....="]
resubmitOnFailure="on"
keepFailedMessages="on"
failedMsgFile="/opt/lib/rsyslog_producer/producer_failed.log"
topic="stress_test"

    queue.type="LinkedList"
    queue.dequeueBatchSize="400000"
    queue.highWatermark="700000000"
    queue.lowWatermark="250000"
    queue.spoolDirectory="/datadisk/rsyslog"
    queue.filename="socdap-akamai-nespresso.queue"
    queue.maxDiskSpace="150g"
    queue.size="1000000000"
    queue.saveonshutdown="on"

    )
    stop

}

Any idea is welcome…

Thank you very much

@ESMaletMa
Copy link
Author

ESMaletMa commented Mar 19, 2020

I tried this parameter but nothing.... the same result: discardTruncatedMsg="on"

input(
type="imfile"
discardTruncatedMsg="on"
File="/datadisk/disk1/incapsula/mega_big26gb.raw"
Tag="akamai"
ruleset="publish_eh_akamai"
)

@ESMaletMa ESMaletMa changed the title Rsyslog imfile + omkafka duplicating events Rsyslog imfile + omkafka truncating events, $MaxMessageSize not tanking effect Mar 19, 2020
@davidelang
Copy link
Contributor

davidelang commented Mar 19, 2020 via email

@ESMaletMa
Copy link
Author

Thank you. Exactly yes, it is happening when I have a high volume of data, for small volume there is no problem.

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

No branches or pull requests

2 participants