<?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: how to create chart for time on X axis and filed on Y axis... pls help am new to splunk and it is very important pls in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/how-to-create-chart-for-time-on-X-axis-and-filed-on-Y-axis-pls/m-p/117918#M31426</link>
    <description>&lt;P&gt;pls consider the following search&lt;/P&gt;

&lt;P&gt;source="all_option_to_tmp" | rex field=_raw "cmd_name=(?[^]+))" | transaction cmd_name startswith="Start_time" endswith="end_time" |timechart count by duration&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 19:21:25 GMT</pubDate>
    <dc:creator>saisree</dc:creator>
    <dc:date>2020-09-28T19:21:25Z</dc:date>
    <item>
      <title>how to create chart for time on X axis and filed on Y axis... pls help am new to splunk and it is very important pls</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-create-chart-for-time-on-X-axis-and-filed-on-Y-axis-pls/m-p/117911#M31419</link>
      <description>&lt;P&gt;This is my data.. now i want to take chart for time vs each command .. if it is possible have to show duration between start and end time of each command.. plz help me ..&lt;/P&gt;

&lt;P&gt;03-25-2015 03:04:31.189, cmd_name=cmd1(Start_time_of_if) &lt;BR /&gt;
 03-25-2015 03:09:31.189, cmd_name=cmd1(end_time_of_if)&lt;BR /&gt;&lt;BR /&gt;
 03-25-2015 03:12:31.189, cmd_name=cmd2(Start_time_of_if) &lt;BR /&gt;
 03-25-2015 03:17:31.189, cmd_name=cmd2(end_time_of_if) &lt;BR /&gt;
 03-25-2015 03:20:31.189, cmd_name=cmd3(Start_time_of_grep) &lt;BR /&gt;
 03-25-2015 03:24:31.189, cmd_name=cmd3(end_time_of_grep) &lt;BR /&gt;
 03-25-2015 03:27:31.189, cmd_name=cmd4(Start_time_of_if) &lt;BR /&gt;
 03-25-2015 03:32:31.189, cmd_name=cmd4(end_time_of_if) &lt;BR /&gt;
 03-25-2015 03:38:31.189, cmd_name=cmd5(Start_time_of_sed_command) &lt;BR /&gt;
 03-25-2015 03:42:31.189, cmd_name=cmd5(end_time_of_sed_command) &lt;BR /&gt;
 03-25-2015 03:49:31.189, cmd_name=cmd6(Start_time_of_if) &lt;BR /&gt;
 03-25-2015 03:55:31.189, cmd_name=cmd6(End_time_of_if) &lt;/P&gt;

&lt;P&gt;Thank u&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 19:21:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-create-chart-for-time-on-X-axis-and-filed-on-Y-axis-pls/m-p/117911#M31419</guid>
      <dc:creator>saisree</dc:creator>
      <dc:date>2020-09-28T19:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to create chart for time on X axis and filed on Y axis... pls help am new to splunk and it is very important pls</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-create-chart-for-time-on-X-axis-and-filed-on-Y-axis-pls/m-p/117912#M31420</link>
      <description>&lt;P&gt;I would use the transaction command. That will give you a duration.&lt;/P&gt;

&lt;P&gt;First would be to confirm that the cmd_name is extracted. If not, I'd extract this..&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;..main search .. | rex field=_raw "cmd_name\=\(?&amp;lt;cmd_name&amp;gt;[^\)]+)\)" 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;After you run that, you should see cmd_name is extracted as cmd1,cmd2, etc.&lt;/P&gt;

&lt;P&gt;Then add transaction to that..&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;..main search .. | rex field=_raw "cmd_name\=\(?&amp;lt;cmd_name&amp;gt;[^\)]+)\)"  | transaction cmd_name beginswith="Start_time" endswith="end_time" 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;That should give you a per cmd_name transaction. Check the duration fields. You can perform your timechart or stats off of that...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; ..main search .. | rex field=_raw "cmd_name\=\(?&amp;lt;cmd_name&amp;gt;[^\)]+)\)"  | transaction cmd_name beginswith="Start_time" endswith="end_time" | timechart count by duration
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.2/SearchReference/Transaction"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.2/SearchReference/Transaction&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 29 Mar 2015 04:39:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-create-chart-for-time-on-X-axis-and-filed-on-Y-axis-pls/m-p/117912#M31420</guid>
      <dc:creator>esix_splunk</dc:creator>
      <dc:date>2015-03-29T04:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: how to create chart for time on X axis and filed on Y axis... pls help am new to splunk and it is very important pls</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-create-chart-for-time-on-X-axis-and-filed-on-Y-axis-pls/m-p/117913#M31421</link>
      <description>&lt;P&gt;Thank u for u respond sir.. but i am trying to run rex  command its showing like  &lt;STRONG&gt;Regex: unmatched parentheses&lt;/STRONG&gt;&lt;BR /&gt;
will u help out of this plz&lt;/P&gt;

&lt;P&gt;Thank u &lt;/P&gt;</description>
      <pubDate>Sun, 29 Mar 2015 06:12:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-create-chart-for-time-on-X-axis-and-filed-on-Y-axis-pls/m-p/117913#M31421</guid>
      <dc:creator>saisree</dc:creator>
      <dc:date>2015-03-29T06:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: how to create chart for time on X axis and filed on Y axis... pls help am new to splunk and it is very important pls</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-create-chart-for-time-on-X-axis-and-filed-on-Y-axis-pls/m-p/117914#M31422</link>
      <description>&lt;P&gt;Did you resolve the parenthesis error? Cut and paste might have missed a character.&lt;/P&gt;</description>
      <pubDate>Sun, 29 Mar 2015 13:01:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-create-chart-for-time-on-X-axis-and-filed-on-Y-axis-pls/m-p/117914#M31422</guid>
      <dc:creator>esix_splunk</dc:creator>
      <dc:date>2015-03-29T13:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: how to create chart for time on X axis and filed on Y axis... pls help am new to splunk and it is very important pls</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-create-chart-for-time-on-X-axis-and-filed-on-Y-axis-pls/m-p/117915#M31423</link>
      <description>&lt;P&gt;yes i solved it .. but when i am running whole command its showing &lt;STRONG&gt;no resluts&lt;/STRONG&gt;  ....I tried a lot but i am not getting sir &lt;/P&gt;</description>
      <pubDate>Mon, 30 Mar 2015 03:01:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-create-chart-for-time-on-X-axis-and-filed-on-Y-axis-pls/m-p/117915#M31423</guid>
      <dc:creator>saisree</dc:creator>
      <dc:date>2015-03-30T03:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: how to create chart for time on X axis and filed on Y axis... pls help am new to splunk and it is very important pls</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-create-chart-for-time-on-X-axis-and-filed-on-Y-axis-pls/m-p/117916#M31424</link>
      <description>&lt;P&gt;Can you paste your full search into here. And be sure to use the quotes field.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Mar 2015 03:12:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-create-chart-for-time-on-X-axis-and-filed-on-Y-axis-pls/m-p/117916#M31424</guid>
      <dc:creator>esix_splunk</dc:creator>
      <dc:date>2015-03-30T03:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: how to create chart for time on X axis and filed on Y axis... pls help am new to splunk and it is very important pls</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-create-chart-for-time-on-X-axis-and-filed-on-Y-axis-pls/m-p/117917#M31425</link>
      <description>&lt;P&gt;source="all_option_to_tmp" | rex field=_raw "cmd_name=\(?[^)]+))"  | transaction cmd_name startswith="Start_time" endswith="end_time" | timechart count by duration&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 19:18:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-create-chart-for-time-on-X-axis-and-filed-on-Y-axis-pls/m-p/117917#M31425</guid>
      <dc:creator>vasavigangana</dc:creator>
      <dc:date>2020-09-28T19:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: how to create chart for time on X axis and filed on Y axis... pls help am new to splunk and it is very important pls</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-create-chart-for-time-on-X-axis-and-filed-on-Y-axis-pls/m-p/117918#M31426</link>
      <description>&lt;P&gt;pls consider the following search&lt;/P&gt;

&lt;P&gt;source="all_option_to_tmp" | rex field=_raw "cmd_name=(?[^]+))" | transaction cmd_name startswith="Start_time" endswith="end_time" |timechart count by duration&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 19:21:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-create-chart-for-time-on-X-axis-and-filed-on-Y-axis-pls/m-p/117918#M31426</guid>
      <dc:creator>saisree</dc:creator>
      <dc:date>2020-09-28T19:21:25Z</dc:date>
    </item>
  </channel>
</rss>

