Reporting

Is there a way to show top deferred email domains by how long they are only deferred?

dstoica
New Member

Hi,

Is there any way to show top deferred email domains by how long they are only deferred?

Thanks

0 Karma

vganjare
Builder

Hi,

Can you try using transaction command. You can use startswith and endswith to define the transaction limit. Once the proper transaction is identified i.e. set of events which has email which was deffered and then events which has email not deffered, you can extract the time by using multivalue commands.

Thanks!!

0 Karma

vganjare
Builder

Hi,

Is this working for you?

Thanks!!

0 Karma

jeffland
SplunkTrust
SplunkTrust

What does your data look like?

0 Karma

dstoica
New Member

i have this search

index=syslog source=/var/log/maillog (host=imail3.* OR host=imail4.*) DEFERRED| top to showperc=0 | addcoltotals

that gives me top deferred email domains

log line is like:

2015-04-22T10:33:40.000000-07:00 imail4 postfix/error[16223]: 674E55A8: to=, relay=none, delay=600, delays=600/0.09/0/0.01, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to backns2[10.15.0.104]:25: Connection refused)

For top 10 domains i want to add a column to show me for how long i have only deferred, NOT "status=deferred" will reset that counter for that domain.

0 Karma

jeffland
SplunkTrust
SplunkTrust

So you're saying that there are events in your data that look like

time0 foo deferred
time1 foo deferred

and then eventually

timeX foo status=deferred

and what you want to know is (timeX-time0)?

0 Karma

dstoica
New Member

what i want is (timeX - time of last NOT "status=deferred") per email addresses in the above top, as a column

0 Karma
Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...