Refine your search:

0
1

is there a query to get the size of a log event (how big the event is inside splunk?) I know you can get index sizes, just want to try to break it up a bit more. I can't find a field that is "size of log entry".

asked 08 Jun '10, 16:51

sanju005ind's gravatar image

sanju005ind
1891114
accept rate: 75%


2 Answers:

You should be able to use the eval command with the len() function. So you could look at high and low markers per sourcetype with a search like this:

| eval raw_len=len(_raw) | stats p10(raw_len), p90(raw_len) by sourcetype

Note: You asked about the "size" of your event. However, the term "size" is a bit ambigious. This example shows you the number of characters in the _raw field, which can be different from the number of bytes used to store the _raw field in the case of unicode characters.)

link

answered 14 Jun '10, 21:39

Lowell's gravatar image

Lowell ♦
11.1k91289
accept rate: 41%

What does it returns exactly ? What are the columns p10 and p90 ?? Is it the size in Mo ?

link

answered 19 May '11, 08:48

aymericbrun's gravatar image

aymericbrun
10115
accept rate: 0%

Post your answer
toggle preview

Follow this question

Log In to enable email subscriptions

RSS:

Answers

Answers + Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×229

Asked: 08 Jun '10, 16:51

Seen: 2,056 times

Last updated: 19 May '11, 08:48

Copyright © 2005-2012 Splunk Inc. All rights reserved.