Splunk Search

Use value in log file to draw chart

webantsug
Explorer

Dear Splunkies,

I am very happy with Splunk so far, but ran into one issue, I stuck.

I got a log file, containing a timestamp and a value, example below:

2015-05-18 1:53:30 Count=12

I want to use the Count (here 12) as value to display a chart but it usually displays a list of Count entire, found in my log file.

I'm pretty sure it's a very simple thing, but right now I don't see it.

Please advice.

Thanks very much

T.

0 Karma
1 Solution

webantsug
Explorer

Hi again.
I found a solution, by using field extractor to describe a field named "UserCount". then I used the following query to create a bar chart:

source="/opt/webants-dns/logs/ddnscount.log" | stats avg(UserCount) by _time | reverse | head 10

Thank you all.

T.

View solution in original post

0 Karma

webantsug
Explorer

Hi again.
I found a solution, by using field extractor to describe a field named "UserCount". then I used the following query to create a bar chart:

source="/opt/webants-dns/logs/ddnscount.log" | stats avg(UserCount) by _time | reverse | head 10

Thank you all.

T.

0 Karma

richgalloway
SplunkTrust
SplunkTrust

What does your failing search look like?

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...