<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Creating charts  and Regex in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Creating-charts-and-Regex/m-p/115846#M30737</link>
    <description>&lt;P&gt;If you are asking questions about things like index, host and sourcetype I would highly recommend going through the tutorial documentation:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchTutorial/WelcometotheSearchTutorial"&gt;http://docs.splunk.com/Documentation/Splunk/latest/SearchTutorial/WelcometotheSearchTutorial&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 08 Sep 2014 21:14:30 GMT</pubDate>
    <dc:creator>aweitzman</dc:creator>
    <dc:date>2014-09-08T21:14:30Z</dc:date>
    <item>
      <title>Creating charts  and Regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Creating-charts-and-Regex/m-p/115832#M30723</link>
      <description>&lt;P&gt;I am using Splunk for first time and have been given following task&lt;BR /&gt;&lt;BR /&gt;
Create a document on the different kinds of charts and corresponding regular expressions.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;Based on,&lt;BR /&gt;&lt;BR /&gt;
 1. Month on month&lt;BR /&gt;&lt;BR /&gt;
 2. Year on year&lt;BR /&gt;&lt;BR /&gt;
 3. Week over week&lt;BR /&gt;&lt;BR /&gt;
 4. Day of week&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;I have no idea, what these charts are and how to create them. There is no one in team, who knows about Splunk. Can someone please throw some light on how to do this ?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;I know, how to create Perl regex. &lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 08 Sep 2014 15:59:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Creating-charts-and-Regex/m-p/115832#M30723</guid>
      <dc:creator>jigneshjsoni71</dc:creator>
      <dc:date>2014-09-08T15:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: Creating charts  and Regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Creating-charts-and-Regex/m-p/115833#M30724</link>
      <description>&lt;P&gt;you need to index data first in an index.&lt;BR /&gt;
then u can write search &lt;BR /&gt;
index=&lt;INDEX name=""&gt;|&lt;WRITE regex="" and="" create="" fields=""&gt;| timechart span=&lt;WEEK or="" month="" etc=""&gt; by &lt;ANY field="" you="" extracted="" from="" regex=""&gt;&lt;/ANY&gt;&lt;/WEEK&gt;&lt;/WRITE&gt;&lt;/INDEX&gt;&lt;/P&gt;

&lt;P&gt;see the doc:&lt;BR /&gt;
for regex &lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.3/SearchReference/Rex"&gt;http://docs.splunk.com/Documentation/Splunk/6.1.3/SearchReference/Rex&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.3/Knowledge/AboutSplunkregularexpressions"&gt;http://docs.splunk.com/Documentation/Splunk/6.1.3/Knowledge/AboutSplunkregularexpressions&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;for timechart:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.3/SearchReference/Timechart"&gt;http://docs.splunk.com/Documentation/Splunk/6.1.3/SearchReference/Timechart&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Sep 2014 16:07:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Creating-charts-and-Regex/m-p/115833#M30724</guid>
      <dc:creator>kml_uvce</dc:creator>
      <dc:date>2014-09-08T16:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: Creating charts  and Regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Creating-charts-and-Regex/m-p/115834#M30725</link>
      <description>&lt;P&gt;There is not enough information to be able to help you with an answer.&lt;/P&gt;

&lt;P&gt;First, please provide some sample data, and then describe in more detail what information out of it you want to graph. If you "have no idea" what I'm asking, then you should go back to the person who assigned you this task and ask them what it means.&lt;/P&gt;

&lt;P&gt;Second, you'll likely be using Splunk's time-related commands and functions to generate charts, not regex. Regex is used in Splunk primarily to extract data into fields.&lt;/P&gt;

&lt;P&gt;This might also help:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Timechart"&gt;http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Timechart&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Sep 2014 16:10:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Creating-charts-and-Regex/m-p/115834#M30725</guid>
      <dc:creator>aweitzman</dc:creator>
      <dc:date>2014-09-08T16:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: Creating charts  and Regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Creating-charts-and-Regex/m-p/115835#M30726</link>
      <description>&lt;P&gt;If I want to find events for Sept 9, 2014, how do I provide that command ?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;I am using host=e2pswer sourcetype=syslog | date_hour=Sep 8 2014&lt;BR /&gt;&lt;BR /&gt;
This gives an error message unknown command date&lt;/P&gt;

&lt;P&gt;host=e2pswer sourcetype=syslog | stats count by date_hour&lt;BR /&gt;&lt;BR /&gt;
This gives "No results found" error&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;So please guide me how to find events for specified host and sourcetype for a specified date&lt;/P&gt;</description>
      <pubDate>Mon, 08 Sep 2014 20:20:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Creating-charts-and-Regex/m-p/115835#M30726</guid>
      <dc:creator>jigneshjsoni71</dc:creator>
      <dc:date>2014-09-08T20:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: Creating charts  and Regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Creating-charts-and-Regex/m-p/115836#M30727</link>
      <description>&lt;P&gt;In your first search, you don't really want a pipe there, and you don't want to test an hour value against a date string. (And even if you did, the date string would need to be in quotes.)&lt;/P&gt;

&lt;P&gt;For your second search, are you sure you have your date chooser set to "All Time"? What happens when you just do this:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;host=e2pswer sourcetype=syslog&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Do you get any results? If so, what happens when you change the date chooser to just use September 8, 2014?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Sep 2014 20:29:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Creating-charts-and-Regex/m-p/115836#M30727</guid>
      <dc:creator>aweitzman</dc:creator>
      <dc:date>2014-09-08T20:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: Creating charts  and Regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Creating-charts-and-Regex/m-p/115837#M30728</link>
      <description>&lt;P&gt;&lt;CODE&gt;date_hour&lt;/CODE&gt; is a value that represents the numerical hour that the event happened in. So &lt;CODE&gt;stats count by date_hour&lt;/CODE&gt; would give you a chart where one column has the values 0-23, and the other column would have counts of events from those hours. I don't think that's what you're going for here.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Sep 2014 20:31:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Creating-charts-and-Regex/m-p/115837#M30728</guid>
      <dc:creator>aweitzman</dc:creator>
      <dc:date>2014-09-08T20:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: Creating charts  and Regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Creating-charts-and-Regex/m-p/115838#M30729</link>
      <description>&lt;P&gt;As I explained in previous post, how can I get events for today's date ? &lt;BR /&gt;&lt;BR /&gt;
How do I provide command for that ?&lt;BR /&gt;&lt;BR /&gt;
What I am showing here is what I tried and did not work. Please let me know, how to use cmd to get events for a date.&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 08 Sep 2014 20:37:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Creating-charts-and-Regex/m-p/115838#M30729</guid>
      <dc:creator>jigneshjsoni71</dc:creator>
      <dc:date>2014-09-08T20:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: Creating charts  and Regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Creating-charts-and-Regex/m-p/115839#M30730</link>
      <description>&lt;P&gt;As I explained in previous post, how can I get events for today's date ? &lt;BR /&gt;&lt;BR /&gt;
How do I provide command for that ?&lt;BR /&gt;&lt;BR /&gt;
What I am showing here is what I tried and did not work. Please let me know, how to use cmd to get events for a date.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;When I write host=e2pswer sourcetype=syslog | fields-date_hour &lt;BR /&gt;&lt;BR /&gt;
search command is implied. So does it mean&lt;BR /&gt;&lt;BR /&gt;
does it mean search(host=e2pswer sourcetype=syslog) | fields-date_hour&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:31:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Creating-charts-and-Regex/m-p/115839#M30730</guid>
      <dc:creator>jigneshjsoni71</dc:creator>
      <dc:date>2020-09-28T17:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: Creating charts  and Regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Creating-charts-and-Regex/m-p/115840#M30731</link>
      <description>&lt;P&gt;index=&lt;INDEX name=""&gt;|&lt;WRITE regex="" and="" create="" fields=""&gt;| timechart span=&lt;WEEK or="" month="" etc=""&gt; by &lt;ANY field="" you="" extracted="" from="" regex=""&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;
I am confused with this syntax. Please provide a sample from where I can build.&lt;/ANY&gt;&lt;/WEEK&gt;&lt;/WRITE&gt;&lt;/INDEX&gt;&lt;/P&gt;

&lt;P&gt;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 08 Sep 2014 20:43:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Creating-charts-and-Regex/m-p/115840#M30731</guid>
      <dc:creator>jigneshjsoni71</dc:creator>
      <dc:date>2014-09-08T20:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: Creating charts  and Regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Creating-charts-and-Regex/m-p/115841#M30732</link>
      <description>&lt;P&gt;I dont see syntax for index anywhere in manual. So when I write host, sourcetype, does it mean its an index ?&lt;BR /&gt;&lt;BR /&gt;
host=e2pswer, is it an index, where host means index and e2pswer means name for this index ?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Sep 2014 20:53:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Creating-charts-and-Regex/m-p/115841#M30732</guid>
      <dc:creator>jigneshjsoni71</dc:creator>
      <dc:date>2014-09-08T20:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: Creating charts  and Regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Creating-charts-and-Regex/m-p/115842#M30733</link>
      <description>&lt;P&gt;If you want to include it on the search bar for a search for just today's events, do something like this:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;host=e2pswer sourcetype=syslog earliest=+0@d&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;See &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/SearchTimeModifiers"&gt;http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/SearchTimeModifiers&lt;/A&gt; for how to add time modifiers to your searches.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Sep 2014 20:54:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Creating-charts-and-Regex/m-p/115842#M30733</guid>
      <dc:creator>aweitzman</dc:creator>
      <dc:date>2014-09-08T20:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: Creating charts  and Regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Creating-charts-and-Regex/m-p/115843#M30734</link>
      <description>&lt;P&gt;For events on other days, do something like this (for September 4, say):&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;host=e2pswer sourcetype=syslog earliest=9/4/2014:0:0:0 latest=9/5/2014:0:0:0&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Sep 2014 20:55:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Creating-charts-and-Regex/m-p/115843#M30734</guid>
      <dc:creator>aweitzman</dc:creator>
      <dc:date>2014-09-08T20:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: Creating charts  and Regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Creating-charts-and-Regex/m-p/115844#M30735</link>
      <description>&lt;P&gt;Thanks for reply. But when i am using this syntax with earliest, it gives "No results found" and when I use without earliest, I am getting plethora of events.&lt;BE&gt;&lt;BR /&gt;
When do I need to use | ? How come is it not required after host OR sourcetype ?&lt;BR /&gt;&lt;/BE&gt;&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 08 Sep 2014 20:59:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Creating-charts-and-Regex/m-p/115844#M30735</guid>
      <dc:creator>jigneshjsoni71</dc:creator>
      <dc:date>2014-09-08T20:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: Creating charts  and Regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Creating-charts-and-Regex/m-p/115845#M30736</link>
      <description>&lt;P&gt;You need to use the pipe when you want to transform a result set, by doing &lt;CODE&gt;stats&lt;/CODE&gt;, &lt;CODE&gt;table&lt;/CODE&gt;, &lt;CODE&gt;timechart&lt;/CODE&gt;, or some other transformation. It's not required after your &lt;CODE&gt;host&lt;/CODE&gt; or &lt;CODE&gt;sourcetype&lt;/CODE&gt; clauses because the time modifiers are terms to filter your initial results. You're not yet transforming the result set.&lt;/P&gt;

&lt;P&gt;As for why you don't get results with &lt;CODE&gt;earliest&lt;/CODE&gt;, I can't say. The obvious question is, are there actual events on that day? What happens when, instead of adding the &lt;CODE&gt;earliest&lt;/CODE&gt; term to your search, you leave it off and instead use the time chooser on the search bar to filter your results?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Sep 2014 21:07:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Creating-charts-and-Regex/m-p/115845#M30736</guid>
      <dc:creator>aweitzman</dc:creator>
      <dc:date>2014-09-08T21:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: Creating charts  and Regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Creating-charts-and-Regex/m-p/115846#M30737</link>
      <description>&lt;P&gt;If you are asking questions about things like index, host and sourcetype I would highly recommend going through the tutorial documentation:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchTutorial/WelcometotheSearchTutorial"&gt;http://docs.splunk.com/Documentation/Splunk/latest/SearchTutorial/WelcometotheSearchTutorial&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Sep 2014 21:14:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Creating-charts-and-Regex/m-p/115846#M30737</guid>
      <dc:creator>aweitzman</dc:creator>
      <dc:date>2014-09-08T21:14:30Z</dc:date>
    </item>
  </channel>
</rss>

