<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Loggly &#187; Cloud</title>
	<atom:link href="http://www.loggly.com/category/cloud/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.loggly.com</link>
	<description>Log Management in the Cloud</description>
	<lastBuildDate>Wed, 18 Aug 2010 01:38:39 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Our Solr system</title>
		<link>http://www.loggly.com/2010/08/our-solr-system/</link>
		<comments>http://www.loggly.com/2010/08/our-solr-system/#comments</comments>
		<pubDate>Tue, 10 Aug 2010 02:42:32 +0000</pubDate>
		<dc:creator>jon</dc:creator>
				<category><![CDATA[Cloud]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[0MQ]]></category>
		<category><![CDATA[lucene]]></category>
		<category><![CDATA[sharding]]></category>
		<category><![CDATA[Solr]]></category>

		<guid isPermaLink="false">http://www.loggly.com/?p=1245</guid>
		<description><![CDATA[I was one of three speakers at the Lucene/Solr meetup last month, co-sponsored by salesforce and Lucid Imagination. I don&#8217;t know how anyone at salesforce with a window gets any work done, considering the view &#8211; take a look at Grant&#8217;s photo to see what I mean. Thanks to Bill from salesforce for hosting, and the [...]]]></description>
			<content:encoded><![CDATA[<p><a rel="prettyPhoto" href="http://www.loggly.com/wp-content/uploads/2010/08/MG_5170.jpg"><img class="alignright size-full wp-image-1256" title="_MG_5170_medium" src="http://www.loggly.com/wp-content/uploads/2010/08/MG_5170_medium1.jpg" alt="Jon Gifford" width="240" height="160" /></a>I was one of three speakers at the <a href="http://www.meetup.com/SFBay-Lucene-Solr-Meetup/calendar/14124466/">Lucene/Solr meetup</a> last month, co-sponsored by salesforce and Lucid Imagination. I don&#8217;t know how anyone at salesforce with a window gets any work done, considering the view &#8211; take a look at <a href="http://www.lucidimagination.com/blog/2010/07/29/sf-bay-area-july-lucene-meetup-highlights/">Grant&#8217;s photo</a> to see what I mean. Thanks to Bill from salesforce for hosting, and the guys at Lucid for organizing things. You can check out the two other talks <a href="http://www.lucidimagination.com/Community/meetups">here</a>, as well as talks from previous meetups.</p>
<p><strong>UPDATE: I&#8217;ll be doing a slightly expanded version of this talk at </strong><a href="http://lucenerevolution.org/"><strong>Lucene Revolution</strong></a><strong> in Boston on October 8th, incorporating some of the stuff I talk about below.</strong></p>
<p>I got a few interesting questions and comments after the talk, so I thought I&#8217;d expand a bit on what was in <a href="http://www.loggly.com/wp-content/uploads/2010/08/Lucene-Solr-Meetup-July-2010-short.pdf">my slides</a>, which were perhaps a little dense.</p>
<h4 id="toc-log-search-is-highly-skewed">&#8220;Log Search is highly skewed&#8221;</h4>
<p>In the talk, I said that the most important search data is the most recent. When you have a problem, you&#8217;re far more likely to care about what happened in the last few minutes or hours or days than what happened a month ago. Thats not say that you&#8217;ll never need to search older data, just that most of the time, you won&#8217;t.</p>
<p>After the talk, though, it became obvious that I should also have said that our users are likely to use search in a way that is also pretty skewed when compared to &#8220;normal&#8221; search products. Basically, we expect that most people will use the system somewhat sporadically, but that when they do, its likely to be a pretty intensive session of  bug hunting. So instead of a fairly continuous search load, we get random spikes for a small subset of all the data we have in Solr. This is actually good for us, because we don&#8217;t need to keep all of the shards for all of our customers &#8220;hot&#8221; in Solr.  When a customer shows up, we can warm their data quickly, and let Solr and the filesystem cache do their thing to deal with shards that haven&#8217;t been used for a while.</p>
<p>The most important point here is that the overall system is going to be spending the vast majority of its resources on indexing, rather than searching. I can&#8217;t give you numbers, but if we end up spending anything more than about 5-10% of our cycles on search, I&#8217;ll be very surprised. This is not your typical consumer search product.</p>
<h4 id="toc-0mq">0MQ</h4>
<p>I talked a bit about <a href="http://www.zeromq.org/">0MQ</a>, and said that we chose it primarily because its fast and lightweight, even though its possible that we could lose data if things break. I clarified this a bit in a comment on <a href="http://www.ultrasaurus.com/sarahblog/2010/07/lucenesolr-meetup-july-28/">Sarah Allen&#8217;s blog</a> because I want to make sure the message is that 0MQ is awesome, not that it loses data. Here&#8217;s the guts of what I said&#8230;</p>
<blockquote><p>I wanted to clarify one point in your writeup, though, to make sure people don’t get the wrong idea about 0MQ. Yes, our implementation of 0MQ has a potential “leak”, where we can lose messages, but its a very uncommon case, and the impact is small. Specifically, if one of the solr nodes dies hard, we potentially lose any events that were sent to it in the last batch (0MQ batches to minimize comms overhead). In steady state, 0MQ is rock solid, 100% reliable, and faaaaaast.</p>
<p>Pieter (at iMatix) and I are currently discussing ways to solve the hard death problem, and I don’t anticipate it being a problem very long. As I said in the talk, 0MQ is unbelievably cool – if you haven’t got a project that needs it, make one up!</p></blockquote>
<p>We sponsored some work to get the SWAP functionality in version 2 of 0MQ, and I&#8217;ve been blown away by the guys at iMatix &#8211; they really want 0MQ to work, and work well. My  throw-away comment prompted an email from Pieter asking for more details, and, as I said to Sarah above, we&#8217;re already looking at how to fix it.</p>
<p>Oh, and in case you&#8217;re wondering how fast a one-armed paper-hanger is, take a look at what  <a href="http://www.word-detective.com/080805.html">The Word Detective</a> says about it (scroll down till you see the &#8220;You missed a spot&#8221; section). Maybe I should have used &#8220;flat out like a lizard drinking&#8221; instead?</p>
<h4 id="toc-sharding">Sharding</h4>
<p>The way we create shards by indexing, then merging,  then merging again and again and again raised a few questions that are worth repeating&#8230;</p>
<p>To recap, we build small (5 minute) shards on our hot indexers. When we stop adding events to them, they get merged with older shards until we hit another size limit (30 minutes). They then get merged with even older shards, until we hit the next time limit (4 hours). And so on up the chain until they cap out at a week long. Along the way, we push indexes from box to box, to balance the load on the system as a whole.</p>
<p>The first question is fairly obvious: <em>Why?</em></p>
<p>At first glance, it seems like we&#8217;re just creating work for ourselves. Surely we could just build the shards and use them as is, right? The problem is that we would have a lot of 5 minute shards floating around the system, and we already know that Solr starts getting cranky when you run a lot of cores in a single instance. So, why don&#8217;t we just build bigger shards? The issue there is that with the version of Solr we&#8217;re using, we have to reopen the index to make new data available, and we currently do that every 10 seconds (hence the &#8220;NRT + SolrCloud = Our Nirvana&#8221; in my slides). Since we have to do this, we&#8217;d end up with too many segments in the hot index, or (if we&#8217;re not careful with our merge factor) a lot of automatic merging that means that the hot index becomes unavailable for updates for too long for my liking. So, we got pushed into this approach by something that I&#8217;m hoping will soon be a thing of the past. I&#8217;m really looking forward to <a href="http://lucenerevolution.org/Presentation-Abstracts-Day2#realtime-busch">Michael Busch&#8217;s talk</a> at <a href="http://lucenerevolution.org">Lucene Revolution</a> which promises to remove the &#8220;N&#8221; from NRT. I&#8217;m not sure what is better than nirvana, but I&#8217;m hoping to find out soon</p>
<p>We may have been forced into doing things this way, but there is a lot of value in the model we have. In some ways, we&#8217;re taking over a part of Lucene (merging) that has been absolutely  invaluable, but can sometimes be a little difficult to control. We now have complete control over when and where indexes get merged. I probably should point out that we deliberately don&#8217;t do any merging on the 5 minute shards, and that we&#8217;re careful with the merge parameters on the larger shards to make the merges that do happen as efficient as possible.  The model also gives us a very simple index naming scheme based on time, which means we always know exactly where to find data for a time-constrained query. More on this in a bit&#8230;</p>
<p>The next question (from the meetup) was <em>what is the overhead of all this merging?</em></p>
<p>Rather than give numbers, its worth thinking about whether we&#8217;re actually doing anything more than Lucene already does when you start building big indexes. I think the answer to that is that we&#8217;re actually just exposing and taking over the automatic behaviour, rather than doing something &#8220;extra&#8221;. So I think the real overhead is close to zero. Compared to building a bunch of shards in parallel using Hadoop, we&#8217;re certainly doing more work, but most of the Hadoop based systems I&#8217;ve looked at are geared more towards building indexes from a large existing corpus, rather than dealing with a real time stream.</p>
<p>My final comment on this is that since its all completely configurable, we&#8217;re not locked into any of the times I&#8217;ve mentioned above. Maybe when we move to NRT, or RT, we can bump the hot shard size up to hours or days, assuming that we&#8217;re still in control of merging. We shall see&#8230;</p>
<h4 id="toc-constructive-laziness">Constructive Laziness</h4>
<p>Circling back to the first section, where I talked about how skewed we expect our search to be, the time-based shards gives us a very clean way to limit the impact of our search requests. Since we can constrain a search to a specific time period, its easy for us to identify which indexes we need to hit to satisfy the search. Our ideal search is for something in the last few minutes, which can be entirely served out of one or two of the five minute shards. We may have gigabytes or (hopefully) terabytes of index data for the same customer sitting around on our system, but if we can satisfy their request by hitting two small, heavily cached cores, then we&#8217;re in great shape. I wonder if life will be so kind to us?</p>
<h4 id="toc-random-aside-synchronicity">Random aside: Synchronicity</h4>
<p>Every now and then, things just come together in strange ways. A couple of weeks ago, Kord and I talked with Diego and Santiago from <a href="http://www.flaptor.com/index.php">Flaptor</a>, who are working on <a href="http://indextank.com/">IndexTank</a>. Diego and I were at LookSmart together years and years and years ago, but thats not the synchronicity. As we were talking, Diego said they were working on a &#8220;Nebulizer&#8221; which does automatic distribution of their index in the cloud. The day before the meeting, I&#8217;d pulled all of the code that deals with this in our system into a class named &#8220;TheDecider&#8221; (I&#8217;m still wrestling with a way to make misunderestimate() a useful method in this class).  That evening I went to a NoSQL meetup, and met someone who is also working on the equivalent for their system. Maybe there is something in the air?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.loggly.com/2010/08/our-solr-system/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Suffering SaaSitash</title>
		<link>http://www.loggly.com/2010/04/suffering-saasitash/</link>
		<comments>http://www.loggly.com/2010/04/suffering-saasitash/#comments</comments>
		<pubDate>Fri, 16 Apr 2010 03:14:55 +0000</pubDate>
		<dc:creator>Kord</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[Cloud]]></category>
		<category><![CDATA[Log Management]]></category>

		<guid isPermaLink="false">http://www.loggly.com/?p=769</guid>
		<description><![CDATA[Dave Rosenberg posted an opinion about cloud based logging yesterday on his Software, Interrupted blog.  Dave starts out by mentioning Gartner predicted IT would spend more money on private cloud than public cloud through 2012.   Here&#8217;s the exact quote from Gartner:
&#8220;Despite the economies of scale offered by public cloud providers, private cloud [...]]]></description>
			<content:encoded><![CDATA[<p>Dave Rosenberg <a href="http://news.cnet.com/8301-13846_3-20002493-62.html?part=rss&#038;tag=feed&#038;subj=Software,Interrupted">posted an opinion about cloud based logging</a> yesterday on his <em>Software, Interrupted</em> blog.  Dave starts out by mentioning <a href="http://www.gartner.com/it/page.jsp?id=1239813">Gartner predicted</a> IT would spend more money on private cloud than public cloud through 2012.   Here&#8217;s the exact quote from Gartner:</p>
<blockquote><p>&#8220;Despite the economies of scale offered by public cloud providers, private cloud services will prevail for the foreseeable future while public cloud offerings mature, according to Gartner, Inc. Through 2012, IT organizations will spend more money on private cloud computing investments than on offerings from public cloud providers.&#8221;</p></blockquote>
<p>This statement is a bit like NASA doing a press release announcing the moon is continuing to orbit the earth.  Wow!  The moon, still here next year? That&#8217;s awesome. <strong>Of course IT is going to spend more money on virutalization for the next few years.</strong> The success of the private cloud can be attributed to the fact virtualization has been around for a good while now, and is finally being pressed into mainstream use behind the firewall.  Shoot, I think I was running <a href="http://www.winehq.org/">Wine</a> on some of my Linux boxes back in the mid-90s, which means virtualization has been commercialized for at least 15 years at the least.  The idea of virtualizing an OS goes back well into the 60s.  Come to think of it, so do I.</p>
<p>The public cloud, specifically IaaS and SaaS, is a grouping of emerging technologies.  We&#8217;re just now starting to figure out how to wield it correctly for new business models.  Poking holes in it at this point is simply rabble rousing by companies who&#8217;s business models are threatened by it and people who don&#8217;t understand it or have a use for it.</p>
<h3 id="toc-its-a-complicance">It&#8217;s a Complicance</h3>
<p>Guy Churchward <a href="http://news.cnet.com/8301-13846_3-20002493-62.html?part=rss&#038;tag=feed&#038;subj=Software,Interrupted">tries to make some good points</a> in his talk with Dave, but at the end of the day, LogLogic is mainly an appliance vendor, and not only do they have big-time COGS to worry about, they also have to figure out how exactly a cloud customer is going to deploy their box on Amazon&#8217;s EC2 service.  (Hint: They aren&#8217;t.)  While you might be able to send logs back out of the cloud to an appliance behind the firewall, it&#8217;s unlikely to make economical sense to do so in the long term.</p>
<p><a rel="prettyPhoto" href="http://www.loggly.com/wp-content/uploads/2010/04/IMG_0662.jpg"><img src="http://www.loggly.com/wp-content/uploads/2010/04/IMG_0662.jpg" title="South Beach Cafe doesn't like dogs." width="225" height="300" class="alignright size-full wp-image-312"></a></p>
<p>While there is a valid point in calling out cloud concerns, security itself is ALWAYS a concern, regardless of whether you run in the cloud or in your own datacenter.  Frankly, with Loggly I&#8217;m likely  better at storing and securing your logs than you are by yourself in your own data center, mostly due to the fact I&#8217;m under pressure by multiple people like you to provide a service which is expected at the outset to be secure.  It&#8217;s no different than the pressure that Google has on them for securing your email, SalesForce for securing your leads, or Amazon securing your credit card info.  We&#8217;re all culpable here for the security of your data.</p>
<p>Additionally, not all that cloudy data is created equal.  A lot of the companies running in the cloud today are web based app companies, and the data they generate is often times very public in nature and not at all affected by compliance concerns.  Do you think some user on Flickr cares if I stole all their comments?  What about getting access to all those <a href="http://twitter.com/kordless">juicy tweets</a> of mine?  Oh wait, those <a href="http://www.reuters.com/article/idUS156257560820100414?feedType=RSS&#038;feedName=wiredStartUps">are already in the Library of Congress</a>.  Nevermind, false alarm!</p>
<h3 id="toc-when-it-rains-it-pours">When IT Rains IT Pours</h3>
<p>Log file data is already one of the largest sets of data on the planet.   Logging alone in the public cloud is going to be absolutely staggering over the next few years.  These trends are being driven by people switching to SaaS based applications, in turn who&#8217;s infrastructure either requires the elastic capabilities only the public cloud can provide, or who&#8217;s price point can&#8217;t be matched by private cloud offerings.</p>
<p>The elastic nature of these infrastructures means the logs which they generate need to be collected and stored in centralized location before the box that generated them disappears.  There are many types of logs which are valuable to a company for understanding their business, and not so valuable for those data-thieving ruffians everyone keeps talking about.</p>
<p>While the security access data or net-flow information from public cloud vendors might alleviate the concerns of some consumers, I think there are much higher value adds to these offerings by being able to power availability and analytics services around a company&#8217;s application via a log file storage platform.</p>
<p>While the private cloud may continue to orbit peacefully for the next few years, the use of it for web based services will decay eventually, and it&#8217;ll be regulated to the more mundane stuff like storing my dental records and tracking my orders over on <a href="http://radiatorbarn.com/">RadiatorBarn.com</a>.</p>
<p>BTW, I&#8217;m still waiting on my radiator, Burton.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.loggly.com/2010/04/suffering-saasitash/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Visualizing your Data in the Cloud with Loggly and HighCharts</title>
		<link>http://www.loggly.com/2010/03/visualizing-your-data-in-the-cloud-with-loggly-and-highcharts/</link>
		<comments>http://www.loggly.com/2010/03/visualizing-your-data-in-the-cloud-with-loggly-and-highcharts/#comments</comments>
		<pubDate>Fri, 26 Mar 2010 22:39:30 +0000</pubDate>
		<dc:creator>Raffy</dc:creator>
				<category><![CDATA[Cloud]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Log Management]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[chart]]></category>
		<category><![CDATA[graph]]></category>
		<category><![CDATA[loggly]]></category>
		<category><![CDATA[mashup]]></category>
		<category><![CDATA[visualization]]></category>

		<guid isPermaLink="false">http://www.loggly.com/?p=694</guid>
		<description><![CDATA[A short while into writing code for the Loggly interface we decided that we needed some eye candy. Given my background in visualization, I was keen on providing our users with an experience that helps them understand their data in an intuitive way.
Over the last few years I&#8217;ve been looking into a ton of visualization [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.loggly.com/wp-content/uploads/2010/03/Screen-shot-2010-03-26-at-Mar-26-6.32.05-PM.png"><img width=680 title="Loggly Cloud Data" src="http://www.loggly.com/wp-content/uploads/2010/03/Screen-shot-2010-03-26-at-Mar-26-6.32.05-PM.png" alt="" /></a></p>
<p>A short while into writing code for the Loggly interface we decided that we needed some eye candy. Given my <a href="http://secviz.org">background</a> in visualization, I was keen on providing our users with an experience that helps them understand their data in an intuitive way.</p>
<p>Over the last few years I&#8217;ve been looking into a ton of visualization libraries for the Web.  In the past, if you had asked me what library to use for generating charts on your Web site, I would have said, &#8220;Use Flash&#8221;.  While there are a number of interesting Flash libraries out there, the landscape has shifted significantly in the last year.  Everyone is moving to JavaScript. After some research, I opted to use a <a href="http://www.datavisualization.ch/tools/13-javascript-libraries-for-visualizations">JavaScript charting library</a> called <a href="http://highcharts.com/">HighCharts</a>.   I tried a bunch of other canvas-based libraries, but let me tell you without hesitation, HighCharts rocks.</p>
<p>I am going to show you how we are using HighCharts and how I implemented <em><strong>zooming to dynamically reload more event data</strong></em> on the fly.  With any charting library, if you keep zooming in on a chart, it will not progressively load more detailed data.  At detailed zoom levels you end up with a small range of data in your graph.  Basically if you view a day&#8217;s data first, and then zoom into a specific minute, you would only see one data point.</p>
<p>To start, here&#8217;s the JavaScript I use to display a chart:</p>
<pre name="code" class="javascript">var parse_date = function(data) {
    var result = [];
    $.each(data, function(key, value) {
        var re = new RegExp(/(\d+)-(\d+)-(\d+)T(\d+):(\d+):(\d+)(?:\.(\d+))?/);
        var date = re.exec(key);
        if (date[7] == undefined) {date[7]=0;}
        var real_date = Date.UTC(date[1], parseInt(date[2])-1,date[3],date[4],date[5],date[6],date[7]);
        result.push([real_date, value]);
    });
    return result;
}

chart = new Highcharts.Chart({
    credits: { enabled: false },
    chart: {
        renderTo: 'activity',
        defaultSeriesType: 'area',
        margin: [10, 20, 40, 55],
        zoomType: "x",
            events: {
                selection: function(event) {
                    // change the time frame to be searched
                    var start = Highcharts.dateFormat('%Y-%m-%dT%H:%M:%SZ', event.xAxis[0].min);
                    var end = Highcharts.dateFormat('%Y-%m-%dT%H:%M:%SZ', event.xAxis[0].max);
                    $.ajax({ type: "GET", url: "http://subdomain.loggly.com/api/search/?" \
                        + "q=inputname:logglyapp&#038;starttime="+start+"&#038;endtime="+end \
                        + "&#038;facets=True&#038;buckets=24",
                        success: function(data) {
                             chart.xAxis[0].setExtremes();
                             chart.series[0].setData(parse_date(data));
                             // fix the reset zoom button
                             $('.highcharts-toolbar').click(resetZoom);
                        },
                        error: function(req, text, error) {
                            $("#err").html("Reload error!");
                        }
                    });
                }
        }
    },
    xAxis: { title: { text: 'Time' }, type: 'datetime' },
    yAxis: { title: { text: '# Events' }, min:0,
        plotLines: [{ value: 0, width: 1, color: '#808080' }]
    },
    tooltip: { formatter: function() {
            return Highcharts.dateFormat('%B %e %Y %H:%M:%S', this.x) + '<br/>'+
            '<b>'+this.y+' Events</b>' }},
    plotOptions: {
        area: {
            dataParser: parse_date,
        }
    },
    series: [{ id: 1, name: 'search',
        dataURL: 'http://subdomain.loggly.com/api/search/'
            + '?q=inputname:logglyapp&#038;facets=True'}],
    title: { text: 'traffic last 24 hours' }
});

var reset_zoom = function() {
    // requery for the original data:
    $.ajax({ type: "GET", url: "http://subdomain.loggly.com/api/search/"
        + "?q=inputname:logglyapp&#038;facets=True",
        success: function(data) {
           chart.toolbar.remove('zoom');
           chart.xAxis[0].setExtremes();
           chart.get(1).setData(parse_date(data));
        },
        error: function(req, text, error) {
            $("#err").html("Loading error!");
        }
    });
}
});
</script>
</pre>
<p>Let&#8217;s have a quick look at the code. There are two things I want to communicate here: 1. The code I used to display a HightChart graph and 2. The way I am using <a href="http://wiki.loggly.com/api-documentation">Loggly&#8217;s APIs</a> to query the data.</p>
<p>I mentioned the special zooming that I implemented. Take a look at lines 20 to 39.  This is the function that handles zooming, and it is where I am reloading the more detailed data.  I set the new start and end dates (lines 23 and 24) and then I am querying the Loggly API with the new timeframe (lines 25 to 27). Upon success &#8211; this is important &#8211; I am using the <b>chart.series[0].setData()</b> method to set the new data for the chart. The next line overwrites the default button or a link that lets the user zoom out again (lines 32). Note: because you are implementing your own zoom, the default &#8220;reset zoom&#8221; button from HighCharts will not work anymore and you have to implement your overwrite it with your own function to reset the chart.</p>
<p>The function dealing with the reset functionality is on lines 59 to 72. It does nothing else than query the Loggly API for the original data (I am passing no time parameters) and setting the data just like the previous call. The other thing you have to do is in lines 64 where you need to remove the HighCharts default &#8220;reset zoom&#8221; link and reset the extremes (line 65).
<p>Moving on, we&#8217;ll briefly discuss the way I&#8217;m using the <B>Loggly API</B>.  If you&#8217;d like to use it, you need an account with us. We are currently in private beta, therefore you will need us to give you access to the beta program in order to do so. <a href="mailto:support@loggly.com?subject=BETA+request+for+API+usage">Email</a> if you want an account to play around with! Back to the code. Make sure you replace the <subdomain> with your actual subdomain. Now that this is out of the way, you can query the API by simply making a GET request to: /api/search. You pass the <b>q</b> parameter with your query. In my example I am getting all the data from my input with the name <i>logglyapp</i>. To get timeline data, you&#8217;ll need to pass the parameter <b>facets=True</b> into the call. This will give you counts for time buckets.</p>
<p>To make everything work together, you need one more piece: the <b>date_parse</b> function.  You need this part because the Loggly API returns the data with real human readable timestamps and HighCharts wants UTC encoded timestamps. The function on lines 1 to 11 takes care of converting the time for you. Just copy it.</p>
<p>I hope this was useful. Let us know if you are having trouble with any of this. We are looking forward hearing about your graphing endeavors.</p>
<p>If you look at my <a href="http://del.icio.us/zrlram/visualization">del.icio.us</a> feed, you&#8217;ll find a bunch more visualization and charting links.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.loggly.com/2010/03/visualizing-your-data-in-the-cloud-with-loggly-and-highcharts/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>RSA Security Conference – Cloud the Logging Killer App?</title>
		<link>http://www.loggly.com/2010/03/569/</link>
		<comments>http://www.loggly.com/2010/03/569/#comments</comments>
		<pubDate>Mon, 01 Mar 2010 22:43:43 +0000</pubDate>
		<dc:creator>Raffy</dc:creator>
				<category><![CDATA[Cloud]]></category>
		<category><![CDATA[Log Management]]></category>

		<guid isPermaLink="false">http://www.loggly.org/?p=569</guid>
		<description><![CDATA[I am attending the RSA conference this week. The first session I attended was the Cloud Security Alliance (CSA) meeting. Reading some of the accompanying material and listening to some of the presentations and panels, I couldn&#8217;t help it but notice that the terms auditing and logging were all over.
Here is my attempt for an [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_336" class="wp-caption alignright" style="width: 210px"><img style="align:right" title="Logging" src="http://raffy.ch/blog/wp-content/uploads/2010/03/Screen-shot-2010-03-01-at-Mar-1-2.36.46-PM.png" alt="Logging - Cloud Kiler App" width="200" /><p class="wp-caption-text">Logging</p></div>
<p>I am attending the <a href="http://www.rsaconference.com">RSA conference</a> this week. The first session I attended was the <a href="http://cloudsecurityalliance.org">Cloud Security Alliance</a> (CSA) meeting. Reading some of the accompanying material and listening to some of the presentations and panels, I couldn&#8217;t help it but notice that the terms <strong>auditing</strong> and <strong>logging</strong> were all over.</p>
<p>Here is my attempt for an explanation of this. It seems that one of the reasons for this is the nature of the cloud. Think about it. You are in an environment where you don&#8217;t control much. You are in an environment where you cannot trust most of the infrastructure pieces. For example, if you are using AWS like we are doing at <a href="http://loggly.com">Loggly</a>, you should generally not trust your AMIs (the OS images). Now, what do you do if you don&#8217;t trust someone? You observe them, you monitor them. That&#8217;s exactly what is and needs to happen in the cloud: You don&#8217;t trust the service. To mitigate this issue, you are going to monitor the service.</p>
<p>And to make this not just my explanation, here is what some panelists during the CSA meeting said:</p>
<p><cite>&#8220;Loss of visibility in the cloud&#8221; &#8211; Scott Chasin, CTO McAfee SaaS Unit</cite><br />
<cite>&#8220;Lose control and still maintain accountability&#8221; &#8211; Ken Biery, Verizon Business.</cite></p>
<p>Is the cloud the killer app for logging? And if that&#8217;s the case, how do you manage your logs in the cloud? There are hardly any cloud logging solutions out there. I think you see <a href="http://www.loggly.com">where</a> I am going with this.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.loggly.com/2010/03/569/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
