<?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: Appending a two column graph to another two column graph in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Appending-a-two-column-graph-to-another-two-column-graph/m-p/227215#M67107</link>
    <description>&lt;P&gt;Could you tell me what the 1=1 does inside of the eval statement?  I understand the rest of it except for that part.&lt;/P&gt;

&lt;P&gt;New query you submitted works well.  Thanks.&lt;/P&gt;</description>
    <pubDate>Mon, 18 Jan 2016 16:19:39 GMT</pubDate>
    <dc:creator>Spiere</dc:creator>
    <dc:date>2016-01-18T16:19:39Z</dc:date>
    <item>
      <title>Appending a two column graph to another two column graph</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Appending-a-two-column-graph-to-another-two-column-graph/m-p/227211#M67103</link>
      <description>&lt;P&gt;Hey guys,&lt;/P&gt;

&lt;P&gt;I asked a question recently about an appended column on a graph not selecting the correct events when it is clicked on.  Iguinn provided me with a query(Thanks!) that allowed the columns to filter correctly and select the right events.  I have to add two more columns to this graph, and I am running into the same problem I was having when I was trying to use append, which is that it does not filter the events correctly into the appended columns on the graph.&lt;/P&gt;

&lt;P&gt;Both of these fields have been extracted and appear correctly when they are not appended.&lt;/P&gt;

&lt;P&gt;My query is &lt;CODE&gt;sourcetype=testing PhpFatal="PHP Fatal error" OR DrupalPHPFatal="Error: PHP FATAL Error"  | eval ErrorType = if(PhpFatal=="PHP Fatal error",PhpFatal,DrupalPHPFatal)  | stats count by ErrorType | append [ search sourcetype=testing AccessDenied="Access Denied" OR PageNotFound="page not found"   | eval ErrorType = if(AccessDenied=="access denied",AccessDenied,PageNotFound)  | stats count by ErrorType ]&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;These commands both work when they are not appended.  When I select either the AccessDenied column or the PageNotFound column, I get 0 events, even though the graph says there are three. &lt;/P&gt;

&lt;P&gt;The search query when I select these appended columns is &lt;CODE&gt;sourcetype=testing PhpFatal="PHP Fatal error" OR DrupalPHPFatal="Error: PHP FATAL Error"  | eval ErrorType = if(PhpFatal=="PHP Fatal error",PhpFatal,DrupalPHPFatal)  | search ErrorType="access denied"&lt;/CODE&gt; when I select one of these appended columns.  If I select a non-appended column, the query is the same, except it says &lt;CODE&gt;search ErrorType="PHP Fatal Error"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Why are appended columns not functioning properly on this graph?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2016 20:48:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Appending-a-two-column-graph-to-another-two-column-graph/m-p/227211#M67103</guid>
      <dc:creator>Spiere</dc:creator>
      <dc:date>2016-01-15T20:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: Appending a two column graph to another two column graph</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Appending-a-two-column-graph-to-another-two-column-graph/m-p/227212#M67104</link>
      <description>&lt;P&gt;Use the same formula provided by Iguinn, since they are all coming from same sourcetype&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=testing PhpFatal="PHP Fatal error" OR DrupalPHPFatal="Error: PHP FATAL Error" OR AccessDenied="Access Denied" OR PageNotFound="page not found" | eval ErrorType = case(PhpFatal="PHP Fatal error", PhpFatal,DrupalPHPFatal="Error: PHP FATAL Error"  ,DrupalPHPFatal, AccessDenied="access denied" , AccessDenied ,1=1, PageNotFound ) | stats count by ErrorType
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Try again ( I believe the case of access denied was the issue.)&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2016 21:25:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Appending-a-two-column-graph-to-another-two-column-graph/m-p/227212#M67104</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-01-15T21:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: Appending a two column graph to another two column graph</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Appending-a-two-column-graph-to-another-two-column-graph/m-p/227213#M67105</link>
      <description>&lt;P&gt;Access denied does not seem to show up on the graph when using this query.  Page not found comes up alright though&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2016 21:54:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Appending-a-two-column-graph-to-another-two-column-graph/m-p/227213#M67105</guid>
      <dc:creator>Spiere</dc:creator>
      <dc:date>2016-01-15T21:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: Appending a two column graph to another two column graph</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Appending-a-two-column-graph-to-another-two-column-graph/m-p/227214#M67106</link>
      <description>&lt;P&gt;HI Spiere&lt;BR /&gt;
Try this search code with appendcols command&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=testing AccessDenied="Access Denied" OR PageNotFound="page not found" | eval ErrorType = if(AccessDenied=="access denied",AccessDenied,PageNotFound) | stats count by ErrorType  | appendcols [ search  sourcetype=testing PhpFatal="PHP Fatal error" OR DrupalPHPFatal="Error: PHP FATAL Error" | eval ErrorType = if(PhpFatal=="PHP Fatal error",PhpFatal,DrupalPHPFatal) | stats count by ErrorType  ]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 18 Jan 2016 12:40:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Appending-a-two-column-graph-to-another-two-column-graph/m-p/227214#M67106</guid>
      <dc:creator>chimell</dc:creator>
      <dc:date>2016-01-18T12:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: Appending a two column graph to another two column graph</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Appending-a-two-column-graph-to-another-two-column-graph/m-p/227215#M67107</link>
      <description>&lt;P&gt;Could you tell me what the 1=1 does inside of the eval statement?  I understand the rest of it except for that part.&lt;/P&gt;

&lt;P&gt;New query you submitted works well.  Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2016 16:19:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Appending-a-two-column-graph-to-another-two-column-graph/m-p/227215#M67107</guid>
      <dc:creator>Spiere</dc:creator>
      <dc:date>2016-01-18T16:19:39Z</dc:date>
    </item>
  </channel>
</rss>

